AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Address.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
28class Address {
29 public:
30 AWS_CUSTOMERPROFILES_API Address() = default;
31 AWS_CUSTOMERPROFILES_API Address(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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 Address& 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
Address & WithCity(CityT &&value)
Definition Address.h:119
Address & WithCountry(CountryT &&value)
Definition Address.h:191
Address & WithAddress2(Address2T &&value)
Definition Address.h:65
Address & WithAddress1(Address1T &&value)
Definition Address.h:47
const Aws::String & GetCity() const
Definition Address.h:111
const Aws::String & GetState() const
Definition Address.h:147
const Aws::String & GetCountry() const
Definition Address.h:183
Address & WithCounty(CountyT &&value)
Definition Address.h:137
void SetAddress3(Address3T &&value)
Definition Address.h:78
Address & WithProvince(ProvinceT &&value)
Definition Address.h:173
Address & WithAddress4(Address4T &&value)
Definition Address.h:101
void SetState(StateT &&value)
Definition Address.h:150
AWS_CUSTOMERPROFILES_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetAddress2(Address2T &&value)
Definition Address.h:60
const Aws::String & GetAddress2() const
Definition Address.h:57
void SetCounty(CountyT &&value)
Definition Address.h:132
void SetProvince(ProvinceT &&value)
Definition Address.h:168
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:209
const Aws::String & GetAddress3() const
Definition Address.h:75
Address & WithState(StateT &&value)
Definition Address.h:155
const Aws::String & GetAddress1() const
Definition Address.h:39
const Aws::String & GetPostalCode() const
Definition Address.h:201
const Aws::String & GetCounty() const
Definition Address.h:129
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress1(Address1T &&value)
Definition Address.h:42
Address & WithAddress3(Address3T &&value)
Definition Address.h:83
const Aws::String & GetProvince() const
Definition Address.h:165
void SetCountry(CountryT &&value)
Definition Address.h:186
AWS_CUSTOMERPROFILES_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:204
const Aws::String & GetAddress4() const
Definition Address.h:93
AWS_CUSTOMERPROFILES_API Address()=default
void SetAddress4(Address4T &&value)
Definition Address.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue