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