AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ContactNameT = Aws::String>
47 void SetContactName(ContactNameT&& value) { m_contactNameHasBeenSet = true; m_contactName = std::forward<ContactNameT>(value); }
48 template<typename ContactNameT = Aws::String>
49 Address& WithContactName(ContactNameT&& value) { SetContactName(std::forward<ContactNameT>(value)); return *this;}
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) { m_contactPhoneNumberHasBeenSet = true; m_contactPhoneNumber = std::forward<ContactPhoneNumberT>(value); }
60 template<typename ContactPhoneNumberT = Aws::String>
61 Address& WithContactPhoneNumber(ContactPhoneNumberT&& value) { SetContactPhoneNumber(std::forward<ContactPhoneNumberT>(value)); return *this;}
63
65
68 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
69 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
70 template<typename AddressLine1T = Aws::String>
71 void SetAddressLine1(AddressLine1T&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::forward<AddressLine1T>(value); }
72 template<typename AddressLine1T = Aws::String>
73 Address& WithAddressLine1(AddressLine1T&& value) { SetAddressLine1(std::forward<AddressLine1T>(value)); return *this;}
75
77
80 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
81 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
82 template<typename AddressLine2T = Aws::String>
83 void SetAddressLine2(AddressLine2T&& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::forward<AddressLine2T>(value); }
84 template<typename AddressLine2T = Aws::String>
85 Address& WithAddressLine2(AddressLine2T&& value) { SetAddressLine2(std::forward<AddressLine2T>(value)); return *this;}
87
89
92 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
93 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
94 template<typename AddressLine3T = Aws::String>
95 void SetAddressLine3(AddressLine3T&& value) { m_addressLine3HasBeenSet = true; m_addressLine3 = std::forward<AddressLine3T>(value); }
96 template<typename AddressLine3T = Aws::String>
97 Address& WithAddressLine3(AddressLine3T&& value) { SetAddressLine3(std::forward<AddressLine3T>(value)); return *this;}
99
101
104 inline const Aws::String& GetCity() const { return m_city; }
105 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
106 template<typename CityT = Aws::String>
107 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
108 template<typename CityT = Aws::String>
109 Address& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
111
113
116 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
117 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
118 template<typename StateOrRegionT = Aws::String>
119 void SetStateOrRegion(StateOrRegionT&& value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::forward<StateOrRegionT>(value); }
120 template<typename StateOrRegionT = Aws::String>
121 Address& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
123
125
128 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
129 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
130 template<typename DistrictOrCountyT = Aws::String>
131 void SetDistrictOrCounty(DistrictOrCountyT&& value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty = std::forward<DistrictOrCountyT>(value); }
132 template<typename DistrictOrCountyT = Aws::String>
133 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) { SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value)); return *this;}
135
137
140 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
141 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
142 template<typename PostalCodeT = Aws::String>
143 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
144 template<typename PostalCodeT = Aws::String>
145 Address& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
147
149
152 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
153 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
154 template<typename CountryCodeT = Aws::String>
155 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
156 template<typename CountryCodeT = Aws::String>
157 Address& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
159
161
164 inline const Aws::String& GetMunicipality() const { return m_municipality; }
165 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
166 template<typename MunicipalityT = Aws::String>
167 void SetMunicipality(MunicipalityT&& value) { m_municipalityHasBeenSet = true; m_municipality = std::forward<MunicipalityT>(value); }
168 template<typename MunicipalityT = Aws::String>
169 Address& WithMunicipality(MunicipalityT&& value) { SetMunicipality(std::forward<MunicipalityT>(value)); return *this;}
171 private:
172
173 Aws::String m_contactName;
174 bool m_contactNameHasBeenSet = false;
175
176 Aws::String m_contactPhoneNumber;
177 bool m_contactPhoneNumberHasBeenSet = false;
178
179 Aws::String m_addressLine1;
180 bool m_addressLine1HasBeenSet = false;
181
182 Aws::String m_addressLine2;
183 bool m_addressLine2HasBeenSet = false;
184
185 Aws::String m_addressLine3;
186 bool m_addressLine3HasBeenSet = false;
187
188 Aws::String m_city;
189 bool m_cityHasBeenSet = false;
190
191 Aws::String m_stateOrRegion;
192 bool m_stateOrRegionHasBeenSet = false;
193
194 Aws::String m_districtOrCounty;
195 bool m_districtOrCountyHasBeenSet = false;
196
197 Aws::String m_postalCode;
198 bool m_postalCodeHasBeenSet = false;
199
200 Aws::String m_countryCode;
201 bool m_countryCodeHasBeenSet = false;
202
203 Aws::String m_municipality;
204 bool m_municipalityHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Outposts
209} // namespace Aws
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:133
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:157
void SetContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:59
void SetAddressLine2(AddressLine2T &&value)
Definition Address.h:83
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:95
Address & WithAddressLine2(AddressLine2T &&value)
Definition Address.h:85
Address & WithMunicipality(MunicipalityT &&value)
Definition Address.h:169
const Aws::String & GetMunicipality() const
Definition Address.h:164
Address & WithCity(CityT &&value)
Definition Address.h:109
bool ContactNameHasBeenSet() const
Definition Address.h:45
void SetCity(CityT &&value)
Definition Address.h:107
bool CountryCodeHasBeenSet() const
Definition Address.h:153
const Aws::String & GetStateOrRegion() const
Definition Address.h:116
const Aws::String & GetContactName() const
Definition Address.h:44
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:119
AWS_OUTPOSTS_API Address(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine1() const
Definition Address.h:68
bool AddressLine1HasBeenSet() const
Definition Address.h:69
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:73
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:129
void SetMunicipality(MunicipalityT &&value)
Definition Address.h:167
const Aws::String & GetAddressLine3() const
Definition Address.h:92
Address & WithContactName(ContactNameT &&value)
Definition Address.h:49
bool PostalCodeHasBeenSet() const
Definition Address.h:141
bool ContactPhoneNumberHasBeenSet() const
Definition Address.h:57
const Aws::String & GetCity() const
Definition Address.h:104
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:97
bool StateOrRegionHasBeenSet() const
Definition Address.h:117
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:145
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:131
bool AddressLine3HasBeenSet() const
Definition Address.h:93
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:143
const Aws::String & GetCountryCode() const
Definition Address.h:152
const Aws::String & GetAddressLine2() const
Definition Address.h:80
bool MunicipalityHasBeenSet() const
Definition Address.h:165
AWS_OUTPOSTS_API Address()=default
Address & WithContactPhoneNumber(ContactPhoneNumberT &&value)
Definition Address.h:61
bool AddressLine2HasBeenSet() const
Definition Address.h:81
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:71
AWS_OUTPOSTS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContactName(ContactNameT &&value)
Definition Address.h:47
const Aws::String & GetPostalCode() const
Definition Address.h:140
const Aws::String & GetDistrictOrCounty() const
Definition Address.h:128
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:121
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:155
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