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