AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API UpdateAddress() = default;
31 AWS_CUSTOMERPROFILES_API UpdateAddress(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API UpdateAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAddress1() const { return m_address1; }
40 inline bool Address1HasBeenSet() const { return m_address1HasBeenSet; }
41 template <typename Address1T = Aws::String>
42 void SetAddress1(Address1T&& value) {
43 m_address1HasBeenSet = true;
44 m_address1 = std::forward<Address1T>(value);
45 }
46 template <typename Address1T = Aws::String>
47 UpdateAddress& WithAddress1(Address1T&& value) {
48 SetAddress1(std::forward<Address1T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAddress2() const { return m_address2; }
58 inline bool Address2HasBeenSet() const { return m_address2HasBeenSet; }
59 template <typename Address2T = Aws::String>
60 void SetAddress2(Address2T&& value) {
61 m_address2HasBeenSet = true;
62 m_address2 = std::forward<Address2T>(value);
63 }
64 template <typename Address2T = Aws::String>
65 UpdateAddress& WithAddress2(Address2T&& value) {
66 SetAddress2(std::forward<Address2T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddress3() const { return m_address3; }
76 inline bool Address3HasBeenSet() const { return m_address3HasBeenSet; }
77 template <typename Address3T = Aws::String>
78 void SetAddress3(Address3T&& value) {
79 m_address3HasBeenSet = true;
80 m_address3 = std::forward<Address3T>(value);
81 }
82 template <typename Address3T = Aws::String>
83 UpdateAddress& WithAddress3(Address3T&& value) {
84 SetAddress3(std::forward<Address3T>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAddress4() const { return m_address4; }
94 inline bool Address4HasBeenSet() const { return m_address4HasBeenSet; }
95 template <typename Address4T = Aws::String>
96 void SetAddress4(Address4T&& value) {
97 m_address4HasBeenSet = true;
98 m_address4 = std::forward<Address4T>(value);
99 }
100 template <typename Address4T = Aws::String>
101 UpdateAddress& WithAddress4(Address4T&& value) {
102 SetAddress4(std::forward<Address4T>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCity() const { return m_city; }
112 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
113 template <typename CityT = Aws::String>
114 void SetCity(CityT&& value) {
115 m_cityHasBeenSet = true;
116 m_city = std::forward<CityT>(value);
117 }
118 template <typename CityT = Aws::String>
119 UpdateAddress& WithCity(CityT&& value) {
120 SetCity(std::forward<CityT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCounty() const { return m_county; }
130 inline bool CountyHasBeenSet() const { return m_countyHasBeenSet; }
131 template <typename CountyT = Aws::String>
132 void SetCounty(CountyT&& value) {
133 m_countyHasBeenSet = true;
134 m_county = std::forward<CountyT>(value);
135 }
136 template <typename CountyT = Aws::String>
137 UpdateAddress& WithCounty(CountyT&& value) {
138 SetCounty(std::forward<CountyT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetState() const { return m_state; }
148 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
149 template <typename StateT = Aws::String>
150 void SetState(StateT&& value) {
151 m_stateHasBeenSet = true;
152 m_state = std::forward<StateT>(value);
153 }
154 template <typename StateT = Aws::String>
155 UpdateAddress& WithState(StateT&& value) {
156 SetState(std::forward<StateT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetProvince() const { return m_province; }
166 inline bool ProvinceHasBeenSet() const { return m_provinceHasBeenSet; }
167 template <typename ProvinceT = Aws::String>
168 void SetProvince(ProvinceT&& value) {
169 m_provinceHasBeenSet = true;
170 m_province = std::forward<ProvinceT>(value);
171 }
172 template <typename ProvinceT = Aws::String>
173 UpdateAddress& WithProvince(ProvinceT&& value) {
174 SetProvince(std::forward<ProvinceT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetCountry() const { return m_country; }
184 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
185 template <typename CountryT = Aws::String>
186 void SetCountry(CountryT&& value) {
187 m_countryHasBeenSet = true;
188 m_country = std::forward<CountryT>(value);
189 }
190 template <typename CountryT = Aws::String>
191 UpdateAddress& WithCountry(CountryT&& value) {
192 SetCountry(std::forward<CountryT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
202 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
203 template <typename PostalCodeT = Aws::String>
204 void SetPostalCode(PostalCodeT&& value) {
205 m_postalCodeHasBeenSet = true;
206 m_postalCode = std::forward<PostalCodeT>(value);
207 }
208 template <typename PostalCodeT = Aws::String>
209 UpdateAddress& WithPostalCode(PostalCodeT&& value) {
210 SetPostalCode(std::forward<PostalCodeT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_address1;
216
217 Aws::String m_address2;
218
219 Aws::String m_address3;
220
221 Aws::String m_address4;
222
223 Aws::String m_city;
224
225 Aws::String m_county;
226
227 Aws::String m_state;
228
229 Aws::String m_province;
230
231 Aws::String m_country;
232
233 Aws::String m_postalCode;
234 bool m_address1HasBeenSet = false;
235 bool m_address2HasBeenSet = false;
236 bool m_address3HasBeenSet = false;
237 bool m_address4HasBeenSet = false;
238 bool m_cityHasBeenSet = false;
239 bool m_countyHasBeenSet = false;
240 bool m_stateHasBeenSet = false;
241 bool m_provinceHasBeenSet = false;
242 bool m_countryHasBeenSet = false;
243 bool m_postalCodeHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace CustomerProfiles
248} // namespace Aws
AWS_CUSTOMERPROFILES_API UpdateAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateAddress & WithAddress2(Address2T &&value)
const Aws::String & GetAddress2() const
AWS_CUSTOMERPROFILES_API UpdateAddress()=default
const Aws::String & GetAddress4() const
UpdateAddress & WithCounty(CountyT &&value)
UpdateAddress & WithAddress3(Address3T &&value)
const Aws::String & GetAddress3() const
UpdateAddress & WithCountry(CountryT &&value)
AWS_CUSTOMERPROFILES_API UpdateAddress(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateAddress & WithAddress4(Address4T &&value)
UpdateAddress & WithCity(CityT &&value)
const Aws::String & GetPostalCode() const
UpdateAddress & WithProvince(ProvinceT &&value)
const Aws::String & GetAddress1() const
UpdateAddress & WithAddress1(Address1T &&value)
UpdateAddress & WithPostalCode(PostalCodeT &&value)
const Aws::String & GetProvince() const
UpdateAddress & WithState(StateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue