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