59 59 | "com.amazonaws.ec2.synthetic",
|
60 60 | "GetIpamAddressHistoryInput",
|
61 61 | );
|
62 62 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
63 63 | ::aws_smithy_schema::ShapeId::from_static(
|
64 64 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$DryRun",
|
65 65 | "com.amazonaws.ec2.synthetic",
|
66 66 | "GetIpamAddressHistoryInput",
|
67 67 | ),
|
68 68 | ::aws_smithy_schema::ShapeType::Boolean,
|
69 - | "dry_run",
|
69 + | "DryRun",
|
70 70 | 0,
|
71 71 | );
|
72 72 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_CIDR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
73 73 | ::aws_smithy_schema::ShapeId::from_static(
|
74 74 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$Cidr",
|
75 75 | "com.amazonaws.ec2.synthetic",
|
76 76 | "GetIpamAddressHistoryInput",
|
77 77 | ),
|
78 78 | ::aws_smithy_schema::ShapeType::String,
|
79 - | "cidr",
|
79 + | "Cidr",
|
80 80 | 1,
|
81 81 | );
|
82 82 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_IPAM_SCOPE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
83 83 | ::aws_smithy_schema::ShapeId::from_static(
|
84 84 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$IpamScopeId",
|
85 85 | "com.amazonaws.ec2.synthetic",
|
86 86 | "GetIpamAddressHistoryInput",
|
87 87 | ),
|
88 88 | ::aws_smithy_schema::ShapeType::String,
|
89 - | "ipam_scope_id",
|
89 + | "IpamScopeId",
|
90 90 | 2,
|
91 91 | );
|
92 92 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
93 93 | ::aws_smithy_schema::ShapeId::from_static(
|
94 94 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$VpcId",
|
95 95 | "com.amazonaws.ec2.synthetic",
|
96 96 | "GetIpamAddressHistoryInput",
|
97 97 | ),
|
98 98 | ::aws_smithy_schema::ShapeType::String,
|
99 - | "vpc_id",
|
99 + | "VpcId",
|
100 100 | 3,
|
101 101 | );
|
102 102 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
103 103 | ::aws_smithy_schema::ShapeId::from_static(
|
104 104 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$StartTime",
|
105 105 | "com.amazonaws.ec2.synthetic",
|
106 106 | "GetIpamAddressHistoryInput",
|
107 107 | ),
|
108 108 | ::aws_smithy_schema::ShapeType::Timestamp,
|
109 - | "start_time",
|
109 + | "StartTime",
|
110 110 | 4,
|
111 111 | );
|
112 112 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
113 113 | ::aws_smithy_schema::ShapeId::from_static(
|
114 114 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$EndTime",
|
115 115 | "com.amazonaws.ec2.synthetic",
|
116 116 | "GetIpamAddressHistoryInput",
|
117 117 | ),
|
118 118 | ::aws_smithy_schema::ShapeType::Timestamp,
|
119 - | "end_time",
|
119 + | "EndTime",
|
120 120 | 5,
|
121 121 | );
|
122 122 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
123 123 | ::aws_smithy_schema::ShapeId::from_static(
|
124 124 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$MaxResults",
|
125 125 | "com.amazonaws.ec2.synthetic",
|
126 126 | "GetIpamAddressHistoryInput",
|
127 127 | ),
|
128 128 | ::aws_smithy_schema::ShapeType::Integer,
|
129 - | "max_results",
|
129 + | "MaxResults",
|
130 130 | 6,
|
131 131 | );
|
132 132 | static GETIPAMADDRESSHISTORYINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
133 133 | ::aws_smithy_schema::ShapeId::from_static(
|
134 134 | "com.amazonaws.ec2.synthetic#GetIpamAddressHistoryInput$NextToken",
|
135 135 | "com.amazonaws.ec2.synthetic",
|
136 136 | "GetIpamAddressHistoryInput",
|
137 137 | ),
|
138 138 | ::aws_smithy_schema::ShapeType::String,
|
139 - | "next_token",
|
139 + | "NextToken",
|
140 140 | 7,
|
141 141 | );
|
142 142 | static GETIPAMADDRESSHISTORYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
143 143 | GETIPAMADDRESSHISTORYINPUT_SCHEMA_ID,
|
144 144 | ::aws_smithy_schema::ShapeType::Structure,
|
145 145 | &[
|
146 146 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_DRY_RUN,
|
147 147 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_CIDR,
|
148 148 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_IPAM_SCOPE_ID,
|
149 149 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_VPC_ID,
|
150 150 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_START_TIME,
|
151 151 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_END_TIME,
|
152 152 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_MAX_RESULTS,
|
153 153 | &GETIPAMADDRESSHISTORYINPUT_MEMBER_NEXT_TOKEN,
|
154 154 | ],
|
155 155 | );
|
156 156 | impl GetIpamAddressHistoryInput {
|
157 157 | /// The schema for this shape.
|
158 158 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETIPAMADDRESSHISTORYINPUT_SCHEMA;
|
159 159 | }
|
160 160 | impl ::aws_smithy_schema::serde::SerializableStruct for GetIpamAddressHistoryInput {
|
161 161 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
162 162 | fn serialize_members(
|
163 163 | &self,
|
164 164 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
165 165 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
166 166 | if let Some(ref val) = self.dry_run {
|
167 167 | ser.write_boolean(&GETIPAMADDRESSHISTORYINPUT_MEMBER_DRY_RUN, *val)?;
|
168 168 | }
|
169 169 | if let Some(ref val) = self.cidr {
|
170 170 | ser.write_string(&GETIPAMADDRESSHISTORYINPUT_MEMBER_CIDR, val)?;
|
171 171 | }
|
172 172 | if let Some(ref val) = self.ipam_scope_id {
|
173 173 | ser.write_string(&GETIPAMADDRESSHISTORYINPUT_MEMBER_IPAM_SCOPE_ID, val)?;
|
174 174 | }
|
175 175 | if let Some(ref val) = self.vpc_id {
|
176 176 | ser.write_string(&GETIPAMADDRESSHISTORYINPUT_MEMBER_VPC_ID, val)?;
|
177 177 | }
|
178 178 | if let Some(ref val) = self.start_time {
|
179 179 | ser.write_timestamp(&GETIPAMADDRESSHISTORYINPUT_MEMBER_START_TIME, val)?;
|
180 180 | }
|
181 181 | if let Some(ref val) = self.end_time {
|
182 182 | ser.write_timestamp(&GETIPAMADDRESSHISTORYINPUT_MEMBER_END_TIME, val)?;
|
183 183 | }
|
184 184 | if let Some(ref val) = self.max_results {
|
185 185 | ser.write_integer(&GETIPAMADDRESSHISTORYINPUT_MEMBER_MAX_RESULTS, *val)?;
|
186 186 | }
|
187 187 | if let Some(ref val) = self.next_token {
|
188 188 | ser.write_string(&GETIPAMADDRESSHISTORYINPUT_MEMBER_NEXT_TOKEN, val)?;
|
189 189 | }
|
190 190 | Ok(())
|
191 191 | }
|
192 192 | }
|
193 193 | impl GetIpamAddressHistoryInput {
|
194 194 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
195 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
196 - | deserializer: &mut D,
|
195 + | pub fn deserialize(
|
196 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
197 197 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
198 198 | #[allow(unused_variables, unused_mut)]
|
199 199 | let mut builder = Self::builder();
|
200 200 | #[allow(
|
201 201 | unused_variables,
|
202 202 | unreachable_code,
|
203 203 | clippy::single_match,
|
204 204 | clippy::match_single_binding,
|
205 205 | clippy::diverging_sub_expression
|
206 206 | )]
|
207 - | deserializer.read_struct(&GETIPAMADDRESSHISTORYINPUT_SCHEMA, (), |_, member, deser| {
|
207 + | deserializer.read_struct(&GETIPAMADDRESSHISTORYINPUT_SCHEMA, &mut |member, deser| {
|
208 208 | match member.member_index() {
|
209 209 | Some(0) => {
|
210 210 | builder.dry_run = Some(deser.read_boolean(member)?);
|
211 211 | }
|
212 212 | Some(1) => {
|
213 213 | builder.cidr = Some(deser.read_string(member)?);
|
214 214 | }
|
215 215 | Some(2) => {
|
216 216 | builder.ipam_scope_id = Some(deser.read_string(member)?);
|
217 217 | }
|
218 218 | Some(3) => {
|
219 219 | builder.vpc_id = Some(deser.read_string(member)?);
|
220 220 | }
|
221 221 | Some(4) => {
|
222 222 | builder.start_time = Some(deser.read_timestamp(member)?);
|
223 223 | }
|
224 224 | Some(5) => {
|
225 225 | builder.end_time = Some(deser.read_timestamp(member)?);
|
226 226 | }
|
227 227 | Some(6) => {
|
228 228 | builder.max_results = Some(deser.read_integer(member)?);
|
229 229 | }
|
230 230 | Some(7) => {
|
231 231 | builder.next_token = Some(deser.read_string(member)?);
|
232 232 | }
|
233 233 | _ => {}
|
234 234 | }
|
235 235 | Ok(())
|
236 236 | })?;
|
237 + | builder.cidr = builder.cidr.or(Some(String::new()));
|
238 + | builder.ipam_scope_id = builder.ipam_scope_id.or(Some(String::new()));
|
237 239 | builder
|
238 240 | .build()
|
239 241 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
240 242 | }
|
241 243 | }
|
244 + | impl GetIpamAddressHistoryInput {
|
245 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
246 + | pub fn deserialize_with_response(
|
247 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
248 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
249 + | _status: u16,
|
250 + | _body: &[u8],
|
251 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
252 + | Self::deserialize(deserializer)
|
253 + | }
|
254 + | }
|
242 255 | impl GetIpamAddressHistoryInput {
|
243 256 | /// Creates a new builder-style object to manufacture [`GetIpamAddressHistoryInput`](crate::operation::get_ipam_address_history::GetIpamAddressHistoryInput).
|
244 257 | pub fn builder() -> crate::operation::get_ipam_address_history::builders::GetIpamAddressHistoryInputBuilder {
|
245 258 | crate::operation::get_ipam_address_history::builders::GetIpamAddressHistoryInputBuilder::default()
|
246 259 | }
|
247 260 | }
|
248 261 |
|
249 262 | /// A builder for [`GetIpamAddressHistoryInput`](crate::operation::get_ipam_address_history::GetIpamAddressHistoryInput).
|
250 263 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
251 264 | #[non_exhaustive]
|