80 80 | "com.amazonaws.ec2.synthetic",
|
81 81 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
82 82 | );
|
83 83 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
84 84 | ::aws_smithy_schema::ShapeId::from_static(
|
85 85 | "com.amazonaws.ec2.synthetic#DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput$LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds",
|
86 86 | "com.amazonaws.ec2.synthetic",
|
87 87 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
88 88 | ),
|
89 89 | ::aws_smithy_schema::ShapeType::List,
|
90 - | "local_gateway_route_table_virtual_interface_group_association_ids",
|
90 + | "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds",
|
91 91 | 0,
|
92 92 | )
|
93 93 | .with_xml_name("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId");
|
94 94 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema =
|
95 95 | ::aws_smithy_schema::Schema::new_member(
|
96 96 | ::aws_smithy_schema::ShapeId::from_static(
|
97 97 | "com.amazonaws.ec2.synthetic#DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput$Filters",
|
98 98 | "com.amazonaws.ec2.synthetic",
|
99 99 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
100 100 | ),
|
101 101 | ::aws_smithy_schema::ShapeType::List,
|
102 - | "filters",
|
102 + | "Filters",
|
103 103 | 1,
|
104 104 | )
|
105 105 | .with_xml_name("Filter");
|
106 106 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema =
|
107 107 | ::aws_smithy_schema::Schema::new_member(
|
108 108 | ::aws_smithy_schema::ShapeId::from_static(
|
109 109 | "com.amazonaws.ec2.synthetic#DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput$MaxResults",
|
110 110 | "com.amazonaws.ec2.synthetic",
|
111 111 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
112 112 | ),
|
113 113 | ::aws_smithy_schema::ShapeType::Integer,
|
114 - | "max_results",
|
114 + | "MaxResults",
|
115 115 | 2,
|
116 116 | );
|
117 117 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema =
|
118 118 | ::aws_smithy_schema::Schema::new_member(
|
119 119 | ::aws_smithy_schema::ShapeId::from_static(
|
120 120 | "com.amazonaws.ec2.synthetic#DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput$NextToken",
|
121 121 | "com.amazonaws.ec2.synthetic",
|
122 122 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
123 123 | ),
|
124 124 | ::aws_smithy_schema::ShapeType::String,
|
125 - | "next_token",
|
125 + | "NextToken",
|
126 126 | 3,
|
127 127 | );
|
128 128 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema =
|
129 129 | ::aws_smithy_schema::Schema::new_member(
|
130 130 | ::aws_smithy_schema::ShapeId::from_static(
|
131 131 | "com.amazonaws.ec2.synthetic#DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput$DryRun",
|
132 132 | "com.amazonaws.ec2.synthetic",
|
133 133 | "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput",
|
134 134 | ),
|
135 135 | ::aws_smithy_schema::ShapeType::Boolean,
|
136 - | "dry_run",
|
136 + | "DryRun",
|
137 137 | 4,
|
138 138 | );
|
139 139 | static DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
140 140 | DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_SCHEMA_ID,
|
141 141 | ::aws_smithy_schema::ShapeType::Structure,
|
142 142 | &[&DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION_IDS, &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_FILTERS, &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_MAX_RESULTS, &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_NEXT_TOKEN, &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_DRY_RUN],
|
143 143 | );
|
144 144 | impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput {
|
145 145 | /// The schema for this shape.
|
146 146 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_SCHEMA;
|
147 147 | }
|
148 148 | impl ::aws_smithy_schema::serde::SerializableStruct for DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput {
|
149 149 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
150 150 | fn serialize_members(
|
151 151 | &self,
|
152 152 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
153 153 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
154 154 | if let Some(ref val) = self.local_gateway_route_table_virtual_interface_group_association_ids {
|
155 155 | ser.write_list(&DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION_IDS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
156 156 | for item in val {
|
157 157 | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
158 158 | }
|
159 159 | Ok(())
|
160 160 | })?;
|
161 161 | }
|
162 162 | if let Some(ref val) = self.filters {
|
163 163 | ser.write_list(
|
164 164 | &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_FILTERS,
|
165 165 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
166 166 | for item in val {
|
167 167 | ser.write_struct(crate::types::Filter::SCHEMA, item)?;
|
168 168 | }
|
169 169 | Ok(())
|
170 170 | },
|
171 171 | )?;
|
172 172 | }
|
173 173 | if let Some(ref val) = self.max_results {
|
174 174 | ser.write_integer(
|
175 175 | &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_MAX_RESULTS,
|
176 176 | *val,
|
177 177 | )?;
|
178 178 | }
|
179 179 | if let Some(ref val) = self.next_token {
|
180 180 | ser.write_string(
|
181 181 | &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_NEXT_TOKEN,
|
182 182 | val,
|
183 183 | )?;
|
184 184 | }
|
185 185 | if let Some(ref val) = self.dry_run {
|
186 186 | ser.write_boolean(&DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_MEMBER_DRY_RUN, *val)?;
|
187 187 | }
|
188 188 | Ok(())
|
189 189 | }
|
190 190 | }
|
191 191 | impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput {
|
192 192 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
193 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
194 - | deserializer: &mut D,
|
193 + | pub fn deserialize(
|
194 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
195 195 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
196 196 | #[allow(unused_variables, unused_mut)]
|
197 197 | let mut builder = Self::builder();
|
198 198 | #[allow(
|
199 199 | unused_variables,
|
200 200 | unreachable_code,
|
201 201 | clippy::single_match,
|
202 202 | clippy::match_single_binding,
|
203 203 | clippy::diverging_sub_expression
|
204 204 | )]
|
205 205 | deserializer.read_struct(
|
206 206 | &DESCRIBELOCALGATEWAYROUTETABLEVIRTUALINTERFACEGROUPASSOCIATIONSINPUT_SCHEMA,
|
207 - | (),
|
208 - | |_, member, deser| {
|
207 + | &mut |member, deser| {
|
209 208 | match member.member_index() {
|
210 209 | Some(0) => {
|
211 - | builder.local_gateway_route_table_virtual_interface_group_association_ids = Some({
|
212 - | let container = if let Some(cap) = deser.container_size() {
|
213 - | Vec::with_capacity(cap)
|
214 - | } else {
|
215 - | Vec::new()
|
216 - | };
|
217 - | deser.read_list(member, container, |mut list, deser| {
|
218 - | list.push(deser.read_string(member)?);
|
219 - | Ok(list)
|
220 - | })?
|
221 - | });
|
210 + | builder.local_gateway_route_table_virtual_interface_group_association_ids = Some(deser.read_string_list(member)?);
|
222 211 | }
|
223 212 | Some(1) => {
|
224 213 | builder.filters = Some({
|
225 - | let container = if let Some(cap) = deser.container_size() {
|
226 - | Vec::with_capacity(cap)
|
227 - | } else {
|
228 - | Vec::new()
|
229 - | };
|
230 - | deser.read_list(member, container, |mut list, deser| {
|
231 - | list.push(crate::types::Filter::deserialize(deser)?);
|
232 - | Ok(list)
|
233 - | })?
|
214 + | let mut container = Vec::new();
|
215 + | deser.read_list(member, &mut |deser| {
|
216 + | container.push(crate::types::Filter::deserialize(deser)?);
|
217 + | Ok(())
|
218 + | })?;
|
219 + | container
|
234 220 | });
|
235 221 | }
|
236 222 | Some(2) => {
|
237 223 | builder.max_results = Some(deser.read_integer(member)?);
|
238 224 | }
|
239 225 | Some(3) => {
|
240 226 | builder.next_token = Some(deser.read_string(member)?);
|
241 227 | }
|
242 228 | Some(4) => {
|
243 229 | builder.dry_run = Some(deser.read_boolean(member)?);
|
244 230 | }
|
245 231 | _ => {}
|
246 232 | }
|
247 233 | Ok(())
|
248 234 | },
|
249 235 | )?;
|
250 236 | builder
|
251 237 | .build()
|
252 238 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
253 239 | }
|
254 240 | }
|
241 + | impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput {
|
242 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
243 + | pub fn deserialize_with_response(
|
244 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
245 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
246 + | _status: u16,
|
247 + | _body: &[u8],
|
248 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
249 + | Self::deserialize(deserializer)
|
250 + | }
|
251 + | }
|
255 252 | impl DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput {
|
256 253 | /// Creates a new builder-style object to manufacture [`DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput`](crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput).
|
257 254 | pub fn builder() -> crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::builders::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputBuilder{
|
258 255 | crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::builders::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputBuilder::default()
|
259 256 | }
|
260 257 | }
|
261 258 |
|
262 259 | /// A builder for [`DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput`](crate::operation::describe_local_gateway_route_table_virtual_interface_group_associations::DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput).
|
263 260 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
264 261 | #[non_exhaustive]
|