1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[non_exhaustive]
|
4 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 + | pub struct XmlAttributesInMiddlePayloadResponse {
|
6 + | #[allow(missing_docs)] // documentation missing in model
|
7 + | pub foo: ::std::option::Option<::std::string::String>,
|
8 + | #[allow(missing_docs)] // documentation missing in model
|
9 + | pub attr: ::std::option::Option<::std::string::String>,
|
10 + | #[allow(missing_docs)] // documentation missing in model
|
11 + | pub baz: ::std::option::Option<::std::string::String>,
|
12 + | }
|
13 + | impl XmlAttributesInMiddlePayloadResponse {
|
14 + | #[allow(missing_docs)] // documentation missing in model
|
15 + | pub fn foo(&self) -> ::std::option::Option<&str> {
|
16 + | self.foo.as_deref()
|
17 + | }
|
18 + | #[allow(missing_docs)] // documentation missing in model
|
19 + | pub fn attr(&self) -> ::std::option::Option<&str> {
|
20 + | self.attr.as_deref()
|
21 + | }
|
22 + | #[allow(missing_docs)] // documentation missing in model
|
23 + | pub fn baz(&self) -> ::std::option::Option<&str> {
|
24 + | self.baz.as_deref()
|
25 + | }
|
26 + | }
|
27 + | impl XmlAttributesInMiddlePayloadResponse {
|
28 + | /// Creates a new builder-style object to manufacture [`XmlAttributesInMiddlePayloadResponse`](crate::types::XmlAttributesInMiddlePayloadResponse).
|
29 + | pub fn builder() -> crate::types::builders::XmlAttributesInMiddlePayloadResponseBuilder {
|
30 + | crate::types::builders::XmlAttributesInMiddlePayloadResponseBuilder::default()
|
31 + | }
|
32 + | }
|
33 + |
|
34 + | /// A builder for [`XmlAttributesInMiddlePayloadResponse`](crate::types::XmlAttributesInMiddlePayloadResponse).
|
35 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
36 + | #[non_exhaustive]
|
37 + | pub struct XmlAttributesInMiddlePayloadResponseBuilder {
|
38 + | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
39 + | pub(crate) attr: ::std::option::Option<::std::string::String>,
|
40 + | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
41 + | }
|
42 + | impl XmlAttributesInMiddlePayloadResponseBuilder {
|
43 + | #[allow(missing_docs)] // documentation missing in model
|
44 + | pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
45 + | self.foo = ::std::option::Option::Some(input.into());
|
46 + | self
|
47 + | }
|
48 + | #[allow(missing_docs)] // documentation missing in model
|
49 + | pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
50 + | self.foo = input;
|
51 + | self
|
52 + | }
|
53 + | #[allow(missing_docs)] // documentation missing in model
|
54 + | pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
|
55 + | &self.foo
|
56 + | }
|
57 + | #[allow(missing_docs)] // documentation missing in model
|
58 + | pub fn attr(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
59 + | self.attr = ::std::option::Option::Some(input.into());
|
60 + | self
|
61 + | }
|
62 + | #[allow(missing_docs)] // documentation missing in model
|
63 + | pub fn set_attr(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
64 + | self.attr = input;
|
65 + | self
|
66 + | }
|
67 + | #[allow(missing_docs)] // documentation missing in model
|
68 + | pub fn get_attr(&self) -> &::std::option::Option<::std::string::String> {
|
69 + | &self.attr
|
70 + | }
|
71 + | #[allow(missing_docs)] // documentation missing in model
|
72 + | pub fn baz(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
73 + | self.baz = ::std::option::Option::Some(input.into());
|
74 + | self
|
75 + | }
|
76 + | #[allow(missing_docs)] // documentation missing in model
|
77 + | pub fn set_baz(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
78 + | self.baz = input;
|
79 + | self
|
80 + | }
|
81 + | #[allow(missing_docs)] // documentation missing in model
|
82 + | pub fn get_baz(&self) -> &::std::option::Option<::std::string::String> {
|
83 + | &self.baz
|
84 + | }
|
85 + | /// Consumes the builder and constructs a [`XmlAttributesInMiddlePayloadResponse`](crate::types::XmlAttributesInMiddlePayloadResponse).
|
86 + | pub fn build(self) -> crate::types::XmlAttributesInMiddlePayloadResponse {
|
87 + | crate::types::XmlAttributesInMiddlePayloadResponse {
|
88 + | foo: self.foo,
|
89 + | attr: self.attr,
|
90 + | baz: self.baz,
|
91 + | }
|
92 + | }
|
93 + | }
|