48 48 | "com.amazonaws.ec2.synthetic",
|
49 49 | "GetVpnTunnelReplacementStatusOutput",
|
50 50 | );
|
51 51 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_CONNECTION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
52 52 | ::aws_smithy_schema::ShapeId::from_static(
|
53 53 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$VpnConnectionId",
|
54 54 | "com.amazonaws.ec2.synthetic",
|
55 55 | "GetVpnTunnelReplacementStatusOutput",
|
56 56 | ),
|
57 57 | ::aws_smithy_schema::ShapeType::String,
|
58 - | "vpn_connection_id",
|
58 + | "VpnConnectionId",
|
59 59 | 0,
|
60 60 | )
|
61 61 | .with_xml_name("vpnConnectionId");
|
62 62 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_TRANSIT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
63 63 | ::aws_smithy_schema::ShapeId::from_static(
|
64 64 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$TransitGatewayId",
|
65 65 | "com.amazonaws.ec2.synthetic",
|
66 66 | "GetVpnTunnelReplacementStatusOutput",
|
67 67 | ),
|
68 68 | ::aws_smithy_schema::ShapeType::String,
|
69 - | "transit_gateway_id",
|
69 + | "TransitGatewayId",
|
70 70 | 1,
|
71 71 | )
|
72 72 | .with_xml_name("transitGatewayId");
|
73 73 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_CUSTOMER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
74 74 | ::aws_smithy_schema::ShapeId::from_static(
|
75 75 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$CustomerGatewayId",
|
76 76 | "com.amazonaws.ec2.synthetic",
|
77 77 | "GetVpnTunnelReplacementStatusOutput",
|
78 78 | ),
|
79 79 | ::aws_smithy_schema::ShapeType::String,
|
80 - | "customer_gateway_id",
|
80 + | "CustomerGatewayId",
|
81 81 | 2,
|
82 82 | )
|
83 83 | .with_xml_name("customerGatewayId");
|
84 84 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
85 85 | ::aws_smithy_schema::ShapeId::from_static(
|
86 86 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$VpnGatewayId",
|
87 87 | "com.amazonaws.ec2.synthetic",
|
88 88 | "GetVpnTunnelReplacementStatusOutput",
|
89 89 | ),
|
90 90 | ::aws_smithy_schema::ShapeType::String,
|
91 - | "vpn_gateway_id",
|
91 + | "VpnGatewayId",
|
92 92 | 3,
|
93 93 | )
|
94 94 | .with_xml_name("vpnGatewayId");
|
95 95 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS: ::aws_smithy_schema::Schema =
|
96 96 | ::aws_smithy_schema::Schema::new_member(
|
97 97 | ::aws_smithy_schema::ShapeId::from_static(
|
98 98 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$VpnTunnelOutsideIpAddress",
|
99 99 | "com.amazonaws.ec2.synthetic",
|
100 100 | "GetVpnTunnelReplacementStatusOutput",
|
101 101 | ),
|
102 102 | ::aws_smithy_schema::ShapeType::String,
|
103 - | "vpn_tunnel_outside_ip_address",
|
103 + | "VpnTunnelOutsideIpAddress",
|
104 104 | 4,
|
105 105 | )
|
106 106 | .with_xml_name("vpnTunnelOutsideIpAddress");
|
107 107 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_MAINTENANCE_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
108 108 | ::aws_smithy_schema::ShapeId::from_static(
|
109 109 | "com.amazonaws.ec2.synthetic#GetVpnTunnelReplacementStatusOutput$MaintenanceDetails",
|
110 110 | "com.amazonaws.ec2.synthetic",
|
111 111 | "GetVpnTunnelReplacementStatusOutput",
|
112 112 | ),
|
113 113 | ::aws_smithy_schema::ShapeType::Structure,
|
114 - | "maintenance_details",
|
114 + | "MaintenanceDetails",
|
115 115 | 5,
|
116 116 | )
|
117 117 | .with_xml_name("maintenanceDetails");
|
118 + | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
119 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
120 + | ::aws_smithy_schema::ShapeType::String,
|
121 + | "request_id",
|
122 + | 6,
|
123 + | )
|
124 + | .with_http_header("x-amzn-requestid");
|
118 125 | static GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
119 126 | GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA_ID,
|
120 127 | ::aws_smithy_schema::ShapeType::Structure,
|
121 128 | &[
|
122 129 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_CONNECTION_ID,
|
123 130 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_TRANSIT_GATEWAY_ID,
|
124 131 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_CUSTOMER_GATEWAY_ID,
|
125 132 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_GATEWAY_ID,
|
126 133 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS,
|
127 134 | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_MAINTENANCE_DETAILS,
|
135 + | &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER__REQUEST_ID,
|
128 136 | ],
|
129 137 | );
|
130 138 | impl GetVpnTunnelReplacementStatusOutput {
|
131 139 | /// The schema for this shape.
|
132 140 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA;
|
133 141 | }
|
134 142 | impl ::aws_smithy_schema::serde::SerializableStruct for GetVpnTunnelReplacementStatusOutput {
|
135 143 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
136 144 | fn serialize_members(
|
137 145 | &self,
|
138 146 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
139 147 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
140 148 | if let Some(ref val) = self.vpn_connection_id {
|
141 149 | ser.write_string(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_CONNECTION_ID, val)?;
|
142 150 | }
|
143 151 | if let Some(ref val) = self.transit_gateway_id {
|
144 152 | ser.write_string(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_TRANSIT_GATEWAY_ID, val)?;
|
145 153 | }
|
146 154 | if let Some(ref val) = self.customer_gateway_id {
|
147 155 | ser.write_string(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_CUSTOMER_GATEWAY_ID, val)?;
|
148 156 | }
|
149 157 | if let Some(ref val) = self.vpn_gateway_id {
|
150 158 | ser.write_string(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_GATEWAY_ID, val)?;
|
151 159 | }
|
152 160 | if let Some(ref val) = self.vpn_tunnel_outside_ip_address {
|
153 161 | ser.write_string(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS, val)?;
|
154 162 | }
|
155 163 | if let Some(ref val) = self.maintenance_details {
|
156 164 | ser.write_struct(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_MEMBER_MAINTENANCE_DETAILS, val)?;
|
157 165 | }
|
158 166 | Ok(())
|
159 167 | }
|
160 168 | }
|
161 169 | impl GetVpnTunnelReplacementStatusOutput {
|
162 170 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
163 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
164 - | deserializer: &mut D,
|
171 + | pub fn deserialize(
|
172 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
165 173 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
166 174 | #[allow(unused_variables, unused_mut)]
|
167 175 | let mut builder = Self::builder();
|
168 176 | #[allow(
|
169 177 | unused_variables,
|
170 178 | unreachable_code,
|
171 179 | clippy::single_match,
|
172 180 | clippy::match_single_binding,
|
173 181 | clippy::diverging_sub_expression
|
174 182 | )]
|
175 - | deserializer.read_struct(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA, (), |_, member, deser| {
|
183 + | deserializer.read_struct(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
|
184 + | match member.member_index() {
|
185 + | Some(0) => {
|
186 + | builder.vpn_connection_id = Some(deser.read_string(member)?);
|
187 + | }
|
188 + | Some(1) => {
|
189 + | builder.transit_gateway_id = Some(deser.read_string(member)?);
|
190 + | }
|
191 + | Some(2) => {
|
192 + | builder.customer_gateway_id = Some(deser.read_string(member)?);
|
193 + | }
|
194 + | Some(3) => {
|
195 + | builder.vpn_gateway_id = Some(deser.read_string(member)?);
|
196 + | }
|
197 + | Some(4) => {
|
198 + | builder.vpn_tunnel_outside_ip_address = Some(deser.read_string(member)?);
|
199 + | }
|
200 + | Some(5) => {
|
201 + | builder.maintenance_details = Some(crate::types::MaintenanceDetails::deserialize(deser)?);
|
202 + | }
|
203 + | Some(6) => {
|
204 + | builder._request_id = Some(deser.read_string(member)?);
|
205 + | }
|
206 + | _ => {}
|
207 + | }
|
208 + | Ok(())
|
209 + | })?;
|
210 + | Ok(builder.build())
|
211 + | }
|
212 + | }
|
213 + | impl GetVpnTunnelReplacementStatusOutput {
|
214 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
215 + | /// Header-bound members are read directly from headers, avoiding runtime
|
216 + | /// member iteration overhead. Body members are read via the deserializer.
|
217 + | pub fn deserialize_with_response(
|
218 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
219 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
220 + | _status: u16,
|
221 + | _body: &[u8],
|
222 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
223 + | #[allow(unused_variables, unused_mut)]
|
224 + | let mut builder = Self::builder();
|
225 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
226 + | builder._request_id = Some(val.to_string());
|
227 + | }
|
228 + | #[allow(
|
229 + | unused_variables,
|
230 + | unreachable_code,
|
231 + | clippy::single_match,
|
232 + | clippy::match_single_binding,
|
233 + | clippy::diverging_sub_expression
|
234 + | )]
|
235 + | deserializer.read_struct(&GETVPNTUNNELREPLACEMENTSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
|
176 236 | match member.member_index() {
|
177 237 | Some(0) => {
|
178 238 | builder.vpn_connection_id = Some(deser.read_string(member)?);
|
179 239 | }
|
180 240 | Some(1) => {
|
181 241 | builder.transit_gateway_id = Some(deser.read_string(member)?);
|
182 242 | }
|
183 243 | Some(2) => {
|
184 244 | builder.customer_gateway_id = Some(deser.read_string(member)?);
|
185 245 | }
|