AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snowball/Snowball_EXPORTS.h>
9#include <aws/snowball/model/AddressType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Snowball {
21namespace Model {
22
32class Address {
33 public:
34 AWS_SNOWBALL_API Address() = default;
35 AWS_SNOWBALL_API Address(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SNOWBALL_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAddressId() const { return m_addressId; }
44 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
45 template <typename AddressIdT = Aws::String>
46 void SetAddressId(AddressIdT&& value) {
47 m_addressIdHasBeenSet = true;
48 m_addressId = std::forward<AddressIdT>(value);
49 }
50 template <typename AddressIdT = Aws::String>
51 Address& WithAddressId(AddressIdT&& value) {
52 SetAddressId(std::forward<AddressIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 Address& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCompany() const { return m_company; }
80 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
81 template <typename CompanyT = Aws::String>
82 void SetCompany(CompanyT&& value) {
83 m_companyHasBeenSet = true;
84 m_company = std::forward<CompanyT>(value);
85 }
86 template <typename CompanyT = Aws::String>
87 Address& WithCompany(CompanyT&& value) {
88 SetCompany(std::forward<CompanyT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetStreet1() const { return m_street1; }
99 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; }
100 template <typename Street1T = Aws::String>
101 void SetStreet1(Street1T&& value) {
102 m_street1HasBeenSet = true;
103 m_street1 = std::forward<Street1T>(value);
104 }
105 template <typename Street1T = Aws::String>
106 Address& WithStreet1(Street1T&& value) {
107 SetStreet1(std::forward<Street1T>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetStreet2() const { return m_street2; }
118 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; }
119 template <typename Street2T = Aws::String>
120 void SetStreet2(Street2T&& value) {
121 m_street2HasBeenSet = true;
122 m_street2 = std::forward<Street2T>(value);
123 }
124 template <typename Street2T = Aws::String>
125 Address& WithStreet2(Street2T&& value) {
126 SetStreet2(std::forward<Street2T>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetStreet3() const { return m_street3; }
137 inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; }
138 template <typename Street3T = Aws::String>
139 void SetStreet3(Street3T&& value) {
140 m_street3HasBeenSet = true;
141 m_street3 = std::forward<Street3T>(value);
142 }
143 template <typename Street3T = Aws::String>
144 Address& WithStreet3(Street3T&& value) {
145 SetStreet3(std::forward<Street3T>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetCity() const { return m_city; }
155 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
156 template <typename CityT = Aws::String>
157 void SetCity(CityT&& value) {
158 m_cityHasBeenSet = true;
159 m_city = std::forward<CityT>(value);
160 }
161 template <typename CityT = Aws::String>
162 Address& WithCity(CityT&& value) {
163 SetCity(std::forward<CityT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetStateOrProvince() const { return m_stateOrProvince; }
174 inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; }
175 template <typename StateOrProvinceT = Aws::String>
176 void SetStateOrProvince(StateOrProvinceT&& value) {
177 m_stateOrProvinceHasBeenSet = true;
178 m_stateOrProvince = std::forward<StateOrProvinceT>(value);
179 }
180 template <typename StateOrProvinceT = Aws::String>
181 Address& WithStateOrProvince(StateOrProvinceT&& value) {
182 SetStateOrProvince(std::forward<StateOrProvinceT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetPrefectureOrDistrict() const { return m_prefectureOrDistrict; }
192 inline bool PrefectureOrDistrictHasBeenSet() const { return m_prefectureOrDistrictHasBeenSet; }
193 template <typename PrefectureOrDistrictT = Aws::String>
194 void SetPrefectureOrDistrict(PrefectureOrDistrictT&& value) {
195 m_prefectureOrDistrictHasBeenSet = true;
196 m_prefectureOrDistrict = std::forward<PrefectureOrDistrictT>(value);
197 }
198 template <typename PrefectureOrDistrictT = Aws::String>
199 Address& WithPrefectureOrDistrict(PrefectureOrDistrictT&& value) {
200 SetPrefectureOrDistrict(std::forward<PrefectureOrDistrictT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetLandmark() const { return m_landmark; }
210 inline bool LandmarkHasBeenSet() const { return m_landmarkHasBeenSet; }
211 template <typename LandmarkT = Aws::String>
212 void SetLandmark(LandmarkT&& value) {
213 m_landmarkHasBeenSet = true;
214 m_landmark = std::forward<LandmarkT>(value);
215 }
216 template <typename LandmarkT = Aws::String>
217 Address& WithLandmark(LandmarkT&& value) {
218 SetLandmark(std::forward<LandmarkT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetCountry() const { return m_country; }
228 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
229 template <typename CountryT = Aws::String>
230 void SetCountry(CountryT&& value) {
231 m_countryHasBeenSet = true;
232 m_country = std::forward<CountryT>(value);
233 }
234 template <typename CountryT = Aws::String>
235 Address& WithCountry(CountryT&& value) {
236 SetCountry(std::forward<CountryT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
246 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
247 template <typename PostalCodeT = Aws::String>
248 void SetPostalCode(PostalCodeT&& value) {
249 m_postalCodeHasBeenSet = true;
250 m_postalCode = std::forward<PostalCodeT>(value);
251 }
252 template <typename PostalCodeT = Aws::String>
253 Address& WithPostalCode(PostalCodeT&& value) {
254 SetPostalCode(std::forward<PostalCodeT>(value));
255 return *this;
256 }
258
260
264 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
265 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
266 template <typename PhoneNumberT = Aws::String>
267 void SetPhoneNumber(PhoneNumberT&& value) {
268 m_phoneNumberHasBeenSet = true;
269 m_phoneNumber = std::forward<PhoneNumberT>(value);
270 }
271 template <typename PhoneNumberT = Aws::String>
272 Address& WithPhoneNumber(PhoneNumberT&& value) {
273 SetPhoneNumber(std::forward<PhoneNumberT>(value));
274 return *this;
275 }
277
279
283 inline bool GetIsRestricted() const { return m_isRestricted; }
284 inline bool IsRestrictedHasBeenSet() const { return m_isRestrictedHasBeenSet; }
285 inline void SetIsRestricted(bool value) {
286 m_isRestrictedHasBeenSet = true;
287 m_isRestricted = value;
288 }
289 inline Address& WithIsRestricted(bool value) {
290 SetIsRestricted(value);
291 return *this;
292 }
294
296
300 inline AddressType GetType() const { return m_type; }
301 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
302 inline void SetType(AddressType value) {
303 m_typeHasBeenSet = true;
304 m_type = value;
305 }
306 inline Address& WithType(AddressType value) {
307 SetType(value);
308 return *this;
309 }
311 private:
312 Aws::String m_addressId;
313
314 Aws::String m_name;
315
316 Aws::String m_company;
317
318 Aws::String m_street1;
319
320 Aws::String m_street2;
321
322 Aws::String m_street3;
323
324 Aws::String m_city;
325
326 Aws::String m_stateOrProvince;
327
328 Aws::String m_prefectureOrDistrict;
329
330 Aws::String m_landmark;
331
332 Aws::String m_country;
333
334 Aws::String m_postalCode;
335
336 Aws::String m_phoneNumber;
337
338 bool m_isRestricted{false};
339
341 bool m_addressIdHasBeenSet = false;
342 bool m_nameHasBeenSet = false;
343 bool m_companyHasBeenSet = false;
344 bool m_street1HasBeenSet = false;
345 bool m_street2HasBeenSet = false;
346 bool m_street3HasBeenSet = false;
347 bool m_cityHasBeenSet = false;
348 bool m_stateOrProvinceHasBeenSet = false;
349 bool m_prefectureOrDistrictHasBeenSet = false;
350 bool m_landmarkHasBeenSet = false;
351 bool m_countryHasBeenSet = false;
352 bool m_postalCodeHasBeenSet = false;
353 bool m_phoneNumberHasBeenSet = false;
354 bool m_isRestrictedHasBeenSet = false;
355 bool m_typeHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace Snowball
360} // namespace Aws
Address & WithType(AddressType value)
Definition Address.h:306
Address & WithLandmark(LandmarkT &&value)
Definition Address.h:217
Address & WithStreet1(Street1T &&value)
Definition Address.h:106
const Aws::String & GetLandmark() const
Definition Address.h:209
const Aws::String & GetAddressId() const
Definition Address.h:43
Address & WithCompany(CompanyT &&value)
Definition Address.h:87
bool StateOrProvinceHasBeenSet() const
Definition Address.h:174
void SetStreet1(Street1T &&value)
Definition Address.h:101
void SetStreet3(Street3T &&value)
Definition Address.h:139
AddressType GetType() const
Definition Address.h:300
AWS_SNOWBALL_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Address.h:64
bool AddressIdHasBeenSet() const
Definition Address.h:44
const Aws::String & GetStreet2() const
Definition Address.h:117
Address & WithStateOrProvince(StateOrProvinceT &&value)
Definition Address.h:181
Address & WithAddressId(AddressIdT &&value)
Definition Address.h:51
const Aws::String & GetCity() const
Definition Address.h:154
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:248
const Aws::String & GetPhoneNumber() const
Definition Address.h:264
bool Street3HasBeenSet() const
Definition Address.h:137
void SetPhoneNumber(PhoneNumberT &&value)
Definition Address.h:267
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:253
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCountry() const
Definition Address.h:227
const Aws::String & GetPrefectureOrDistrict() const
Definition Address.h:191
void SetIsRestricted(bool value)
Definition Address.h:285
AWS_SNOWBALL_API Address()=default
Address & WithName(NameT &&value)
Definition Address.h:69
void SetCity(CityT &&value)
Definition Address.h:157
Address & WithIsRestricted(bool value)
Definition Address.h:289
void SetCountry(CountryT &&value)
Definition Address.h:230
bool IsRestrictedHasBeenSet() const
Definition Address.h:284
void SetAddressId(AddressIdT &&value)
Definition Address.h:46
AWS_SNOWBALL_API Address(Aws::Utils::Json::JsonView jsonValue)
Address & WithPrefectureOrDistrict(PrefectureOrDistrictT &&value)
Definition Address.h:199
bool CountryHasBeenSet() const
Definition Address.h:228
bool CompanyHasBeenSet() const
Definition Address.h:80
const Aws::String & GetStateOrProvince() const
Definition Address.h:173
bool PrefectureOrDistrictHasBeenSet() const
Definition Address.h:192
void SetStateOrProvince(StateOrProvinceT &&value)
Definition Address.h:176
const Aws::String & GetPostalCode() const
Definition Address.h:245
const Aws::String & GetName() const
Definition Address.h:61
Address & WithCountry(CountryT &&value)
Definition Address.h:235
Address & WithPhoneNumber(PhoneNumberT &&value)
Definition Address.h:272
void SetType(AddressType value)
Definition Address.h:302
void SetCompany(CompanyT &&value)
Definition Address.h:82
const Aws::String & GetCompany() const
Definition Address.h:79
bool LandmarkHasBeenSet() const
Definition Address.h:210
void SetPrefectureOrDistrict(PrefectureOrDistrictT &&value)
Definition Address.h:194
bool PostalCodeHasBeenSet() const
Definition Address.h:246
bool PhoneNumberHasBeenSet() const
Definition Address.h:265
const Aws::String & GetStreet3() const
Definition Address.h:136
bool Street1HasBeenSet() const
Definition Address.h:99
bool NameHasBeenSet() const
Definition Address.h:62
Address & WithStreet2(Street2T &&value)
Definition Address.h:125
const Aws::String & GetStreet1() const
Definition Address.h:98
Address & WithStreet3(Street3T &&value)
Definition Address.h:144
void SetLandmark(LandmarkT &&value)
Definition Address.h:212
bool Street2HasBeenSet() const
Definition Address.h:118
void SetStreet2(Street2T &&value)
Definition Address.h:120
Address & WithCity(CityT &&value)
Definition Address.h:162
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue