1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Updates associated with the address properties of a customer profile.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateAddress {
    /// <p>The first line of a customer address.</p>
    pub address1: ::std::option::Option<::std::string::String>,
    /// <p>The second line of a customer address.</p>
    pub address2: ::std::option::Option<::std::string::String>,
    /// <p>The third line of a customer address.</p>
    pub address3: ::std::option::Option<::std::string::String>,
    /// <p>The fourth line of a customer address.</p>
    pub address4: ::std::option::Option<::std::string::String>,
    /// <p>The city in which a customer lives.</p>
    pub city: ::std::option::Option<::std::string::String>,
    /// <p>The county in which a customer lives.</p>
    pub county: ::std::option::Option<::std::string::String>,
    /// <p>The state in which a customer lives.</p>
    pub state: ::std::option::Option<::std::string::String>,
    /// <p>The province in which a customer lives.</p>
    pub province: ::std::option::Option<::std::string::String>,
    /// <p>The country in which a customer lives.</p>
    pub country: ::std::option::Option<::std::string::String>,
    /// <p>The postal code of a customer address.</p>
    pub postal_code: ::std::option::Option<::std::string::String>,
}
impl UpdateAddress {
    /// <p>The first line of a customer address.</p>
    pub fn address1(&self) -> ::std::option::Option<&str> {
        self.address1.as_deref()
    }
    /// <p>The second line of a customer address.</p>
    pub fn address2(&self) -> ::std::option::Option<&str> {
        self.address2.as_deref()
    }
    /// <p>The third line of a customer address.</p>
    pub fn address3(&self) -> ::std::option::Option<&str> {
        self.address3.as_deref()
    }
    /// <p>The fourth line of a customer address.</p>
    pub fn address4(&self) -> ::std::option::Option<&str> {
        self.address4.as_deref()
    }
    /// <p>The city in which a customer lives.</p>
    pub fn city(&self) -> ::std::option::Option<&str> {
        self.city.as_deref()
    }
    /// <p>The county in which a customer lives.</p>
    pub fn county(&self) -> ::std::option::Option<&str> {
        self.county.as_deref()
    }
    /// <p>The state in which a customer lives.</p>
    pub fn state(&self) -> ::std::option::Option<&str> {
        self.state.as_deref()
    }
    /// <p>The province in which a customer lives.</p>
    pub fn province(&self) -> ::std::option::Option<&str> {
        self.province.as_deref()
    }
    /// <p>The country in which a customer lives.</p>
    pub fn country(&self) -> ::std::option::Option<&str> {
        self.country.as_deref()
    }
    /// <p>The postal code of a customer address.</p>
    pub fn postal_code(&self) -> ::std::option::Option<&str> {
        self.postal_code.as_deref()
    }
}
impl ::std::fmt::Debug for UpdateAddress {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAddress");
        formatter.field("address1", &"*** Sensitive Data Redacted ***");
        formatter.field("address2", &"*** Sensitive Data Redacted ***");
        formatter.field("address3", &"*** Sensitive Data Redacted ***");
        formatter.field("address4", &"*** Sensitive Data Redacted ***");
        formatter.field("city", &"*** Sensitive Data Redacted ***");
        formatter.field("county", &"*** Sensitive Data Redacted ***");
        formatter.field("state", &"*** Sensitive Data Redacted ***");
        formatter.field("province", &"*** Sensitive Data Redacted ***");
        formatter.field("country", &"*** Sensitive Data Redacted ***");
        formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl UpdateAddress {
    /// Creates a new builder-style object to manufacture [`UpdateAddress`](crate::types::UpdateAddress).
    pub fn builder() -> crate::types::builders::UpdateAddressBuilder {
        crate::types::builders::UpdateAddressBuilder::default()
    }
}

/// A builder for [`UpdateAddress`](crate::types::UpdateAddress).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct UpdateAddressBuilder {
    pub(crate) address1: ::std::option::Option<::std::string::String>,
    pub(crate) address2: ::std::option::Option<::std::string::String>,
    pub(crate) address3: ::std::option::Option<::std::string::String>,
    pub(crate) address4: ::std::option::Option<::std::string::String>,
    pub(crate) city: ::std::option::Option<::std::string::String>,
    pub(crate) county: ::std::option::Option<::std::string::String>,
    pub(crate) state: ::std::option::Option<::std::string::String>,
    pub(crate) province: ::std::option::Option<::std::string::String>,
    pub(crate) country: ::std::option::Option<::std::string::String>,
    pub(crate) postal_code: ::std::option::Option<::std::string::String>,
}
impl UpdateAddressBuilder {
    /// <p>The first line of a customer address.</p>
    pub fn address1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.address1 = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The first line of a customer address.</p>
    pub fn set_address1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.address1 = input;
        self
    }
    /// <p>The first line of a customer address.</p>
    pub fn get_address1(&self) -> &::std::option::Option<::std::string::String> {
        &self.address1
    }
    /// <p>The second line of a customer address.</p>
    pub fn address2(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.address2 = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The second line of a customer address.</p>
    pub fn set_address2(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.address2 = input;
        self
    }
    /// <p>The second line of a customer address.</p>
    pub fn get_address2(&self) -> &::std::option::Option<::std::string::String> {
        &self.address2
    }
    /// <p>The third line of a customer address.</p>
    pub fn address3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.address3 = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The third line of a customer address.</p>
    pub fn set_address3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.address3 = input;
        self
    }
    /// <p>The third line of a customer address.</p>
    pub fn get_address3(&self) -> &::std::option::Option<::std::string::String> {
        &self.address3
    }
    /// <p>The fourth line of a customer address.</p>
    pub fn address4(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.address4 = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The fourth line of a customer address.</p>
    pub fn set_address4(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.address4 = input;
        self
    }
    /// <p>The fourth line of a customer address.</p>
    pub fn get_address4(&self) -> &::std::option::Option<::std::string::String> {
        &self.address4
    }
    /// <p>The city in which a customer lives.</p>
    pub fn city(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.city = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The city in which a customer lives.</p>
    pub fn set_city(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.city = input;
        self
    }
    /// <p>The city in which a customer lives.</p>
    pub fn get_city(&self) -> &::std::option::Option<::std::string::String> {
        &self.city
    }
    /// <p>The county in which a customer lives.</p>
    pub fn county(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.county = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The county in which a customer lives.</p>
    pub fn set_county(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.county = input;
        self
    }
    /// <p>The county in which a customer lives.</p>
    pub fn get_county(&self) -> &::std::option::Option<::std::string::String> {
        &self.county
    }
    /// <p>The state in which a customer lives.</p>
    pub fn state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.state = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The state in which a customer lives.</p>
    pub fn set_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.state = input;
        self
    }
    /// <p>The state in which a customer lives.</p>
    pub fn get_state(&self) -> &::std::option::Option<::std::string::String> {
        &self.state
    }
    /// <p>The province in which a customer lives.</p>
    pub fn province(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.province = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The province in which a customer lives.</p>
    pub fn set_province(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.province = input;
        self
    }
    /// <p>The province in which a customer lives.</p>
    pub fn get_province(&self) -> &::std::option::Option<::std::string::String> {
        &self.province
    }
    /// <p>The country in which a customer lives.</p>
    pub fn country(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.country = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The country in which a customer lives.</p>
    pub fn set_country(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.country = input;
        self
    }
    /// <p>The country in which a customer lives.</p>
    pub fn get_country(&self) -> &::std::option::Option<::std::string::String> {
        &self.country
    }
    /// <p>The postal code of a customer address.</p>
    pub fn postal_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.postal_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The postal code of a customer address.</p>
    pub fn set_postal_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.postal_code = input;
        self
    }
    /// <p>The postal code of a customer address.</p>
    pub fn get_postal_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.postal_code
    }
    /// Consumes the builder and constructs a [`UpdateAddress`](crate::types::UpdateAddress).
    pub fn build(self) -> crate::types::UpdateAddress {
        crate::types::UpdateAddress {
            address1: self.address1,
            address2: self.address2,
            address3: self.address3,
            address4: self.address4,
            city: self.city,
            county: self.county,
            state: self.state,
            province: self.province,
            country: self.country,
            postal_code: self.postal_code,
        }
    }
}
impl ::std::fmt::Debug for UpdateAddressBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAddressBuilder");
        formatter.field("address1", &"*** Sensitive Data Redacted ***");
        formatter.field("address2", &"*** Sensitive Data Redacted ***");
        formatter.field("address3", &"*** Sensitive Data Redacted ***");
        formatter.field("address4", &"*** Sensitive Data Redacted ***");
        formatter.field("city", &"*** Sensitive Data Redacted ***");
        formatter.field("county", &"*** Sensitive Data Redacted ***");
        formatter.field("state", &"*** Sensitive Data Redacted ***");
        formatter.field("province", &"*** Sensitive Data Redacted ***");
        formatter.field("country", &"*** Sensitive Data Redacted ***");
        formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}