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