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