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