AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/model/AddressType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Snowball
23{
24namespace Model
25{
26
36 class Address
37 {
38 public:
39 AWS_SNOWBALL_API Address();
40 AWS_SNOWBALL_API Address(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SNOWBALL_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAddressId() const{ return m_addressId; }
50 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
51 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
52 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
53 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
54 inline Address& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
55 inline Address& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
56 inline Address& WithAddressId(const char* value) { SetAddressId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Address& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Address& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Address& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetCompany() const{ return m_company; }
78 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
79 inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
80 inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); }
81 inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
82 inline Address& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
83 inline Address& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;}
84 inline Address& WithCompany(const char* value) { SetCompany(value); return *this;}
86
88
92 inline const Aws::String& GetStreet1() const{ return m_street1; }
93 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; }
94 inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; }
95 inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = std::move(value); }
96 inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); }
97 inline Address& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;}
98 inline Address& WithStreet1(Aws::String&& value) { SetStreet1(std::move(value)); return *this;}
99 inline Address& WithStreet1(const char* value) { SetStreet1(value); return *this;}
101
103
107 inline const Aws::String& GetStreet2() const{ return m_street2; }
108 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; }
109 inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; }
110 inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = std::move(value); }
111 inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); }
112 inline Address& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;}
113 inline Address& WithStreet2(Aws::String&& value) { SetStreet2(std::move(value)); return *this;}
114 inline Address& WithStreet2(const char* value) { SetStreet2(value); return *this;}
116
118
122 inline const Aws::String& GetStreet3() const{ return m_street3; }
123 inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; }
124 inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; }
125 inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = std::move(value); }
126 inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); }
127 inline Address& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;}
128 inline Address& WithStreet3(Aws::String&& value) { SetStreet3(std::move(value)); return *this;}
129 inline Address& WithStreet3(const char* value) { SetStreet3(value); return *this;}
131
133
136 inline const Aws::String& GetCity() const{ return m_city; }
137 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
138 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
139 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
140 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
141 inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
142 inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
143 inline Address& WithCity(const char* value) { SetCity(value); return *this;}
145
147
151 inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; }
152 inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; }
153 inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
154 inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = std::move(value); }
155 inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); }
156 inline Address& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;}
157 inline Address& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(std::move(value)); return *this;}
158 inline Address& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;}
160
162
165 inline const Aws::String& GetPrefectureOrDistrict() const{ return m_prefectureOrDistrict; }
166 inline bool PrefectureOrDistrictHasBeenSet() const { return m_prefectureOrDistrictHasBeenSet; }
167 inline void SetPrefectureOrDistrict(const Aws::String& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = value; }
168 inline void SetPrefectureOrDistrict(Aws::String&& value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict = std::move(value); }
169 inline void SetPrefectureOrDistrict(const char* value) { m_prefectureOrDistrictHasBeenSet = true; m_prefectureOrDistrict.assign(value); }
170 inline Address& WithPrefectureOrDistrict(const Aws::String& value) { SetPrefectureOrDistrict(value); return *this;}
171 inline Address& WithPrefectureOrDistrict(Aws::String&& value) { SetPrefectureOrDistrict(std::move(value)); return *this;}
172 inline Address& WithPrefectureOrDistrict(const char* value) { SetPrefectureOrDistrict(value); return *this;}
174
176
179 inline const Aws::String& GetLandmark() const{ return m_landmark; }
180 inline bool LandmarkHasBeenSet() const { return m_landmarkHasBeenSet; }
181 inline void SetLandmark(const Aws::String& value) { m_landmarkHasBeenSet = true; m_landmark = value; }
182 inline void SetLandmark(Aws::String&& value) { m_landmarkHasBeenSet = true; m_landmark = std::move(value); }
183 inline void SetLandmark(const char* value) { m_landmarkHasBeenSet = true; m_landmark.assign(value); }
184 inline Address& WithLandmark(const Aws::String& value) { SetLandmark(value); return *this;}
185 inline Address& WithLandmark(Aws::String&& value) { SetLandmark(std::move(value)); return *this;}
186 inline Address& WithLandmark(const char* value) { SetLandmark(value); return *this;}
188
190
193 inline const Aws::String& GetCountry() const{ return m_country; }
194 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
195 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
196 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
197 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
198 inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
199 inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
200 inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
202
204
207 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
208 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
209 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
210 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
211 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
212 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
213 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
214 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
216
218
222 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
223 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
224 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
225 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
226 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
227 inline Address& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
228 inline Address& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
229 inline Address& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
231
233
237 inline bool GetIsRestricted() const{ return m_isRestricted; }
238 inline bool IsRestrictedHasBeenSet() const { return m_isRestrictedHasBeenSet; }
239 inline void SetIsRestricted(bool value) { m_isRestrictedHasBeenSet = true; m_isRestricted = value; }
240 inline Address& WithIsRestricted(bool value) { SetIsRestricted(value); return *this;}
242
244
248 inline const AddressType& GetType() const{ return m_type; }
249 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
250 inline void SetType(const AddressType& value) { m_typeHasBeenSet = true; m_type = value; }
251 inline void SetType(AddressType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
252 inline Address& WithType(const AddressType& value) { SetType(value); return *this;}
253 inline Address& WithType(AddressType&& value) { SetType(std::move(value)); return *this;}
255 private:
256
257 Aws::String m_addressId;
258 bool m_addressIdHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 Aws::String m_company;
264 bool m_companyHasBeenSet = false;
265
266 Aws::String m_street1;
267 bool m_street1HasBeenSet = false;
268
269 Aws::String m_street2;
270 bool m_street2HasBeenSet = false;
271
272 Aws::String m_street3;
273 bool m_street3HasBeenSet = false;
274
275 Aws::String m_city;
276 bool m_cityHasBeenSet = false;
277
278 Aws::String m_stateOrProvince;
279 bool m_stateOrProvinceHasBeenSet = false;
280
281 Aws::String m_prefectureOrDistrict;
282 bool m_prefectureOrDistrictHasBeenSet = false;
283
284 Aws::String m_landmark;
285 bool m_landmarkHasBeenSet = false;
286
287 Aws::String m_country;
288 bool m_countryHasBeenSet = false;
289
290 Aws::String m_postalCode;
291 bool m_postalCodeHasBeenSet = false;
292
293 Aws::String m_phoneNumber;
294 bool m_phoneNumberHasBeenSet = false;
295
296 bool m_isRestricted;
297 bool m_isRestrictedHasBeenSet = false;
298
299 AddressType m_type;
300 bool m_typeHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace Snowball
305} // namespace Aws
Address & WithPrefectureOrDistrict(Aws::String &&value)
Definition Address.h:171
void SetStreet2(Aws::String &&value)
Definition Address.h:110
void SetCity(Aws::String &&value)
Definition Address.h:139
const Aws::String & GetLandmark() const
Definition Address.h:179
const Aws::String & GetAddressId() const
Definition Address.h:49
void SetStreet2(const char *value)
Definition Address.h:111
void SetPrefectureOrDistrict(Aws::String &&value)
Definition Address.h:168
bool StateOrProvinceHasBeenSet() const
Definition Address.h:152
Address & WithLandmark(const char *value)
Definition Address.h:186
void SetCity(const Aws::String &value)
Definition Address.h:138
Address & WithStreet2(const Aws::String &value)
Definition Address.h:112
void SetStateOrProvince(const char *value)
Definition Address.h:155
Address & WithAddressId(Aws::String &&value)
Definition Address.h:55
AWS_SNOWBALL_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCity(const char *value)
Definition Address.h:140
Address & WithStreet3(const char *value)
Definition Address.h:129
void SetPostalCode(Aws::String &&value)
Definition Address.h:210
Address & WithStreet2(const char *value)
Definition Address.h:114
void SetCountry(Aws::String &&value)
Definition Address.h:196
void SetStreet2(const Aws::String &value)
Definition Address.h:109
void SetAddressId(const Aws::String &value)
Definition Address.h:51
bool AddressIdHasBeenSet() const
Definition Address.h:50
const Aws::String & GetStreet2() const
Definition Address.h:107
Address & WithType(const AddressType &value)
Definition Address.h:252
void SetCompany(const char *value)
Definition Address.h:81
Address & WithStreet1(Aws::String &&value)
Definition Address.h:98
Address & WithStreet2(Aws::String &&value)
Definition Address.h:113
const Aws::String & GetCity() const
Definition Address.h:136
void SetName(Aws::String &&value)
Definition Address.h:66
void SetCompany(Aws::String &&value)
Definition Address.h:80
Address & WithStreet3(Aws::String &&value)
Definition Address.h:128
Address & WithStreet3(const Aws::String &value)
Definition Address.h:127
const Aws::String & GetPhoneNumber() const
Definition Address.h:222
void SetPostalCode(const Aws::String &value)
Definition Address.h:209
bool Street3HasBeenSet() const
Definition Address.h:123
const AddressType & GetType() const
Definition Address.h:248
Address & WithName(const char *value)
Definition Address.h:70
Address & WithCity(Aws::String &&value)
Definition Address.h:142
void SetType(AddressType &&value)
Definition Address.h:251
Address & WithCountry(const char *value)
Definition Address.h:200
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrefectureOrDistrict(const char *value)
Definition Address.h:169
void SetLandmark(const Aws::String &value)
Definition Address.h:181
const Aws::String & GetCountry() const
Definition Address.h:193
Address & WithType(AddressType &&value)
Definition Address.h:253
const Aws::String & GetPrefectureOrDistrict() const
Definition Address.h:165
void SetIsRestricted(bool value)
Definition Address.h:239
void SetPrefectureOrDistrict(const Aws::String &value)
Definition Address.h:167
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:212
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:213
Address & WithIsRestricted(bool value)
Definition Address.h:240
Address & WithCompany(const char *value)
Definition Address.h:84
Address & WithStreet1(const Aws::String &value)
Definition Address.h:97
bool IsRestrictedHasBeenSet() const
Definition Address.h:238
Address & WithCountry(const Aws::String &value)
Definition Address.h:198
void SetStreet3(const char *value)
Definition Address.h:126
AWS_SNOWBALL_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetStateOrProvince(Aws::String &&value)
Definition Address.h:154
void SetStreet1(const char *value)
Definition Address.h:96
Address & WithPostalCode(const char *value)
Definition Address.h:214
bool CountryHasBeenSet() const
Definition Address.h:194
bool CompanyHasBeenSet() const
Definition Address.h:78
const Aws::String & GetStateOrProvince() const
Definition Address.h:151
bool PrefectureOrDistrictHasBeenSet() const
Definition Address.h:166
Address & WithPhoneNumber(Aws::String &&value)
Definition Address.h:228
const Aws::String & GetPostalCode() const
Definition Address.h:207
void SetCountry(const Aws::String &value)
Definition Address.h:195
Address & WithLandmark(Aws::String &&value)
Definition Address.h:185
void SetLandmark(const char *value)
Definition Address.h:183
const Aws::String & GetName() const
Definition Address.h:63
Address & WithLandmark(const Aws::String &value)
Definition Address.h:184
Address & WithCountry(Aws::String &&value)
Definition Address.h:199
Address & WithStateOrProvince(const Aws::String &value)
Definition Address.h:156
void SetStreet3(const Aws::String &value)
Definition Address.h:124
const Aws::String & GetCompany() const
Definition Address.h:77
bool LandmarkHasBeenSet() const
Definition Address.h:180
void SetPhoneNumber(const Aws::String &value)
Definition Address.h:224
void SetStateOrProvince(const Aws::String &value)
Definition Address.h:153
Address & WithStreet1(const char *value)
Definition Address.h:99
Address & WithCompany(Aws::String &&value)
Definition Address.h:83
bool PostalCodeHasBeenSet() const
Definition Address.h:208
void SetStreet3(Aws::String &&value)
Definition Address.h:125
bool PhoneNumberHasBeenSet() const
Definition Address.h:223
void SetPostalCode(const char *value)
Definition Address.h:211
Address & WithName(const Aws::String &value)
Definition Address.h:68
Address & WithStateOrProvince(const char *value)
Definition Address.h:158
const Aws::String & GetStreet3() const
Definition Address.h:122
Address & WithAddressId(const Aws::String &value)
Definition Address.h:54
Address & WithAddressId(const char *value)
Definition Address.h:56
bool Street1HasBeenSet() const
Definition Address.h:93
bool NameHasBeenSet() const
Definition Address.h:64
Address & WithStateOrProvince(Aws::String &&value)
Definition Address.h:157
void SetStreet1(Aws::String &&value)
Definition Address.h:95
void SetCompany(const Aws::String &value)
Definition Address.h:79
void SetStreet1(const Aws::String &value)
Definition Address.h:94
Address & WithPhoneNumber(const Aws::String &value)
Definition Address.h:227
const Aws::String & GetStreet1() const
Definition Address.h:92
Address & WithPrefectureOrDistrict(const char *value)
Definition Address.h:172
void SetCountry(const char *value)
Definition Address.h:197
void SetAddressId(const char *value)
Definition Address.h:53
void SetLandmark(Aws::String &&value)
Definition Address.h:182
AWS_SNOWBALL_API Address()
void SetName(const char *value)
Definition Address.h:67
void SetPhoneNumber(Aws::String &&value)
Definition Address.h:225
Address & WithCity(const char *value)
Definition Address.h:143
void SetName(const Aws::String &value)
Definition Address.h:65
Address & WithCity(const Aws::String &value)
Definition Address.h:141
void SetPhoneNumber(const char *value)
Definition Address.h:226
void SetType(const AddressType &value)
Definition Address.h:250
Address & WithCompany(const Aws::String &value)
Definition Address.h:82
Address & WithName(Aws::String &&value)
Definition Address.h:69
Address & WithPhoneNumber(const char *value)
Definition Address.h:229
Address & WithPrefectureOrDistrict(const Aws::String &value)
Definition Address.h:170
bool Street2HasBeenSet() const
Definition Address.h:108
void SetAddressId(Aws::String &&value)
Definition Address.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue