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