AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Outposts {
20namespace Model {
21
27class Address {
28 public:
29 AWS_OUTPOSTS_API Address() = default;
30 AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue);
31 AWS_OUTPOSTS_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetContactName() const { return m_contactName; }
39 inline bool ContactNameHasBeenSet() const { return m_contactNameHasBeenSet; }
40 template <typename ContactNameT = Aws::String>
41 void SetContactName(ContactNameT&& value) {
42 m_contactNameHasBeenSet = true;
43 m_contactName = std::forward<ContactNameT>(value);
44 }
45 template <typename ContactNameT = Aws::String>
46 Address& WithContactName(ContactNameT&& value) {
47 SetContactName(std::forward<ContactNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetContactPhoneNumber() const { return m_contactPhoneNumber; }
57 inline bool ContactPhoneNumberHasBeenSet() const { return m_contactPhoneNumberHasBeenSet; }
58 template <typename ContactPhoneNumberT = Aws::String>
59 void SetContactPhoneNumber(ContactPhoneNumberT&& value) {
60 m_contactPhoneNumberHasBeenSet = true;
61 m_contactPhoneNumber = std::forward<ContactPhoneNumberT>(value);
62 }
63 template <typename ContactPhoneNumberT = Aws::String>
64 Address& WithContactPhoneNumber(ContactPhoneNumberT&& value) {
65 SetContactPhoneNumber(std::forward<ContactPhoneNumberT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
75 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
76 template <typename AddressLine1T = Aws::String>
77 void SetAddressLine1(AddressLine1T&& value) {
78 m_addressLine1HasBeenSet = true;
79 m_addressLine1 = std::forward<AddressLine1T>(value);
80 }
81 template <typename AddressLine1T = Aws::String>
82 Address& WithAddressLine1(AddressLine1T&& value) {
83 SetAddressLine1(std::forward<AddressLine1T>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
93 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
94 template <typename AddressLine2T = Aws::String>
95 void SetAddressLine2(AddressLine2T&& value) {
96 m_addressLine2HasBeenSet = true;
97 m_addressLine2 = std::forward<AddressLine2T>(value);
98 }
99 template <typename AddressLine2T = Aws::String>
100 Address& WithAddressLine2(AddressLine2T&& value) {
101 SetAddressLine2(std::forward<AddressLine2T>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
111 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
112 template <typename AddressLine3T = Aws::String>
113 void SetAddressLine3(AddressLine3T&& value) {
114 m_addressLine3HasBeenSet = true;
115 m_addressLine3 = std::forward<AddressLine3T>(value);
116 }
117 template <typename AddressLine3T = Aws::String>
118 Address& WithAddressLine3(AddressLine3T&& value) {
119 SetAddressLine3(std::forward<AddressLine3T>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetCity() const { return m_city; }
129 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
130 template <typename CityT = Aws::String>
131 void SetCity(CityT&& value) {
132 m_cityHasBeenSet = true;
133 m_city = std::forward<CityT>(value);
134 }
135 template <typename CityT = Aws::String>
136 Address& WithCity(CityT&& value) {
137 SetCity(std::forward<CityT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
147 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
148 template <typename StateOrRegionT = Aws::String>
149 void SetStateOrRegion(StateOrRegionT&& value) {
150 m_stateOrRegionHasBeenSet = true;
151 m_stateOrRegion = std::forward<StateOrRegionT>(value);
152 }
153 template <typename StateOrRegionT = Aws::String>
154 Address& WithStateOrRegion(StateOrRegionT&& value) {
155 SetStateOrRegion(std::forward<StateOrRegionT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
165 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
166 template <typename DistrictOrCountyT = Aws::String>
167 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
168 m_districtOrCountyHasBeenSet = true;
169 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
170 }
171 template <typename DistrictOrCountyT = Aws::String>
172 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) {
173 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
183 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
184 template <typename PostalCodeT = Aws::String>
185 void SetPostalCode(PostalCodeT&& value) {
186 m_postalCodeHasBeenSet = true;
187 m_postalCode = std::forward<PostalCodeT>(value);
188 }
189 template <typename PostalCodeT = Aws::String>
190 Address& WithPostalCode(PostalCodeT&& value) {
191 SetPostalCode(std::forward<PostalCodeT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
201 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
202 template <typename CountryCodeT = Aws::String>
203 void SetCountryCode(CountryCodeT&& value) {
204 m_countryCodeHasBeenSet = true;
205 m_countryCode = std::forward<CountryCodeT>(value);
206 }
207 template <typename CountryCodeT = Aws::String>
208 Address& WithCountryCode(CountryCodeT&& value) {
209 SetCountryCode(std::forward<CountryCodeT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetMunicipality() const { return m_municipality; }
219 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
220 template <typename MunicipalityT = Aws::String>
221 void SetMunicipality(MunicipalityT&& value) {
222 m_municipalityHasBeenSet = true;
223 m_municipality = std::forward<MunicipalityT>(value);
224 }
225 template <typename MunicipalityT = Aws::String>
226 Address& WithMunicipality(MunicipalityT&& value) {
227 SetMunicipality(std::forward<MunicipalityT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_contactName;
233
234 Aws::String m_contactPhoneNumber;
235
236 Aws::String m_addressLine1;
237
238 Aws::String m_addressLine2;
239
240 Aws::String m_addressLine3;
241
242 Aws::String m_city;
243
244 Aws::String m_stateOrRegion;
245
246 Aws::String m_districtOrCounty;
247
248 Aws::String m_postalCode;
249
250 Aws::String m_countryCode;
251
252 Aws::String m_municipality;
253 bool m_contactNameHasBeenSet = false;
254 bool m_contactPhoneNumberHasBeenSet = false;
255 bool m_addressLine1HasBeenSet = false;
256 bool m_addressLine2HasBeenSet = false;
257 bool m_addressLine3HasBeenSet = false;
258 bool m_cityHasBeenSet = false;
259 bool m_stateOrRegionHasBeenSet = false;
260 bool m_districtOrCountyHasBeenSet = false;
261 bool m_postalCodeHasBeenSet = false;
262 bool m_countryCodeHasBeenSet = false;
263 bool m_municipalityHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace Outposts
268} // namespace Aws
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:172
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:208
void SetContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:59
void SetAddressLine2(AddressLine2T &&value)
Definition Address.h:95
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:113
Address & WithAddressLine2(AddressLine2T &&value)
Definition Address.h:100
Address & WithMunicipality(MunicipalityT &&value)
Definition Address.h:226
const Aws::String & GetMunicipality() const
Definition Address.h:218
Address & WithCity(CityT &&value)
Definition Address.h:136
bool ContactNameHasBeenSet() const
Definition Address.h:39
void SetCity(CityT &&value)
Definition Address.h:131
bool CountryCodeHasBeenSet() const
Definition Address.h:201
const Aws::String & GetStateOrRegion() const
Definition Address.h:146
const Aws::String & GetContactName() const
Definition Address.h:38
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:149
AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine1() const
Definition Address.h:74
bool AddressLine1HasBeenSet() const
Definition Address.h:75
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:82
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:165
void SetMunicipality(MunicipalityT &&value)
Definition Address.h:221
const Aws::String & GetAddressLine3() const
Definition Address.h:110
Address & WithContactName(ContactNameT &&value)
Definition Address.h:46
bool PostalCodeHasBeenSet() const
Definition Address.h:183
bool ContactPhoneNumberHasBeenSet() const
Definition Address.h:57
const Aws::String & GetCity() const
Definition Address.h:128
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:118
bool StateOrRegionHasBeenSet() const
Definition Address.h:147
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:190
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:167
bool AddressLine3HasBeenSet() const
Definition Address.h:111
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:185
const Aws::String & GetCountryCode() const
Definition Address.h:200
const Aws::String & GetAddressLine2() const
Definition Address.h:92
bool MunicipalityHasBeenSet() const
Definition Address.h:219
AWS_OUTPOSTS_API Address()=default
Address & WithContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:64
bool AddressLine2HasBeenSet() const
Definition Address.h:93
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:77
AWS_OUTPOSTS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContactName(ContactNameT &&value)
Definition Address.h:41
const Aws::String & GetPostalCode() const
Definition Address.h:182
const Aws::String & GetDistrictOrCounty() const
Definition Address.h:164
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:154
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:203
const Aws::String & GetContactPhoneNumber() const
Definition Address.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue