AWS SDK for C++  0.14.3
AWS SDK for C++
Address.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace Snowball
29 {
30 namespace Model
31 {
32 
42  {
43  public:
44  Address();
45  Address(const Aws::Utils::Json::JsonValue& jsonValue);
46  Address& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetAddressId() const{ return m_addressId; }
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 = 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(value); return *this;}
78 
82  inline Address& WithAddressId(const char* value) { SetAddressId(value); return *this;}
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 
107  inline Address& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
112  inline Address& WithName(Aws::String&& value) { SetName(value); return *this;}
113 
117  inline Address& WithName(const char* value) { SetName(value); return *this;}
118 
122  inline const Aws::String& GetCompany() const{ return m_company; }
123 
127  inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
128 
132  inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = value; }
133 
137  inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
138 
142  inline Address& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
143 
147  inline Address& WithCompany(Aws::String&& value) { SetCompany(value); return *this;}
148 
152  inline Address& WithCompany(const char* value) { SetCompany(value); return *this;}
153 
157  inline const Aws::String& GetStreet1() const{ return m_street1; }
158 
162  inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; }
163 
167  inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = value; }
168 
172  inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); }
173 
177  inline Address& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;}
178 
182  inline Address& WithStreet1(Aws::String&& value) { SetStreet1(value); return *this;}
183 
187  inline Address& WithStreet1(const char* value) { SetStreet1(value); return *this;}
188 
193  inline const Aws::String& GetStreet2() const{ return m_street2; }
194 
199  inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; }
200 
205  inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = value; }
206 
211  inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); }
212 
217  inline Address& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;}
218 
223  inline Address& WithStreet2(Aws::String&& value) { SetStreet2(value); return *this;}
224 
229  inline Address& WithStreet2(const char* value) { SetStreet2(value); return *this;}
230 
234  inline const Aws::String& GetStreet3() const{ return m_street3; }
235 
239  inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; }
240 
244  inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = value; }
245 
249  inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); }
250 
254  inline Address& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;}
255 
259  inline Address& WithStreet3(Aws::String&& value) { SetStreet3(value); return *this;}
260 
264  inline Address& WithStreet3(const char* value) { SetStreet3(value); return *this;}
265 
269  inline const Aws::String& GetCity() const{ return m_city; }
270 
274  inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
275 
279  inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = value; }
280 
284  inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
285 
289  inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
290 
294  inline Address& WithCity(Aws::String&& value) { SetCity(value); return *this;}
295 
299  inline Address& WithCity(const char* value) { SetCity(value); return *this;}
300 
305  inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; }
306 
311  inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
312 
317  inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
318 
323  inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); }
324 
329  inline Address& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;}
330 
335  inline Address& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(value); return *this;}
336 
341  inline Address& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;}
342 
347  inline const Aws::String& GetPrefectureOrDistrict() const{ return m_prefectureOrDistrict; }
348 
353  inline void SetPrefectureOrDistrict(const Aws::String& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = value; }
354 
359  inline void SetPrefectureOrDistrict(Aws::String&& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = value; }
360 
365  inline void SetPrefectureOrDistrict(const char* value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict.assign(value); }
366 
371  inline Address& WithPrefectureOrDistrict(const Aws::String& value) { SetPrefectureOrDistrict(value); return *this;}
372 
377  inline Address& WithPrefectureOrDistrict(Aws::String&& value) { SetPrefectureOrDistrict(value); return *this;}
378 
383  inline Address& WithPrefectureOrDistrict(const char* value) { SetPrefectureOrDistrict(value); return *this;}
384 
388  inline const Aws::String& GetLandmark() const{ return m_landmark; }
389 
393  inline void SetLandmark(const Aws::String& value) { m_landmarkHasBeenSet = true; m_landmark = value; }
394 
398  inline void SetLandmark(Aws::String&& value) { m_landmarkHasBeenSet = true; m_landmark = value; }
399 
403  inline void SetLandmark(const char* value) { m_landmarkHasBeenSet = true; m_landmark.assign(value); }
404 
408  inline Address& WithLandmark(const Aws::String& value) { SetLandmark(value); return *this;}
409 
413  inline Address& WithLandmark(Aws::String&& value) { SetLandmark(value); return *this;}
414 
418  inline Address& WithLandmark(const char* value) { SetLandmark(value); return *this;}
419 
423  inline const Aws::String& GetCountry() const{ return m_country; }
424 
428  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
429 
433  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = value; }
434 
438  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
439 
443  inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
444 
448  inline Address& WithCountry(Aws::String&& value) { SetCountry(value); return *this;}
449 
453  inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
454 
458  inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
459 
463  inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
464 
468  inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
469 
473  inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
474 
478  inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
479 
483  inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(value); return *this;}
484 
488  inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
489 
494  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
495 
500  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
501 
506  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
507 
512  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
513 
518  inline Address& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
519 
524  inline Address& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(value); return *this;}
525 
530  inline Address& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
531 
532  private:
533  Aws::String m_addressId;
534  bool m_addressIdHasBeenSet;
535  Aws::String m_name;
536  bool m_nameHasBeenSet;
537  Aws::String m_company;
538  bool m_companyHasBeenSet;
539  Aws::String m_street1;
540  bool m_street1HasBeenSet;
541  Aws::String m_street2;
542  bool m_street2HasBeenSet;
543  Aws::String m_street3;
544  bool m_street3HasBeenSet;
545  Aws::String m_city;
546  bool m_cityHasBeenSet;
547  Aws::String m_stateOrProvince;
548  bool m_stateOrProvinceHasBeenSet;
549  Aws::String m_prefectureOrDistrict;
550  bool m_prefectureOrDistrictHasBeenSet;
551  Aws::String m_landmark;
552  bool m_landmarkHasBeenSet;
553  Aws::String m_country;
554  bool m_countryHasBeenSet;
555  Aws::String m_postalCode;
556  bool m_postalCodeHasBeenSet;
557  Aws::String m_phoneNumber;
558  bool m_phoneNumberHasBeenSet;
559  };
560 
561 } // namespace Model
562 } // namespace Snowball
563 } // namespace Aws
void SetPrefectureOrDistrict(Aws::String &&value)
Definition: Address.h:359
Address & WithPostalCode(const char *value)
Definition: Address.h:488
void SetStreet3(Aws::String &&value)
Definition: Address.h:244
void SetPostalCode(const char *value)
Definition: Address.h:473
Address & WithCity(const Aws::String &value)
Definition: Address.h:289
void SetPhoneNumber(const Aws::String &value)
Definition: Address.h:500
void SetStreet3(const char *value)
Definition: Address.h:249
Address & WithStateOrProvince(const char *value)
Definition: Address.h:341
const Aws::String & GetPrefectureOrDistrict() const
Definition: Address.h:347
Address & WithStreet3(const Aws::String &value)
Definition: Address.h:254
Address & WithPhoneNumber(Aws::String &&value)
Definition: Address.h:524
Address & WithAddressId(Aws::String &&value)
Definition: Address.h:77
Address & WithCity(Aws::String &&value)
Definition: Address.h:294
void SetPrefectureOrDistrict(const Aws::String &value)
Definition: Address.h:353
void SetAddressId(Aws::String &&value)
Definition: Address.h:62
Address & WithLandmark(Aws::String &&value)
Definition: Address.h:413
Address & WithStreet2(Aws::String &&value)
Definition: Address.h:223
void SetCompany(const Aws::String &value)
Definition: Address.h:127
void SetLandmark(const Aws::String &value)
Definition: Address.h:393
Address & WithAddressId(const Aws::String &value)
Definition: Address.h:72
void SetPostalCode(const Aws::String &value)
Definition: Address.h:463
const Aws::String & GetCompany() const
Definition: Address.h:122
const Aws::String & GetName() const
Definition: Address.h:87
Address & WithPostalCode(Aws::String &&value)
Definition: Address.h:483
Address & WithStreet1(const char *value)
Definition: Address.h:187
Address & WithStateOrProvince(Aws::String &&value)
Definition: Address.h:335
Address & WithPrefectureOrDistrict(const Aws::String &value)
Definition: Address.h:371
Address & WithCountry(const Aws::String &value)
Definition: Address.h:443
const Aws::String & GetLandmark() const
Definition: Address.h:388
const Aws::String & GetCity() const
Definition: Address.h:269
const Aws::String & GetStreet1() const
Definition: Address.h:157
Address & WithPhoneNumber(const Aws::String &value)
Definition: Address.h:518
Address & WithName(const Aws::String &value)
Definition: Address.h:107
void SetPhoneNumber(const char *value)
Definition: Address.h:512
void SetAddressId(const Aws::String &value)
Definition: Address.h:57
Address & WithStreet3(const char *value)
Definition: Address.h:264
Address & WithStreet3(Aws::String &&value)
Definition: Address.h:259
Address & WithCompany(const char *value)
Definition: Address.h:152
const Aws::String & GetPostalCode() const
Definition: Address.h:458
void SetName(const Aws::String &value)
Definition: Address.h:92
void SetCompany(const char *value)
Definition: Address.h:137
void SetName(const char *value)
Definition: Address.h:102
void SetLandmark(const char *value)
Definition: Address.h:403
Address & WithPhoneNumber(const char *value)
Definition: Address.h:530
Address & WithName(Aws::String &&value)
Definition: Address.h:112
const Aws::String & GetCountry() const
Definition: Address.h:423
Address & WithStreet2(const char *value)
Definition: Address.h:229
void SetLandmark(Aws::String &&value)
Definition: Address.h:398
Address & WithCity(const char *value)
Definition: Address.h:299
Address & WithCountry(const char *value)
Definition: Address.h:453
void SetStreet2(Aws::String &&value)
Definition: Address.h:205
Address & WithStreet2(const Aws::String &value)
Definition: Address.h:217
#define AWS_SNOWBALL_API
void SetPostalCode(Aws::String &&value)
Definition: Address.h:468
const Aws::String & GetStateOrProvince() const
Definition: Address.h:305
void SetCountry(const Aws::String &value)
Definition: Address.h:428
Address & WithAddressId(const char *value)
Definition: Address.h:82
const Aws::String & GetAddressId() const
Definition: Address.h:52
Address & WithPrefectureOrDistrict(const char *value)
Definition: Address.h:383
void SetAddressId(const char *value)
Definition: Address.h:67
void SetName(Aws::String &&value)
Definition: Address.h:97
Address & WithCompany(Aws::String &&value)
Definition: Address.h:147
void SetStateOrProvince(Aws::String &&value)
Definition: Address.h:317
Address & WithName(const char *value)
Definition: Address.h:117
void SetCountry(Aws::String &&value)
Definition: Address.h:433
Address & WithLandmark(const char *value)
Definition: Address.h:418
Address & WithCompany(const Aws::String &value)
Definition: Address.h:142
void SetStateOrProvince(const char *value)
Definition: Address.h:323
void SetCity(const char *value)
Definition: Address.h:284
void SetStreet1(const Aws::String &value)
Definition: Address.h:162
void SetPrefectureOrDistrict(const char *value)
Definition: Address.h:365
Address & WithCountry(Aws::String &&value)
Definition: Address.h:448
Address & WithPrefectureOrDistrict(Aws::String &&value)
Definition: Address.h:377
void SetCountry(const char *value)
Definition: Address.h:438
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStreet2(const char *value)
Definition: Address.h:211
void SetStreet1(Aws::String &&value)
Definition: Address.h:167
void SetCity(const Aws::String &value)
Definition: Address.h:274
Address & WithStateOrProvince(const Aws::String &value)
Definition: Address.h:329
const Aws::String & GetStreet2() const
Definition: Address.h:193
Address & WithStreet1(Aws::String &&value)
Definition: Address.h:182
void SetStreet2(const Aws::String &value)
Definition: Address.h:199
void SetCity(Aws::String &&value)
Definition: Address.h:279
void SetCompany(Aws::String &&value)
Definition: Address.h:132
void SetPhoneNumber(Aws::String &&value)
Definition: Address.h:506
const Aws::String & GetPhoneNumber() const
Definition: Address.h:494
const Aws::String & GetStreet3() const
Definition: Address.h:234
Address & WithPostalCode(const Aws::String &value)
Definition: Address.h:478
Address & WithLandmark(const Aws::String &value)
Definition: Address.h:408
void SetStateOrProvince(const Aws::String &value)
Definition: Address.h:311
JSON (JavaScript Object Notation).
Address & WithStreet1(const Aws::String &value)
Definition: Address.h:177
void SetStreet1(const char *value)
Definition: Address.h:172
void SetStreet3(const Aws::String &value)
Definition: Address.h:239