AWS SDK for C++  1.8.95
AWS SDK for C++
Address.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Snowball
22 {
23 namespace Model
24 {
25 
36  {
37  public:
38  Address();
40  Address& operator=(Aws::Utils::Json::JsonView jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
43 
47  inline const Aws::String& GetAddressId() const{ return m_addressId; }
48 
52  inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
53 
57  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
58 
62  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
63 
67  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
68 
72  inline Address& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
73 
77  inline Address& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
78 
82  inline Address& WithAddressId(const char* value) { SetAddressId(value); return *this;}
83 
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 
98  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 
108  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 
113  inline Address& WithName(const Aws::String& value) { SetName(value); return *this;}
114 
118  inline Address& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
119 
123  inline Address& WithName(const char* value) { SetName(value); return *this;}
124 
125 
129  inline const Aws::String& GetCompany() const{ return m_company; }
130 
134  inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
135 
139  inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
140 
144  inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); }
145 
149  inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
150 
154  inline Address& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
155 
159  inline Address& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;}
160 
164  inline Address& WithCompany(const char* value) { SetCompany(value); return *this;}
165 
166 
171  inline const Aws::String& GetStreet1() const{ return m_street1; }
172 
177  inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; }
178 
183  inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; }
184 
189  inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = std::move(value); }
190 
195  inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); }
196 
201  inline Address& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;}
202 
207  inline Address& WithStreet1(Aws::String&& value) { SetStreet1(std::move(value)); return *this;}
208 
213  inline Address& WithStreet1(const char* value) { SetStreet1(value); return *this;}
214 
215 
220  inline const Aws::String& GetStreet2() const{ return m_street2; }
221 
226  inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; }
227 
232  inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; }
233 
238  inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = std::move(value); }
239 
244  inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); }
245 
250  inline Address& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;}
251 
256  inline Address& WithStreet2(Aws::String&& value) { SetStreet2(std::move(value)); return *this;}
257 
262  inline Address& WithStreet2(const char* value) { SetStreet2(value); return *this;}
263 
264 
269  inline const Aws::String& GetStreet3() const{ return m_street3; }
270 
275  inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; }
276 
281  inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; }
282 
287  inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = std::move(value); }
288 
293  inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); }
294 
299  inline Address& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;}
300 
305  inline Address& WithStreet3(Aws::String&& value) { SetStreet3(std::move(value)); return *this;}
306 
311  inline Address& WithStreet3(const char* value) { SetStreet3(value); return *this;}
312 
313 
317  inline const Aws::String& GetCity() const{ return m_city; }
318 
322  inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
323 
327  inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
328 
332  inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
333 
337  inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
338 
342  inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
343 
347  inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
348 
352  inline Address& WithCity(const char* value) { SetCity(value); return *this;}
353 
354 
359  inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; }
360 
365  inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; }
366 
371  inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
372 
377  inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = std::move(value); }
378 
383  inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); }
384 
389  inline Address& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;}
390 
395  inline Address& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(std::move(value)); return *this;}
396 
401  inline Address& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;}
402 
403 
407  inline const Aws::String& GetPrefectureOrDistrict() const{ return m_prefectureOrDistrict; }
408 
412  inline bool PrefectureOrDistrictHasBeenSet() const { return m_prefectureOrDistrictHasBeenSet; }
413 
417  inline void SetPrefectureOrDistrict(const Aws::String& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = value; }
418 
422  inline void SetPrefectureOrDistrict(Aws::String&& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = std::move(value); }
423 
427  inline void SetPrefectureOrDistrict(const char* value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict.assign(value); }
428 
432  inline Address& WithPrefectureOrDistrict(const Aws::String& value) { SetPrefectureOrDistrict(value); return *this;}
433 
437  inline Address& WithPrefectureOrDistrict(Aws::String&& value) { SetPrefectureOrDistrict(std::move(value)); return *this;}
438 
442  inline Address& WithPrefectureOrDistrict(const char* value) { SetPrefectureOrDistrict(value); return *this;}
443 
444 
448  inline const Aws::String& GetLandmark() const{ return m_landmark; }
449 
453  inline bool LandmarkHasBeenSet() const { return m_landmarkHasBeenSet; }
454 
458  inline void SetLandmark(const Aws::String& value) { m_landmarkHasBeenSet = true; m_landmark = value; }
459 
463  inline void SetLandmark(Aws::String&& value) { m_landmarkHasBeenSet = true; m_landmark = std::move(value); }
464 
468  inline void SetLandmark(const char* value) { m_landmarkHasBeenSet = true; m_landmark.assign(value); }
469 
473  inline Address& WithLandmark(const Aws::String& value) { SetLandmark(value); return *this;}
474 
478  inline Address& WithLandmark(Aws::String&& value) { SetLandmark(std::move(value)); return *this;}
479 
483  inline Address& WithLandmark(const char* value) { SetLandmark(value); return *this;}
484 
485 
489  inline const Aws::String& GetCountry() const{ return m_country; }
490 
494  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
495 
499  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
500 
504  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
505 
509  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
510 
514  inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
515 
519  inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
520 
524  inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
525 
526 
530  inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
531 
535  inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
536 
540  inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
541 
545  inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
546 
550  inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
551 
555  inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
556 
560  inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
561 
565  inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
566 
567 
572  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
573 
578  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
579 
584  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
585 
590  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
591 
596  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
597 
602  inline Address& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
603 
608  inline Address& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
609 
614  inline Address& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
615 
616 
621  inline bool GetIsRestricted() const{ return m_isRestricted; }
622 
627  inline bool IsRestrictedHasBeenSet() const { return m_isRestrictedHasBeenSet; }
628 
633  inline void SetIsRestricted(bool value) { m_isRestrictedHasBeenSet = true; m_isRestricted = value; }
634 
639  inline Address& WithIsRestricted(bool value) { SetIsRestricted(value); return *this;}
640 
641  private:
642 
643  Aws::String m_addressId;
644  bool m_addressIdHasBeenSet;
645 
646  Aws::String m_name;
647  bool m_nameHasBeenSet;
648 
649  Aws::String m_company;
650  bool m_companyHasBeenSet;
651 
652  Aws::String m_street1;
653  bool m_street1HasBeenSet;
654 
655  Aws::String m_street2;
656  bool m_street2HasBeenSet;
657 
658  Aws::String m_street3;
659  bool m_street3HasBeenSet;
660 
661  Aws::String m_city;
662  bool m_cityHasBeenSet;
663 
664  Aws::String m_stateOrProvince;
665  bool m_stateOrProvinceHasBeenSet;
666 
667  Aws::String m_prefectureOrDistrict;
668  bool m_prefectureOrDistrictHasBeenSet;
669 
670  Aws::String m_landmark;
671  bool m_landmarkHasBeenSet;
672 
673  Aws::String m_country;
674  bool m_countryHasBeenSet;
675 
676  Aws::String m_postalCode;
677  bool m_postalCodeHasBeenSet;
678 
679  Aws::String m_phoneNumber;
680  bool m_phoneNumberHasBeenSet;
681 
682  bool m_isRestricted;
683  bool m_isRestrictedHasBeenSet;
684  };
685 
686 } // namespace Model
687 } // namespace Snowball
688 } // namespace Aws
void SetPrefectureOrDistrict(Aws::String &&value)
Definition: Address.h:422
Address & WithPostalCode(const char *value)
Definition: Address.h:565
void SetStreet3(Aws::String &&value)
Definition: Address.h:287
void SetPostalCode(const char *value)
Definition: Address.h:550
const Aws::String & GetAddressId() const
Definition: Address.h:47
const Aws::String & GetCountry() const
Definition: Address.h:489
Address & WithCity(const Aws::String &value)
Definition: Address.h:342
void SetPhoneNumber(const Aws::String &value)
Definition: Address.h:584
const Aws::String & GetPostalCode() const
Definition: Address.h:530
void SetStreet3(const char *value)
Definition: Address.h:293
Address & WithStateOrProvince(const char *value)
Definition: Address.h:401
Address & WithStreet3(const Aws::String &value)
Definition: Address.h:299
Address & WithPhoneNumber(Aws::String &&value)
Definition: Address.h:608
Address & WithAddressId(Aws::String &&value)
Definition: Address.h:77
bool CompanyHasBeenSet() const
Definition: Address.h:134
Address & WithCity(Aws::String &&value)
Definition: Address.h:347
void SetPrefectureOrDistrict(const Aws::String &value)
Definition: Address.h:417
void SetAddressId(Aws::String &&value)
Definition: Address.h:62
Address & WithLandmark(Aws::String &&value)
Definition: Address.h:478
Address & WithStreet2(Aws::String &&value)
Definition: Address.h:256
void SetCompany(const Aws::String &value)
Definition: Address.h:139
void SetLandmark(const Aws::String &value)
Definition: Address.h:458
Address & WithAddressId(const Aws::String &value)
Definition: Address.h:72
void SetPostalCode(const Aws::String &value)
Definition: Address.h:540
bool PostalCodeHasBeenSet() const
Definition: Address.h:535
Address & WithPostalCode(Aws::String &&value)
Definition: Address.h:560
const Aws::String & GetCompany() const
Definition: Address.h:129
Address & WithStreet1(const char *value)
Definition: Address.h:213
Address & WithStateOrProvince(Aws::String &&value)
Definition: Address.h:395
Address & WithPrefectureOrDistrict(const Aws::String &value)
Definition: Address.h:432
Address & WithCountry(const Aws::String &value)
Definition: Address.h:514
Address & WithPhoneNumber(const Aws::String &value)
Definition: Address.h:602
Address & WithName(const Aws::String &value)
Definition: Address.h:113
void SetPhoneNumber(const char *value)
Definition: Address.h:596
void SetAddressId(const Aws::String &value)
Definition: Address.h:57
Address & WithStreet3(const char *value)
Definition: Address.h:311
Address & WithStreet3(Aws::String &&value)
Definition: Address.h:305
Address & WithCompany(const char *value)
Definition: Address.h:164
bool NameHasBeenSet() const
Definition: Address.h:93
bool Street1HasBeenSet() const
Definition: Address.h:177
void SetName(const Aws::String &value)
Definition: Address.h:98
void SetCompany(const char *value)
Definition: Address.h:149
void SetName(const char *value)
Definition: Address.h:108
void SetLandmark(const char *value)
Definition: Address.h:468
const Aws::String & GetPrefectureOrDistrict() const
Definition: Address.h:407
Address & WithPhoneNumber(const char *value)
Definition: Address.h:614
const Aws::String & GetStateOrProvince() const
Definition: Address.h:359
Address & WithName(Aws::String &&value)
Definition: Address.h:118
Address & WithStreet2(const char *value)
Definition: Address.h:262
void SetLandmark(Aws::String &&value)
Definition: Address.h:463
Address & WithCity(const char *value)
Definition: Address.h:352
Address & WithCountry(const char *value)
Definition: Address.h:524
const Aws::String & GetStreet2() const
Definition: Address.h:220
void SetStreet2(Aws::String &&value)
Definition: Address.h:238
bool LandmarkHasBeenSet() const
Definition: Address.h:453
Address & WithStreet2(const Aws::String &value)
Definition: Address.h:250
#define AWS_SNOWBALL_API
void SetPostalCode(Aws::String &&value)
Definition: Address.h:545
const Aws::String & GetPhoneNumber() const
Definition: Address.h:572
void SetIsRestricted(bool value)
Definition: Address.h:633
void SetCountry(const Aws::String &value)
Definition: Address.h:499
Address & WithAddressId(const char *value)
Definition: Address.h:82
bool StateOrProvinceHasBeenSet() const
Definition: Address.h:365
Address & WithPrefectureOrDistrict(const char *value)
Definition: Address.h:442
bool PrefectureOrDistrictHasBeenSet() const
Definition: Address.h:412
void SetAddressId(const char *value)
Definition: Address.h:67
void SetName(Aws::String &&value)
Definition: Address.h:103
bool CityHasBeenSet() const
Definition: Address.h:322
Address & WithCompany(Aws::String &&value)
Definition: Address.h:159
bool Street3HasBeenSet() const
Definition: Address.h:275
void SetStateOrProvince(Aws::String &&value)
Definition: Address.h:377
Address & WithName(const char *value)
Definition: Address.h:123
void SetCountry(Aws::String &&value)
Definition: Address.h:504
Address & WithLandmark(const char *value)
Definition: Address.h:483
Address & WithCompany(const Aws::String &value)
Definition: Address.h:154
void SetStateOrProvince(const char *value)
Definition: Address.h:383
void SetCity(const char *value)
Definition: Address.h:337
void SetStreet1(const Aws::String &value)
Definition: Address.h:183
void SetPrefectureOrDistrict(const char *value)
Definition: Address.h:427
Address & WithCountry(Aws::String &&value)
Definition: Address.h:519
Address & WithPrefectureOrDistrict(Aws::String &&value)
Definition: Address.h:437
void SetCountry(const char *value)
Definition: Address.h:509
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetStreet1() const
Definition: Address.h:171
const Aws::String & GetStreet3() const
Definition: Address.h:269
bool GetIsRestricted() const
Definition: Address.h:621
bool CountryHasBeenSet() const
Definition: Address.h:494
void SetStreet2(const char *value)
Definition: Address.h:244
void SetStreet1(Aws::String &&value)
Definition: Address.h:189
void SetCity(const Aws::String &value)
Definition: Address.h:327
const Aws::String & GetName() const
Definition: Address.h:88
Address & WithStateOrProvince(const Aws::String &value)
Definition: Address.h:389
Address & WithStreet1(Aws::String &&value)
Definition: Address.h:207
void SetStreet2(const Aws::String &value)
Definition: Address.h:232
void SetCity(Aws::String &&value)
Definition: Address.h:332
const Aws::String & GetCity() const
Definition: Address.h:317
void SetCompany(Aws::String &&value)
Definition: Address.h:144
void SetPhoneNumber(Aws::String &&value)
Definition: Address.h:590
Address & WithPostalCode(const Aws::String &value)
Definition: Address.h:555
Address & WithLandmark(const Aws::String &value)
Definition: Address.h:473
void SetStateOrProvince(const Aws::String &value)
Definition: Address.h:371
bool AddressIdHasBeenSet() const
Definition: Address.h:52
bool IsRestrictedHasBeenSet() const
Definition: Address.h:627
Address & WithStreet1(const Aws::String &value)
Definition: Address.h:201
void SetStreet1(const char *value)
Definition: Address.h:195
bool Street2HasBeenSet() const
Definition: Address.h:226
void SetStreet3(const Aws::String &value)
Definition: Address.h:281
const Aws::String & GetLandmark() const
Definition: Address.h:448
Address & WithIsRestricted(bool value)
Definition: Address.h:639
bool PhoneNumberHasBeenSet() const
Definition: Address.h:578