173 173 | }
|
174 174 | #[allow(missing_docs)] // documentation missing in model
|
175 175 | pub fn timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
176 176 | self.timestamp.as_ref()
|
177 177 | }
|
178 178 | #[allow(missing_docs)] // documentation missing in model
|
179 179 | pub fn unix_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
180 180 | self.unix_timestamp.as_ref()
|
181 181 | }
|
182 182 | }
|
183 + | impl ::std::fmt::Display for KitchenSink {
|
184 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
185 + | ::std::write!(f, "KitchenSink {{")?;
|
186 + | if let ::std::option::Option::Some(_) = &self.blob {
|
187 + | ::std::write!(f, "blob=Some()")?;
|
188 + | } else {
|
189 + | ::std::write!(f, "blob=None")?;
|
190 + | }
|
191 + | if let ::std::option::Option::Some(inner) = &self.boolean {
|
192 + | ::std::write!(f, ", boolean=Some({})", inner)?;
|
193 + | } else {
|
194 + | ::std::write!(f, ", boolean=None")?;
|
195 + | }
|
196 + | if let ::std::option::Option::Some(inner) = &self.double {
|
197 + | ::std::write!(f, ", double=Some({})", inner)?;
|
198 + | } else {
|
199 + | ::std::write!(f, ", double=None")?;
|
200 + | }
|
201 + | if let ::std::option::Option::Some(inner) = &self.empty_struct {
|
202 + | ::std::write!(f, ", empty_struct=Some({})", inner)?;
|
203 + | } else {
|
204 + | ::std::write!(f, ", empty_struct=None")?;
|
205 + | }
|
206 + | if let ::std::option::Option::Some(inner) = &self.float {
|
207 + | ::std::write!(f, ", float=Some({})", inner)?;
|
208 + | } else {
|
209 + | ::std::write!(f, ", float=None")?;
|
210 + | }
|
211 + | if let ::std::option::Option::Some(inner) = &self.httpdate_timestamp {
|
212 + | ::std::write!(f, ", httpdate_timestamp=Some({})", inner)?;
|
213 + | } else {
|
214 + | ::std::write!(f, ", httpdate_timestamp=None")?;
|
215 + | }
|
216 + | if let ::std::option::Option::Some(inner) = &self.integer {
|
217 + | ::std::write!(f, ", integer=Some({})", inner)?;
|
218 + | } else {
|
219 + | ::std::write!(f, ", integer=None")?;
|
220 + | }
|
221 + | if let ::std::option::Option::Some(inner) = &self.iso8601_timestamp {
|
222 + | ::std::write!(f, ", iso8601_timestamp=Some({})", inner)?;
|
223 + | } else {
|
224 + | ::std::write!(f, ", iso8601_timestamp=None")?;
|
225 + | }
|
226 + | if let ::std::option::Option::Some(inner) = &self.json_value {
|
227 + | ::std::write!(f, ", json_value=Some({})", inner)?;
|
228 + | } else {
|
229 + | ::std::write!(f, ", json_value=None")?;
|
230 + | }
|
231 + | if let ::std::option::Option::Some(_) = &self.list_of_lists {
|
232 + | ::std::write!(f, ", list_of_lists=Some()")?;
|
233 + | } else {
|
234 + | ::std::write!(f, ", list_of_lists=None")?;
|
235 + | }
|
236 + | if let ::std::option::Option::Some(_) = &self.list_of_maps_of_strings {
|
237 + | ::std::write!(f, ", list_of_maps_of_strings=Some()")?;
|
238 + | } else {
|
239 + | ::std::write!(f, ", list_of_maps_of_strings=None")?;
|
240 + | }
|
241 + | if let ::std::option::Option::Some(_) = &self.list_of_strings {
|
242 + | ::std::write!(f, ", list_of_strings=Some()")?;
|
243 + | } else {
|
244 + | ::std::write!(f, ", list_of_strings=None")?;
|
245 + | }
|
246 + | if let ::std::option::Option::Some(_) = &self.list_of_structs {
|
247 + | ::std::write!(f, ", list_of_structs=Some()")?;
|
248 + | } else {
|
249 + | ::std::write!(f, ", list_of_structs=None")?;
|
250 + | }
|
251 + | if let ::std::option::Option::Some(inner) = &self.long {
|
252 + | ::std::write!(f, ", long=Some({})", inner)?;
|
253 + | } else {
|
254 + | ::std::write!(f, ", long=None")?;
|
255 + | }
|
256 + | if let ::std::option::Option::Some(_) = &self.map_of_lists_of_strings {
|
257 + | ::std::write!(f, ", map_of_lists_of_strings=Some()")?;
|
258 + | } else {
|
259 + | ::std::write!(f, ", map_of_lists_of_strings=None")?;
|
260 + | }
|
261 + | if let ::std::option::Option::Some(_) = &self.map_of_maps {
|
262 + | ::std::write!(f, ", map_of_maps=Some()")?;
|
263 + | } else {
|
264 + | ::std::write!(f, ", map_of_maps=None")?;
|
265 + | }
|
266 + | if let ::std::option::Option::Some(_) = &self.map_of_strings {
|
267 + | ::std::write!(f, ", map_of_strings=Some()")?;
|
268 + | } else {
|
269 + | ::std::write!(f, ", map_of_strings=None")?;
|
270 + | }
|
271 + | if let ::std::option::Option::Some(_) = &self.map_of_structs {
|
272 + | ::std::write!(f, ", map_of_structs=Some()")?;
|
273 + | } else {
|
274 + | ::std::write!(f, ", map_of_structs=None")?;
|
275 + | }
|
276 + | if let ::std::option::Option::Some(_) = &self.recursive_list {
|
277 + | ::std::write!(f, ", recursive_list=Some()")?;
|
278 + | } else {
|
279 + | ::std::write!(f, ", recursive_list=None")?;
|
280 + | }
|
281 + | if let ::std::option::Option::Some(_) = &self.recursive_map {
|
282 + | ::std::write!(f, ", recursive_map=Some()")?;
|
283 + | } else {
|
284 + | ::std::write!(f, ", recursive_map=None")?;
|
285 + | }
|
286 + | if let ::std::option::Option::Some(inner) = &self.recursive_struct {
|
287 + | ::std::write!(f, ", recursive_struct=Some({})", inner)?;
|
288 + | } else {
|
289 + | ::std::write!(f, ", recursive_struct=None")?;
|
290 + | }
|
291 + | if let ::std::option::Option::Some(inner) = &self.simple_struct {
|
292 + | ::std::write!(f, ", simple_struct=Some({})", inner)?;
|
293 + | } else {
|
294 + | ::std::write!(f, ", simple_struct=None")?;
|
295 + | }
|
296 + | if let ::std::option::Option::Some(inner) = &self.string {
|
297 + | ::std::write!(f, ", string=Some({})", inner)?;
|
298 + | } else {
|
299 + | ::std::write!(f, ", string=None")?;
|
300 + | }
|
301 + | if let ::std::option::Option::Some(inner) = &self.struct_with_json_name {
|
302 + | ::std::write!(f, ", struct_with_json_name=Some({})", inner)?;
|
303 + | } else {
|
304 + | ::std::write!(f, ", struct_with_json_name=None")?;
|
305 + | }
|
306 + | if let ::std::option::Option::Some(inner) = &self.timestamp {
|
307 + | ::std::write!(f, ", timestamp=Some({})", inner)?;
|
308 + | } else {
|
309 + | ::std::write!(f, ", timestamp=None")?;
|
310 + | }
|
311 + | if let ::std::option::Option::Some(inner) = &self.unix_timestamp {
|
312 + | ::std::write!(f, ", unix_timestamp=Some({})", inner)?;
|
313 + | } else {
|
314 + | ::std::write!(f, ", unix_timestamp=None")?;
|
315 + | }
|
316 + | ::std::write!(f, "}}")
|
317 + | }
|
318 + | }
|
183 319 | impl KitchenSink {
|
184 320 | /// Creates a new builder-style object to manufacture [`KitchenSink`](crate::types::KitchenSink).
|
185 321 | pub fn builder() -> crate::types::builders::KitchenSinkBuilder {
|
186 322 | crate::types::builders::KitchenSinkBuilder::default()
|
187 323 | }
|
188 324 | }
|
189 325 |
|
190 326 | /// A builder for [`KitchenSink`](crate::types::KitchenSink).
|
191 327 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
192 328 | #[non_exhaustive]
|
193 329 | pub struct KitchenSinkBuilder {
|
194 330 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
195 331 | pub(crate) boolean: ::std::option::Option<bool>,
|
196 332 | pub(crate) double: ::std::option::Option<f64>,
|
197 333 | pub(crate) empty_struct: ::std::option::Option<crate::types::EmptyStruct>,
|
198 334 | pub(crate) float: ::std::option::Option<f32>,
|
199 335 | pub(crate) httpdate_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
200 336 | pub(crate) integer: ::std::option::Option<i32>,
|
201 337 | pub(crate) iso8601_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
202 338 | pub(crate) json_value: ::std::option::Option<::std::string::String>,
|
203 339 | pub(crate) list_of_lists: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
204 340 | pub(crate) list_of_maps_of_strings:
|
205 341 | ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::string::String>>>,
|
206 342 | pub(crate) list_of_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
207 343 | pub(crate) list_of_structs: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
|
208 344 | pub(crate) long: ::std::option::Option<i64>,
|
209 345 | pub(crate) map_of_lists_of_strings:
|
210 346 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
|
211 347 | pub(crate) map_of_maps: ::std::option::Option<
|
212 348 | ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
|