AWS SDK for C++

AWS SDK for C++ Version 1.11.839

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
57 inline const Aws::String& GetContactPhoneNumber() const { return m_contactPhoneNumber; }
58 inline bool ContactPhoneNumberHasBeenSet() const { return m_contactPhoneNumberHasBeenSet; }
59 template <typename ContactPhoneNumberT = Aws::String>
60 void SetContactPhoneNumber(ContactPhoneNumberT&& value) {
61 m_contactPhoneNumberHasBeenSet = true;
62 m_contactPhoneNumber = std::forward<ContactPhoneNumberT>(value);
63 }
64 template <typename ContactPhoneNumberT = Aws::String>
65 Address& WithContactPhoneNumber(ContactPhoneNumberT&& value) {
66 SetContactPhoneNumber(std::forward<ContactPhoneNumberT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
76 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
77 template <typename AddressLine1T = Aws::String>
78 void SetAddressLine1(AddressLine1T&& value) {
79 m_addressLine1HasBeenSet = true;
80 m_addressLine1 = std::forward<AddressLine1T>(value);
81 }
82 template <typename AddressLine1T = Aws::String>
83 Address& WithAddressLine1(AddressLine1T&& value) {
84 SetAddressLine1(std::forward<AddressLine1T>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
94 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
95 template <typename AddressLine2T = Aws::String>
96 void SetAddressLine2(AddressLine2T&& value) {
97 m_addressLine2HasBeenSet = true;
98 m_addressLine2 = std::forward<AddressLine2T>(value);
99 }
100 template <typename AddressLine2T = Aws::String>
101 Address& WithAddressLine2(AddressLine2T&& value) {
102 SetAddressLine2(std::forward<AddressLine2T>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
112 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
113 template <typename AddressLine3T = Aws::String>
114 void SetAddressLine3(AddressLine3T&& value) {
115 m_addressLine3HasBeenSet = true;
116 m_addressLine3 = std::forward<AddressLine3T>(value);
117 }
118 template <typename AddressLine3T = Aws::String>
119 Address& WithAddressLine3(AddressLine3T&& value) {
120 SetAddressLine3(std::forward<AddressLine3T>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCity() const { return m_city; }
130 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
131 template <typename CityT = Aws::String>
132 void SetCity(CityT&& value) {
133 m_cityHasBeenSet = true;
134 m_city = std::forward<CityT>(value);
135 }
136 template <typename CityT = Aws::String>
137 Address& WithCity(CityT&& value) {
138 SetCity(std::forward<CityT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
148 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
149 template <typename StateOrRegionT = Aws::String>
150 void SetStateOrRegion(StateOrRegionT&& value) {
151 m_stateOrRegionHasBeenSet = true;
152 m_stateOrRegion = std::forward<StateOrRegionT>(value);
153 }
154 template <typename StateOrRegionT = Aws::String>
155 Address& WithStateOrRegion(StateOrRegionT&& value) {
156 SetStateOrRegion(std::forward<StateOrRegionT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
166 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
167 template <typename DistrictOrCountyT = Aws::String>
168 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
169 m_districtOrCountyHasBeenSet = true;
170 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
171 }
172 template <typename DistrictOrCountyT = Aws::String>
173 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) {
174 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
184 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
185 template <typename PostalCodeT = Aws::String>
186 void SetPostalCode(PostalCodeT&& value) {
187 m_postalCodeHasBeenSet = true;
188 m_postalCode = std::forward<PostalCodeT>(value);
189 }
190 template <typename PostalCodeT = Aws::String>
191 Address& WithPostalCode(PostalCodeT&& value) {
192 SetPostalCode(std::forward<PostalCodeT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
202 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
203 template <typename CountryCodeT = Aws::String>
204 void SetCountryCode(CountryCodeT&& value) {
205 m_countryCodeHasBeenSet = true;
206 m_countryCode = std::forward<CountryCodeT>(value);
207 }
208 template <typename CountryCodeT = Aws::String>
209 Address& WithCountryCode(CountryCodeT&& value) {
210 SetCountryCode(std::forward<CountryCodeT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetMunicipality() const { return m_municipality; }
220 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
221 template <typename MunicipalityT = Aws::String>
222 void SetMunicipality(MunicipalityT&& value) {
223 m_municipalityHasBeenSet = true;
224 m_municipality = std::forward<MunicipalityT>(value);
225 }
226 template <typename MunicipalityT = Aws::String>
227 Address& WithMunicipality(MunicipalityT&& value) {
228 SetMunicipality(std::forward<MunicipalityT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_contactName;
234
235 Aws::String m_contactPhoneNumber;
236
237 Aws::String m_addressLine1;
238
239 Aws::String m_addressLine2;
240
241 Aws::String m_addressLine3;
242
243 Aws::String m_city;
244
245 Aws::String m_stateOrRegion;
246
247 Aws::String m_districtOrCounty;
248
249 Aws::String m_postalCode;
250
251 Aws::String m_countryCode;
252
253 Aws::String m_municipality;
254 bool m_contactNameHasBeenSet = false;
255 bool m_contactPhoneNumberHasBeenSet = false;
256 bool m_addressLine1HasBeenSet = false;
257 bool m_addressLine2HasBeenSet = false;
258 bool m_addressLine3HasBeenSet = false;
259 bool m_cityHasBeenSet = false;
260 bool m_stateOrRegionHasBeenSet = false;
261 bool m_districtOrCountyHasBeenSet = false;
262 bool m_postalCodeHasBeenSet = false;
263 bool m_countryCodeHasBeenSet = false;
264 bool m_municipalityHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace Outposts
269} // namespace Aws
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:173
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:209
void SetContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:60
void SetAddressLine2(AddressLine2T &&value)
Definition Address.h:96
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:114
Address & WithAddressLine2(AddressLine2T &&value)
Definition Address.h:101
Address & WithMunicipality(MunicipalityT &&value)
Definition Address.h:227
const Aws::String & GetMunicipality() const
Definition Address.h:219
Address & WithCity(CityT &&value)
Definition Address.h:137
bool ContactNameHasBeenSet() const
Definition Address.h:39
void SetCity(CityT &&value)
Definition Address.h:132
bool CountryCodeHasBeenSet() const
Definition Address.h:202
const Aws::String & GetStateOrRegion() const
Definition Address.h:147
const Aws::String & GetContactName() const
Definition Address.h:38
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:150
AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine1() const
Definition Address.h:75
bool AddressLine1HasBeenSet() const
Definition Address.h:76
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:83
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:166
void SetMunicipality(MunicipalityT &&value)
Definition Address.h:222
const Aws::String & GetAddressLine3() const
Definition Address.h:111
Address & WithContactName(ContactNameT &&value)
Definition Address.h:46
bool PostalCodeHasBeenSet() const
Definition Address.h:184
bool ContactPhoneNumberHasBeenSet() const
Definition Address.h:58
const Aws::String & GetCity() const
Definition Address.h:129
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:119
bool StateOrRegionHasBeenSet() const
Definition Address.h:148
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:191
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:168
bool AddressLine3HasBeenSet() const
Definition Address.h:112
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:186
const Aws::String & GetCountryCode() const
Definition Address.h:201
const Aws::String & GetAddressLine2() const
Definition Address.h:93
bool MunicipalityHasBeenSet() const
Definition Address.h:220
AWS_OUTPOSTS_API Address()=default
Address & WithContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:65
bool AddressLine2HasBeenSet() const
Definition Address.h:94
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:78
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:183
const Aws::String & GetDistrictOrCounty() const
Definition Address.h:165
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:155
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:204
const Aws::String & GetContactPhoneNumber() const
Definition Address.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue