31 31 | ::aws_smithy_types::Document::String(
|
32 32 | "{\"code\":\"XksProxyVpcEndpointServiceInvalidConfigurationException\",\"httpResponseCode\":400}".to_string(),
|
33 33 | ),
|
34 34 | )));
|
35 35 | map
|
36 36 | });
|
37 37 | static XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
38 38 | XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_SCHEMA_ID,
|
39 39 | ::aws_smithy_schema::ShapeType::Structure,
|
40 40 | &[&XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_MEMBER_MESSAGE],
|
41 41 | )
|
42 42 | .with_traits(&XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_TRAITS);
|
43 43 | impl XksProxyVpcEndpointServiceInvalidConfigurationException {
|
44 44 | /// The schema for this shape.
|
45 45 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_SCHEMA;
|
46 46 | }
|
47 47 | impl ::aws_smithy_schema::serde::SerializableStruct for XksProxyVpcEndpointServiceInvalidConfigurationException {
|
48 48 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
49 49 | fn serialize_members(
|
50 50 | &self,
|
51 51 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
52 52 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
53 53 | if let Some(ref val) = self.message {
|
54 54 | ser.write_string(&XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_MEMBER_MESSAGE, val)?;
|
55 55 | }
|
56 56 | Ok(())
|
57 57 | }
|
58 58 | }
|
59 59 | impl XksProxyVpcEndpointServiceInvalidConfigurationException {
|
60 60 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
61 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
62 - | deserializer: &mut D,
|
61 + | pub fn deserialize(
|
62 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
63 63 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
64 64 | #[allow(unused_variables, unused_mut)]
|
65 65 | let mut builder = Self::builder();
|
66 66 | #[allow(
|
67 67 | unused_variables,
|
68 68 | unreachable_code,
|
69 69 | clippy::single_match,
|
70 70 | clippy::match_single_binding,
|
71 71 | clippy::diverging_sub_expression
|
72 72 | )]
|
73 - | deserializer.read_struct(&XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_SCHEMA, (), |_, member, deser| {
|
73 + | deserializer.read_struct(&XKSPROXYVPCENDPOINTSERVICEINVALIDCONFIGURATIONEXCEPTION_SCHEMA, &mut |member, deser| {
|
74 74 | match member.member_index() {
|
75 75 | Some(0) => {
|
76 76 | builder.message = Some(deser.read_string(member)?);
|
77 77 | }
|
78 78 | _ => {}
|
79 79 | }
|
80 80 | Ok(())
|
81 81 | })?;
|
82 82 | Ok(builder.build())
|
83 83 | }
|
84 84 | }
|
85 + | impl XksProxyVpcEndpointServiceInvalidConfigurationException {
|
86 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
87 + | pub fn deserialize_with_response(
|
88 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
89 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
90 + | _status: u16,
|
91 + | _body: &[u8],
|
92 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
93 + | Self::deserialize(deserializer)
|
94 + | }
|
95 + | }
|
85 96 | impl XksProxyVpcEndpointServiceInvalidConfigurationException {
|
86 97 | /// Returns the error message.
|
87 98 | pub fn message(&self) -> ::std::option::Option<&str> {
|
88 99 | self.message.as_deref()
|
89 100 | }
|
90 101 | }
|
91 102 | impl ::std::fmt::Display for XksProxyVpcEndpointServiceInvalidConfigurationException {
|
92 103 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
93 104 | ::std::write!(f, "XksProxyVpcEndpointServiceInvalidConfigurationException")?;
|
94 105 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
95 106 | {
|
96 107 | ::std::write!(f, ": {inner_1}")?;
|
97 108 | }
|
98 109 | }
|
99 110 | Ok(())
|
100 111 | }
|
101 112 | }
|
102 113 | impl ::std::error::Error for XksProxyVpcEndpointServiceInvalidConfigurationException {}
|
103 114 | impl ::aws_types::request_id::RequestId for crate::types::error::XksProxyVpcEndpointServiceInvalidConfigurationException {
|
104 115 | fn request_id(&self) -> Option<&str> {
|
105 116 | use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
|
106 117 | self.meta().request_id()
|
107 118 | }
|
108 119 | }
|
109 120 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XksProxyVpcEndpointServiceInvalidConfigurationException {
|
110 121 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
111 122 | &self.meta
|
112 123 | }
|
113 124 | }
|
114 125 | impl XksProxyVpcEndpointServiceInvalidConfigurationException {
|