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/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts
22{
23namespace Model
24{
25
31 class Address
32 {
33 public:
34 AWS_OUTPOSTS_API Address();
35 AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OUTPOSTS_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetContactName() const{ return m_contactName; }
45 inline bool ContactNameHasBeenSet() const { return m_contactNameHasBeenSet; }
46 inline void SetContactName(const Aws::String& value) { m_contactNameHasBeenSet = true; m_contactName = value; }
47 inline void SetContactName(Aws::String&& value) { m_contactNameHasBeenSet = true; m_contactName = std::move(value); }
48 inline void SetContactName(const char* value) { m_contactNameHasBeenSet = true; m_contactName.assign(value); }
49 inline Address& WithContactName(const Aws::String& value) { SetContactName(value); return *this;}
50 inline Address& WithContactName(Aws::String&& value) { SetContactName(std::move(value)); return *this;}
51 inline Address& WithContactName(const char* value) { SetContactName(value); return *this;}
53
55
58 inline const Aws::String& GetContactPhoneNumber() const{ return m_contactPhoneNumber; }
59 inline bool ContactPhoneNumberHasBeenSet() const { return m_contactPhoneNumberHasBeenSet; }
60 inline void SetContactPhoneNumber(const Aws::String& value) { m_contactPhoneNumberHasBeenSet = true; m_contactPhoneNumber = value; }
61 inline void SetContactPhoneNumber(Aws::String&& value) { m_contactPhoneNumberHasBeenSet = true; m_contactPhoneNumber = std::move(value); }
62 inline void SetContactPhoneNumber(const char* value) { m_contactPhoneNumberHasBeenSet = true; m_contactPhoneNumber.assign(value); }
63 inline Address& WithContactPhoneNumber(const Aws::String& value) { SetContactPhoneNumber(value); return *this;}
64 inline Address& WithContactPhoneNumber(Aws::String&& value) { SetContactPhoneNumber(std::move(value)); return *this;}
65 inline Address& WithContactPhoneNumber(const char* value) { SetContactPhoneNumber(value); return *this;}
67
69
72 inline const Aws::String& GetAddressLine1() const{ return m_addressLine1; }
73 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
74 inline void SetAddressLine1(const Aws::String& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = value; }
75 inline void SetAddressLine1(Aws::String&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::move(value); }
76 inline void SetAddressLine1(const char* value) { m_addressLine1HasBeenSet = true; m_addressLine1.assign(value); }
77 inline Address& WithAddressLine1(const Aws::String& value) { SetAddressLine1(value); return *this;}
78 inline Address& WithAddressLine1(Aws::String&& value) { SetAddressLine1(std::move(value)); return *this;}
79 inline Address& WithAddressLine1(const char* value) { SetAddressLine1(value); return *this;}
81
83
86 inline const Aws::String& GetAddressLine2() const{ return m_addressLine2; }
87 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
88 inline void SetAddressLine2(const Aws::String& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = value; }
89 inline void SetAddressLine2(Aws::String&& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::move(value); }
90 inline void SetAddressLine2(const char* value) { m_addressLine2HasBeenSet = true; m_addressLine2.assign(value); }
91 inline Address& WithAddressLine2(const Aws::String& value) { SetAddressLine2(value); return *this;}
92 inline Address& WithAddressLine2(Aws::String&& value) { SetAddressLine2(std::move(value)); return *this;}
93 inline Address& WithAddressLine2(const char* value) { SetAddressLine2(value); return *this;}
95
97
100 inline const Aws::String& GetAddressLine3() const{ return m_addressLine3; }
101 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
102 inline void SetAddressLine3(const Aws::String& value) { m_addressLine3HasBeenSet = true; m_addressLine3 = value; }
103 inline void SetAddressLine3(Aws::String&& value) { m_addressLine3HasBeenSet = true; m_addressLine3 = std::move(value); }
104 inline void SetAddressLine3(const char* value) { m_addressLine3HasBeenSet = true; m_addressLine3.assign(value); }
105 inline Address& WithAddressLine3(const Aws::String& value) { SetAddressLine3(value); return *this;}
106 inline Address& WithAddressLine3(Aws::String&& value) { SetAddressLine3(std::move(value)); return *this;}
107 inline Address& WithAddressLine3(const char* value) { SetAddressLine3(value); return *this;}
109
111
114 inline const Aws::String& GetCity() const{ return m_city; }
115 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
116 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
117 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
118 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
119 inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
120 inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
121 inline Address& WithCity(const char* value) { SetCity(value); return *this;}
123
125
128 inline const Aws::String& GetStateOrRegion() const{ return m_stateOrRegion; }
129 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
130 inline void SetStateOrRegion(const Aws::String& value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = value; }
131 inline void SetStateOrRegion(Aws::String&& value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::move(value); }
132 inline void SetStateOrRegion(const char* value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion.assign(value); }
133 inline Address& WithStateOrRegion(const Aws::String& value) { SetStateOrRegion(value); return *this;}
134 inline Address& WithStateOrRegion(Aws::String&& value) { SetStateOrRegion(std::move(value)); return *this;}
135 inline Address& WithStateOrRegion(const char* value) { SetStateOrRegion(value); return *this;}
137
139
142 inline const Aws::String& GetDistrictOrCounty() const{ return m_districtOrCounty; }
143 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
144 inline void SetDistrictOrCounty(const Aws::String& value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty = value; }
145 inline void SetDistrictOrCounty(Aws::String&& value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty = std::move(value); }
146 inline void SetDistrictOrCounty(const char* value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty.assign(value); }
147 inline Address& WithDistrictOrCounty(const Aws::String& value) { SetDistrictOrCounty(value); return *this;}
148 inline Address& WithDistrictOrCounty(Aws::String&& value) { SetDistrictOrCounty(std::move(value)); return *this;}
149 inline Address& WithDistrictOrCounty(const char* value) { SetDistrictOrCounty(value); return *this;}
151
153
156 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
157 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
158 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
159 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
160 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
161 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
162 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
163 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
165
167
170 inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
171 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
172 inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
173 inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
174 inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
175 inline Address& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
176 inline Address& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;}
177 inline Address& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
179
181
184 inline const Aws::String& GetMunicipality() const{ return m_municipality; }
185 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
186 inline void SetMunicipality(const Aws::String& value) { m_municipalityHasBeenSet = true; m_municipality = value; }
187 inline void SetMunicipality(Aws::String&& value) { m_municipalityHasBeenSet = true; m_municipality = std::move(value); }
188 inline void SetMunicipality(const char* value) { m_municipalityHasBeenSet = true; m_municipality.assign(value); }
189 inline Address& WithMunicipality(const Aws::String& value) { SetMunicipality(value); return *this;}
190 inline Address& WithMunicipality(Aws::String&& value) { SetMunicipality(std::move(value)); return *this;}
191 inline Address& WithMunicipality(const char* value) { SetMunicipality(value); return *this;}
193 private:
194
195 Aws::String m_contactName;
196 bool m_contactNameHasBeenSet = false;
197
198 Aws::String m_contactPhoneNumber;
199 bool m_contactPhoneNumberHasBeenSet = false;
200
201 Aws::String m_addressLine1;
202 bool m_addressLine1HasBeenSet = false;
203
204 Aws::String m_addressLine2;
205 bool m_addressLine2HasBeenSet = false;
206
207 Aws::String m_addressLine3;
208 bool m_addressLine3HasBeenSet = false;
209
210 Aws::String m_city;
211 bool m_cityHasBeenSet = false;
212
213 Aws::String m_stateOrRegion;
214 bool m_stateOrRegionHasBeenSet = false;
215
216 Aws::String m_districtOrCounty;
217 bool m_districtOrCountyHasBeenSet = false;
218
219 Aws::String m_postalCode;
220 bool m_postalCodeHasBeenSet = false;
221
222 Aws::String m_countryCode;
223 bool m_countryCodeHasBeenSet = false;
224
225 Aws::String m_municipality;
226 bool m_municipalityHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace Outposts
231} // namespace Aws
void SetCountryCode(const Aws::String &value)
Definition Address.h:172
Address & WithMunicipality(const char *value)
Definition Address.h:191
void SetContactName(const char *value)
Definition Address.h:48
void SetMunicipality(Aws::String &&value)
Definition Address.h:187
Address & WithAddressLine1(const char *value)
Definition Address.h:79
Address & WithMunicipality(const Aws::String &value)
Definition Address.h:189
const Aws::String & GetMunicipality() const
Definition Address.h:184
bool ContactNameHasBeenSet() const
Definition Address.h:45
void SetAddressLine3(const char *value)
Definition Address.h:104
void SetDistrictOrCounty(Aws::String &&value)
Definition Address.h:145
Address & WithStateOrRegion(Aws::String &&value)
Definition Address.h:134
bool CountryCodeHasBeenSet() const
Definition Address.h:171
void SetPostalCode(Aws::String &&value)
Definition Address.h:159
void SetContactName(Aws::String &&value)
Definition Address.h:47
Address & WithDistrictOrCounty(const Aws::String &value)
Definition Address.h:147
Address & WithAddressLine3(Aws::String &&value)
Definition Address.h:106
Address & WithCountryCode(const char *value)
Definition Address.h:177
const Aws::String & GetStateOrRegion() const
Definition Address.h:128
const Aws::String & GetContactName() const
Definition Address.h:44
Address & WithContactPhoneNumber(const Aws::String &value)
Definition Address.h:63
Address & WithStateOrRegion(const char *value)
Definition Address.h:135
void SetStateOrRegion(Aws::String &&value)
Definition Address.h:131
void SetAddressLine2(const Aws::String &value)
Definition Address.h:88
AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue)
Address & WithCountryCode(const Aws::String &value)
Definition Address.h:175
Address & WithAddressLine2(Aws::String &&value)
Definition Address.h:92
const Aws::String & GetAddressLine1() const
Definition Address.h:72
void SetAddressLine2(Aws::String &&value)
Definition Address.h:89
bool AddressLine1HasBeenSet() const
Definition Address.h:73
void SetContactName(const Aws::String &value)
Definition Address.h:46
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:143
Address & WithDistrictOrCounty(Aws::String &&value)
Definition Address.h:148
void SetStateOrRegion(const char *value)
Definition Address.h:132
void SetAddressLine3(Aws::String &&value)
Definition Address.h:103
Address & WithContactName(Aws::String &&value)
Definition Address.h:50
AWS_OUTPOSTS_API Address()
const Aws::String & GetAddressLine3() const
Definition Address.h:100
void SetStateOrRegion(const Aws::String &value)
Definition Address.h:130
bool PostalCodeHasBeenSet() const
Definition Address.h:157
Address & WithAddressLine2(const char *value)
Definition Address.h:93
bool ContactPhoneNumberHasBeenSet() const
Definition Address.h:59
void SetAddressLine3(const Aws::String &value)
Definition Address.h:102
Address & WithAddressLine3(const Aws::String &value)
Definition Address.h:105
const Aws::String & GetCity() const
Definition Address.h:114
Address & WithCity(const char *value)
Definition Address.h:121
bool StateOrRegionHasBeenSet() const
Definition Address.h:129
void SetAddressLine1(const Aws::String &value)
Definition Address.h:74
Address & WithAddressLine3(const char *value)
Definition Address.h:107
bool AddressLine3HasBeenSet() const
Definition Address.h:101
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCity(Aws::String &&value)
Definition Address.h:117
void SetMunicipality(const char *value)
Definition Address.h:188
Address & WithAddressLine1(const Aws::String &value)
Definition Address.h:77
Address & WithContactName(const Aws::String &value)
Definition Address.h:49
void SetPostalCode(const char *value)
Definition Address.h:160
void SetCountryCode(Aws::String &&value)
Definition Address.h:173
const Aws::String & GetCountryCode() const
Definition Address.h:170
Address & WithAddressLine1(Aws::String &&value)
Definition Address.h:78
void SetAddressLine1(Aws::String &&value)
Definition Address.h:75
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:161
Address & WithStateOrRegion(const Aws::String &value)
Definition Address.h:133
void SetContactPhoneNumber(const char *value)
Definition Address.h:62
void SetContactPhoneNumber(Aws::String &&value)
Definition Address.h:61
Address & WithDistrictOrCounty(const char *value)
Definition Address.h:149
Address & WithCity(const Aws::String &value)
Definition Address.h:119
const Aws::String & GetAddressLine2() const
Definition Address.h:86
Address & WithCity(Aws::String &&value)
Definition Address.h:120
Address & WithCountryCode(Aws::String &&value)
Definition Address.h:176
void SetPostalCode(const Aws::String &value)
Definition Address.h:158
void SetCity(const Aws::String &value)
Definition Address.h:116
bool MunicipalityHasBeenSet() const
Definition Address.h:185
void SetMunicipality(const Aws::String &value)
Definition Address.h:186
void SetDistrictOrCounty(const char *value)
Definition Address.h:146
void SetContactPhoneNumber(const Aws::String &value)
Definition Address.h:60
Address & WithMunicipality(Aws::String &&value)
Definition Address.h:190
bool AddressLine2HasBeenSet() const
Definition Address.h:87
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:162
void SetAddressLine1(const char *value)
Definition Address.h:76
void SetAddressLine2(const char *value)
Definition Address.h:90
AWS_OUTPOSTS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPostalCode() const
Definition Address.h:156
Address & WithContactPhoneNumber(Aws::String &&value)
Definition Address.h:64
const Aws::String & GetDistrictOrCounty() const
Definition Address.h:142
Address & WithContactName(const char *value)
Definition Address.h:51
Address & WithPostalCode(const char *value)
Definition Address.h:163
void SetCity(const char *value)
Definition Address.h:118
void SetCountryCode(const char *value)
Definition Address.h:174
const Aws::String & GetContactPhoneNumber() const
Definition Address.h:58
Address & WithContactPhoneNumber(const char *value)
Definition Address.h:65
void SetDistrictOrCounty(const Aws::String &value)
Definition Address.h:144
Address & WithAddressLine2(const Aws::String &value)
Definition Address.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue