1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/snowball/Snowball_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 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 26 /** 27 * <p>The address that you want the Snow device(s) associated with a specific job 28 * to be shipped to. Addresses are validated at the time of creation. The address 29 * you provide must be located within the serviceable area of your region. Although 30 * no individual elements of the <code>Address</code> are required, if the address 31 * is invalid or unsupported, then an exception is thrown.</p><p><h3>See Also:</h3> 32 * <a href="http://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/Address">AWS 33 * API Reference</a></p> 34 */ 35 class AWS_SNOWBALL_API Address 36 { 37 public: 38 Address(); 39 Address(Aws::Utils::Json::JsonView jsonValue); 40 Address& operator=(Aws::Utils::Json::JsonView jsonValue); 41 Aws::Utils::Json::JsonValue Jsonize() const; 42 43 44 /** 45 * <p>The unique ID for an address.</p> 46 */ GetAddressId()47 inline const Aws::String& GetAddressId() const{ return m_addressId; } 48 49 /** 50 * <p>The unique ID for an address.</p> 51 */ AddressIdHasBeenSet()52 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; } 53 54 /** 55 * <p>The unique ID for an address.</p> 56 */ SetAddressId(const Aws::String & value)57 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; } 58 59 /** 60 * <p>The unique ID for an address.</p> 61 */ SetAddressId(Aws::String && value)62 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); } 63 64 /** 65 * <p>The unique ID for an address.</p> 66 */ SetAddressId(const char * value)67 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); } 68 69 /** 70 * <p>The unique ID for an address.</p> 71 */ WithAddressId(const Aws::String & value)72 inline Address& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;} 73 74 /** 75 * <p>The unique ID for an address.</p> 76 */ WithAddressId(Aws::String && value)77 inline Address& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;} 78 79 /** 80 * <p>The unique ID for an address.</p> 81 */ WithAddressId(const char * value)82 inline Address& WithAddressId(const char* value) { SetAddressId(value); return *this;} 83 84 85 /** 86 * <p>The name of a person to receive a Snow device at an address.</p> 87 */ GetName()88 inline const Aws::String& GetName() const{ return m_name; } 89 90 /** 91 * <p>The name of a person to receive a Snow device at an address.</p> 92 */ NameHasBeenSet()93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 94 95 /** 96 * <p>The name of a person to receive a Snow device at an address.</p> 97 */ SetName(const Aws::String & value)98 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 99 100 /** 101 * <p>The name of a person to receive a Snow device at an address.</p> 102 */ SetName(Aws::String && value)103 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 104 105 /** 106 * <p>The name of a person to receive a Snow device at an address.</p> 107 */ SetName(const char * value)108 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 109 110 /** 111 * <p>The name of a person to receive a Snow device at an address.</p> 112 */ WithName(const Aws::String & value)113 inline Address& WithName(const Aws::String& value) { SetName(value); return *this;} 114 115 /** 116 * <p>The name of a person to receive a Snow device at an address.</p> 117 */ WithName(Aws::String && value)118 inline Address& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 119 120 /** 121 * <p>The name of a person to receive a Snow device at an address.</p> 122 */ WithName(const char * value)123 inline Address& WithName(const char* value) { SetName(value); return *this;} 124 125 126 /** 127 * <p>The name of the company to receive a Snow device at an address.</p> 128 */ GetCompany()129 inline const Aws::String& GetCompany() const{ return m_company; } 130 131 /** 132 * <p>The name of the company to receive a Snow device at an address.</p> 133 */ CompanyHasBeenSet()134 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; } 135 136 /** 137 * <p>The name of the company to receive a Snow device at an address.</p> 138 */ SetCompany(const Aws::String & value)139 inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; } 140 141 /** 142 * <p>The name of the company to receive a Snow device at an address.</p> 143 */ SetCompany(Aws::String && value)144 inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); } 145 146 /** 147 * <p>The name of the company to receive a Snow device at an address.</p> 148 */ SetCompany(const char * value)149 inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); } 150 151 /** 152 * <p>The name of the company to receive a Snow device at an address.</p> 153 */ WithCompany(const Aws::String & value)154 inline Address& WithCompany(const Aws::String& value) { SetCompany(value); return *this;} 155 156 /** 157 * <p>The name of the company to receive a Snow device at an address.</p> 158 */ WithCompany(Aws::String && value)159 inline Address& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;} 160 161 /** 162 * <p>The name of the company to receive a Snow device at an address.</p> 163 */ WithCompany(const char * value)164 inline Address& WithCompany(const char* value) { SetCompany(value); return *this;} 165 166 167 /** 168 * <p>The first line in a street address that a Snow device is to be delivered 169 * to.</p> 170 */ GetStreet1()171 inline const Aws::String& GetStreet1() const{ return m_street1; } 172 173 /** 174 * <p>The first line in a street address that a Snow device is to be delivered 175 * to.</p> 176 */ Street1HasBeenSet()177 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; } 178 179 /** 180 * <p>The first line in a street address that a Snow device is to be delivered 181 * to.</p> 182 */ SetStreet1(const Aws::String & value)183 inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; } 184 185 /** 186 * <p>The first line in a street address that a Snow device is to be delivered 187 * to.</p> 188 */ SetStreet1(Aws::String && value)189 inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = std::move(value); } 190 191 /** 192 * <p>The first line in a street address that a Snow device is to be delivered 193 * to.</p> 194 */ SetStreet1(const char * value)195 inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); } 196 197 /** 198 * <p>The first line in a street address that a Snow device is to be delivered 199 * to.</p> 200 */ WithStreet1(const Aws::String & value)201 inline Address& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;} 202 203 /** 204 * <p>The first line in a street address that a Snow device is to be delivered 205 * to.</p> 206 */ WithStreet1(Aws::String && value)207 inline Address& WithStreet1(Aws::String&& value) { SetStreet1(std::move(value)); return *this;} 208 209 /** 210 * <p>The first line in a street address that a Snow device is to be delivered 211 * to.</p> 212 */ WithStreet1(const char * value)213 inline Address& WithStreet1(const char* value) { SetStreet1(value); return *this;} 214 215 216 /** 217 * <p>The second line in a street address that a Snow device is to be delivered 218 * to.</p> 219 */ GetStreet2()220 inline const Aws::String& GetStreet2() const{ return m_street2; } 221 222 /** 223 * <p>The second line in a street address that a Snow device is to be delivered 224 * to.</p> 225 */ Street2HasBeenSet()226 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; } 227 228 /** 229 * <p>The second line in a street address that a Snow device is to be delivered 230 * to.</p> 231 */ SetStreet2(const Aws::String & value)232 inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; } 233 234 /** 235 * <p>The second line in a street address that a Snow device is to be delivered 236 * to.</p> 237 */ SetStreet2(Aws::String && value)238 inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = std::move(value); } 239 240 /** 241 * <p>The second line in a street address that a Snow device is to be delivered 242 * to.</p> 243 */ SetStreet2(const char * value)244 inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); } 245 246 /** 247 * <p>The second line in a street address that a Snow device is to be delivered 248 * to.</p> 249 */ WithStreet2(const Aws::String & value)250 inline Address& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;} 251 252 /** 253 * <p>The second line in a street address that a Snow device is to be delivered 254 * to.</p> 255 */ WithStreet2(Aws::String && value)256 inline Address& WithStreet2(Aws::String&& value) { SetStreet2(std::move(value)); return *this;} 257 258 /** 259 * <p>The second line in a street address that a Snow device is to be delivered 260 * to.</p> 261 */ WithStreet2(const char * value)262 inline Address& WithStreet2(const char* value) { SetStreet2(value); return *this;} 263 264 265 /** 266 * <p>The third line in a street address that a Snow device is to be delivered 267 * to.</p> 268 */ GetStreet3()269 inline const Aws::String& GetStreet3() const{ return m_street3; } 270 271 /** 272 * <p>The third line in a street address that a Snow device is to be delivered 273 * to.</p> 274 */ Street3HasBeenSet()275 inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; } 276 277 /** 278 * <p>The third line in a street address that a Snow device is to be delivered 279 * to.</p> 280 */ SetStreet3(const Aws::String & value)281 inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; } 282 283 /** 284 * <p>The third line in a street address that a Snow device is to be delivered 285 * to.</p> 286 */ SetStreet3(Aws::String && value)287 inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = std::move(value); } 288 289 /** 290 * <p>The third line in a street address that a Snow device is to be delivered 291 * to.</p> 292 */ SetStreet3(const char * value)293 inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); } 294 295 /** 296 * <p>The third line in a street address that a Snow device is to be delivered 297 * to.</p> 298 */ WithStreet3(const Aws::String & value)299 inline Address& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;} 300 301 /** 302 * <p>The third line in a street address that a Snow device is to be delivered 303 * to.</p> 304 */ WithStreet3(Aws::String && value)305 inline Address& WithStreet3(Aws::String&& value) { SetStreet3(std::move(value)); return *this;} 306 307 /** 308 * <p>The third line in a street address that a Snow device is to be delivered 309 * to.</p> 310 */ WithStreet3(const char * value)311 inline Address& WithStreet3(const char* value) { SetStreet3(value); return *this;} 312 313 314 /** 315 * <p>The city in an address that a Snow device is to be delivered to.</p> 316 */ GetCity()317 inline const Aws::String& GetCity() const{ return m_city; } 318 319 /** 320 * <p>The city in an address that a Snow device is to be delivered to.</p> 321 */ CityHasBeenSet()322 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } 323 324 /** 325 * <p>The city in an address that a Snow device is to be delivered to.</p> 326 */ SetCity(const Aws::String & value)327 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; } 328 329 /** 330 * <p>The city in an address that a Snow device is to be delivered to.</p> 331 */ SetCity(Aws::String && value)332 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } 333 334 /** 335 * <p>The city in an address that a Snow device is to be delivered to.</p> 336 */ SetCity(const char * value)337 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); } 338 339 /** 340 * <p>The city in an address that a Snow device is to be delivered to.</p> 341 */ WithCity(const Aws::String & value)342 inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;} 343 344 /** 345 * <p>The city in an address that a Snow device is to be delivered to.</p> 346 */ WithCity(Aws::String && value)347 inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;} 348 349 /** 350 * <p>The city in an address that a Snow device is to be delivered to.</p> 351 */ WithCity(const char * value)352 inline Address& WithCity(const char* value) { SetCity(value); return *this;} 353 354 355 /** 356 * <p>The state or province in an address that a Snow device is to be delivered 357 * to.</p> 358 */ GetStateOrProvince()359 inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; } 360 361 /** 362 * <p>The state or province in an address that a Snow device is to be delivered 363 * to.</p> 364 */ StateOrProvinceHasBeenSet()365 inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; } 366 367 /** 368 * <p>The state or province in an address that a Snow device is to be delivered 369 * to.</p> 370 */ SetStateOrProvince(const Aws::String & value)371 inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; } 372 373 /** 374 * <p>The state or province in an address that a Snow device is to be delivered 375 * to.</p> 376 */ SetStateOrProvince(Aws::String && value)377 inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = std::move(value); } 378 379 /** 380 * <p>The state or province in an address that a Snow device is to be delivered 381 * to.</p> 382 */ SetStateOrProvince(const char * value)383 inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); } 384 385 /** 386 * <p>The state or province in an address that a Snow device is to be delivered 387 * to.</p> 388 */ WithStateOrProvince(const Aws::String & value)389 inline Address& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;} 390 391 /** 392 * <p>The state or province in an address that a Snow device is to be delivered 393 * to.</p> 394 */ WithStateOrProvince(Aws::String && value)395 inline Address& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(std::move(value)); return *this;} 396 397 /** 398 * <p>The state or province in an address that a Snow device is to be delivered 399 * to.</p> 400 */ WithStateOrProvince(const char * value)401 inline Address& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;} 402 403 404 /** 405 * <p>This field is no longer used and the value is ignored.</p> 406 */ GetPrefectureOrDistrict()407 inline const Aws::String& GetPrefectureOrDistrict() const{ return m_prefectureOrDistrict; } 408 409 /** 410 * <p>This field is no longer used and the value is ignored.</p> 411 */ PrefectureOrDistrictHasBeenSet()412 inline bool PrefectureOrDistrictHasBeenSet() const { return m_prefectureOrDistrictHasBeenSet; } 413 414 /** 415 * <p>This field is no longer used and the value is ignored.</p> 416 */ SetPrefectureOrDistrict(const Aws::String & value)417 inline void SetPrefectureOrDistrict(const Aws::String& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = value; } 418 419 /** 420 * <p>This field is no longer used and the value is ignored.</p> 421 */ SetPrefectureOrDistrict(Aws::String && value)422 inline void SetPrefectureOrDistrict(Aws::String&& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = std::move(value); } 423 424 /** 425 * <p>This field is no longer used and the value is ignored.</p> 426 */ SetPrefectureOrDistrict(const char * value)427 inline void SetPrefectureOrDistrict(const char* value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict.assign(value); } 428 429 /** 430 * <p>This field is no longer used and the value is ignored.</p> 431 */ WithPrefectureOrDistrict(const Aws::String & value)432 inline Address& WithPrefectureOrDistrict(const Aws::String& value) { SetPrefectureOrDistrict(value); return *this;} 433 434 /** 435 * <p>This field is no longer used and the value is ignored.</p> 436 */ WithPrefectureOrDistrict(Aws::String && value)437 inline Address& WithPrefectureOrDistrict(Aws::String&& value) { SetPrefectureOrDistrict(std::move(value)); return *this;} 438 439 /** 440 * <p>This field is no longer used and the value is ignored.</p> 441 */ WithPrefectureOrDistrict(const char * value)442 inline Address& WithPrefectureOrDistrict(const char* value) { SetPrefectureOrDistrict(value); return *this;} 443 444 445 /** 446 * <p>This field is no longer used and the value is ignored.</p> 447 */ GetLandmark()448 inline const Aws::String& GetLandmark() const{ return m_landmark; } 449 450 /** 451 * <p>This field is no longer used and the value is ignored.</p> 452 */ LandmarkHasBeenSet()453 inline bool LandmarkHasBeenSet() const { return m_landmarkHasBeenSet; } 454 455 /** 456 * <p>This field is no longer used and the value is ignored.</p> 457 */ SetLandmark(const Aws::String & value)458 inline void SetLandmark(const Aws::String& value) { m_landmarkHasBeenSet = true; m_landmark = value; } 459 460 /** 461 * <p>This field is no longer used and the value is ignored.</p> 462 */ SetLandmark(Aws::String && value)463 inline void SetLandmark(Aws::String&& value) { m_landmarkHasBeenSet = true; m_landmark = std::move(value); } 464 465 /** 466 * <p>This field is no longer used and the value is ignored.</p> 467 */ SetLandmark(const char * value)468 inline void SetLandmark(const char* value) { m_landmarkHasBeenSet = true; m_landmark.assign(value); } 469 470 /** 471 * <p>This field is no longer used and the value is ignored.</p> 472 */ WithLandmark(const Aws::String & value)473 inline Address& WithLandmark(const Aws::String& value) { SetLandmark(value); return *this;} 474 475 /** 476 * <p>This field is no longer used and the value is ignored.</p> 477 */ WithLandmark(Aws::String && value)478 inline Address& WithLandmark(Aws::String&& value) { SetLandmark(std::move(value)); return *this;} 479 480 /** 481 * <p>This field is no longer used and the value is ignored.</p> 482 */ WithLandmark(const char * value)483 inline Address& WithLandmark(const char* value) { SetLandmark(value); return *this;} 484 485 486 /** 487 * <p>The country in an address that a Snow device is to be delivered to.</p> 488 */ GetCountry()489 inline const Aws::String& GetCountry() const{ return m_country; } 490 491 /** 492 * <p>The country in an address that a Snow device is to be delivered to.</p> 493 */ CountryHasBeenSet()494 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } 495 496 /** 497 * <p>The country in an address that a Snow device is to be delivered to.</p> 498 */ SetCountry(const Aws::String & value)499 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } 500 501 /** 502 * <p>The country in an address that a Snow device is to be delivered to.</p> 503 */ SetCountry(Aws::String && value)504 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } 505 506 /** 507 * <p>The country in an address that a Snow device is to be delivered to.</p> 508 */ SetCountry(const char * value)509 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } 510 511 /** 512 * <p>The country in an address that a Snow device is to be delivered to.</p> 513 */ WithCountry(const Aws::String & value)514 inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} 515 516 /** 517 * <p>The country in an address that a Snow device is to be delivered to.</p> 518 */ WithCountry(Aws::String && value)519 inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} 520 521 /** 522 * <p>The country in an address that a Snow device is to be delivered to.</p> 523 */ WithCountry(const char * value)524 inline Address& WithCountry(const char* value) { SetCountry(value); return *this;} 525 526 527 /** 528 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 529 */ GetPostalCode()530 inline const Aws::String& GetPostalCode() const{ return m_postalCode; } 531 532 /** 533 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 534 */ PostalCodeHasBeenSet()535 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; } 536 537 /** 538 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 539 */ SetPostalCode(const Aws::String & value)540 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; } 541 542 /** 543 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 544 */ SetPostalCode(Aws::String && value)545 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); } 546 547 /** 548 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 549 */ SetPostalCode(const char * value)550 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); } 551 552 /** 553 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 554 */ WithPostalCode(const Aws::String & value)555 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;} 556 557 /** 558 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 559 */ WithPostalCode(Aws::String && value)560 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;} 561 562 /** 563 * <p>The postal code in an address that a Snow device is to be delivered to.</p> 564 */ WithPostalCode(const char * value)565 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;} 566 567 568 /** 569 * <p>The phone number associated with an address that a Snow device is to be 570 * delivered to.</p> 571 */ GetPhoneNumber()572 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; } 573 574 /** 575 * <p>The phone number associated with an address that a Snow device is to be 576 * delivered to.</p> 577 */ PhoneNumberHasBeenSet()578 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; } 579 580 /** 581 * <p>The phone number associated with an address that a Snow device is to be 582 * delivered to.</p> 583 */ SetPhoneNumber(const Aws::String & value)584 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; } 585 586 /** 587 * <p>The phone number associated with an address that a Snow device is to be 588 * delivered to.</p> 589 */ SetPhoneNumber(Aws::String && value)590 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); } 591 592 /** 593 * <p>The phone number associated with an address that a Snow device is to be 594 * delivered to.</p> 595 */ SetPhoneNumber(const char * value)596 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); } 597 598 /** 599 * <p>The phone number associated with an address that a Snow device is to be 600 * delivered to.</p> 601 */ WithPhoneNumber(const Aws::String & value)602 inline Address& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;} 603 604 /** 605 * <p>The phone number associated with an address that a Snow device is to be 606 * delivered to.</p> 607 */ WithPhoneNumber(Aws::String && value)608 inline Address& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;} 609 610 /** 611 * <p>The phone number associated with an address that a Snow device is to be 612 * delivered to.</p> 613 */ WithPhoneNumber(const char * value)614 inline Address& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;} 615 616 617 /** 618 * <p>If the address you are creating is a primary address, then set this option to 619 * true. This field is not supported in most regions.</p> 620 */ GetIsRestricted()621 inline bool GetIsRestricted() const{ return m_isRestricted; } 622 623 /** 624 * <p>If the address you are creating is a primary address, then set this option to 625 * true. This field is not supported in most regions.</p> 626 */ IsRestrictedHasBeenSet()627 inline bool IsRestrictedHasBeenSet() const { return m_isRestrictedHasBeenSet; } 628 629 /** 630 * <p>If the address you are creating is a primary address, then set this option to 631 * true. This field is not supported in most regions.</p> 632 */ SetIsRestricted(bool value)633 inline void SetIsRestricted(bool value) { m_isRestrictedHasBeenSet = true; m_isRestricted = value; } 634 635 /** 636 * <p>If the address you are creating is a primary address, then set this option to 637 * true. This field is not supported in most regions.</p> 638 */ WithIsRestricted(bool value)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 689