AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/taxsettings/TaxSettings_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TaxSettings {
20namespace Model {
21
28class Address {
29 public:
30 AWS_TAXSETTINGS_API Address() = default;
31 AWS_TAXSETTINGS_API Address(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TAXSETTINGS_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
40 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
41 template <typename AddressLine1T = Aws::String>
42 void SetAddressLine1(AddressLine1T&& value) {
43 m_addressLine1HasBeenSet = true;
44 m_addressLine1 = std::forward<AddressLine1T>(value);
45 }
46 template <typename AddressLine1T = Aws::String>
47 Address& WithAddressLine1(AddressLine1T&& value) {
48 SetAddressLine1(std::forward<AddressLine1T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
58 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
59 template <typename AddressLine2T = Aws::String>
60 void SetAddressLine2(AddressLine2T&& value) {
61 m_addressLine2HasBeenSet = true;
62 m_addressLine2 = std::forward<AddressLine2T>(value);
63 }
64 template <typename AddressLine2T = Aws::String>
65 Address& WithAddressLine2(AddressLine2T&& value) {
66 SetAddressLine2(std::forward<AddressLine2T>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
80 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
81 template <typename AddressLine3T = Aws::String>
82 void SetAddressLine3(AddressLine3T&& value) {
83 m_addressLine3HasBeenSet = true;
84 m_addressLine3 = std::forward<AddressLine3T>(value);
85 }
86 template <typename AddressLine3T = Aws::String>
87 Address& WithAddressLine3(AddressLine3T&& value) {
88 SetAddressLine3(std::forward<AddressLine3T>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
101 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
102 template <typename DistrictOrCountyT = Aws::String>
103 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
104 m_districtOrCountyHasBeenSet = true;
105 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
106 }
107 template <typename DistrictOrCountyT = Aws::String>
108 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) {
109 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetCity() const { return m_city; }
119 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
120 template <typename CityT = Aws::String>
121 void SetCity(CityT&& value) {
122 m_cityHasBeenSet = true;
123 m_city = std::forward<CityT>(value);
124 }
125 template <typename CityT = Aws::String>
126 Address& WithCity(CityT&& value) {
127 SetCity(std::forward<CityT>(value));
128 return *this;
129 }
131
133
139 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
140 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
141 template <typename StateOrRegionT = Aws::String>
142 void SetStateOrRegion(StateOrRegionT&& value) {
143 m_stateOrRegionHasBeenSet = true;
144 m_stateOrRegion = std::forward<StateOrRegionT>(value);
145 }
146 template <typename StateOrRegionT = Aws::String>
147 Address& WithStateOrRegion(StateOrRegionT&& value) {
148 SetStateOrRegion(std::forward<StateOrRegionT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
158 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
159 template <typename PostalCodeT = Aws::String>
160 void SetPostalCode(PostalCodeT&& value) {
161 m_postalCodeHasBeenSet = true;
162 m_postalCode = std::forward<PostalCodeT>(value);
163 }
164 template <typename PostalCodeT = Aws::String>
165 Address& WithPostalCode(PostalCodeT&& value) {
166 SetPostalCode(std::forward<PostalCodeT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
176 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
177 template <typename CountryCodeT = Aws::String>
178 void SetCountryCode(CountryCodeT&& value) {
179 m_countryCodeHasBeenSet = true;
180 m_countryCode = std::forward<CountryCodeT>(value);
181 }
182 template <typename CountryCodeT = Aws::String>
183 Address& WithCountryCode(CountryCodeT&& value) {
184 SetCountryCode(std::forward<CountryCodeT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_addressLine1;
190
191 Aws::String m_addressLine2;
192
193 Aws::String m_addressLine3;
194
195 Aws::String m_districtOrCounty;
196
197 Aws::String m_city;
198
199 Aws::String m_stateOrRegion;
200
201 Aws::String m_postalCode;
202
203 Aws::String m_countryCode;
204 bool m_addressLine1HasBeenSet = false;
205 bool m_addressLine2HasBeenSet = false;
206 bool m_addressLine3HasBeenSet = false;
207 bool m_districtOrCountyHasBeenSet = false;
208 bool m_cityHasBeenSet = false;
209 bool m_stateOrRegionHasBeenSet = false;
210 bool m_postalCodeHasBeenSet = false;
211 bool m_countryCodeHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace TaxSettings
216} // namespace Aws
Address & WithAddressLine2(AddressLine2T &&value)
Definition Address.h:65
bool StateOrRegionHasBeenSet() const
Definition Address.h:140
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:108
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:165
bool AddressLine2HasBeenSet() const
Definition Address.h:58
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:47
void SetCity(CityT &&value)
Definition Address.h:121
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:142
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:183
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:82
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:147
const Aws::String & GetCity() const
Definition Address.h:118
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:42
bool AddressLine1HasBeenSet() const
Definition Address.h:40
Address & WithCity(CityT &&value)
Definition Address.h:126
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:160
const Aws::String & GetAddressLine2() const
Definition Address.h:57
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:101
bool AddressLine3HasBeenSet() const
Definition Address.h:80
AWS_TAXSETTINGS_API Address()=default
AWS_TAXSETTINGS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine3() const
Definition Address.h:79
const Aws::String & GetStateOrRegion() const
Definition Address.h:139
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:103
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:87
const Aws::String & GetPostalCode() const
Definition Address.h:157
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:178
const Aws::String & GetAddressLine1() const
Definition Address.h:39
void SetAddressLine2(AddressLine2T &&value)
Definition Address.h:60
AWS_TAXSETTINGS_API Address(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDistrictOrCounty() const
Definition Address.h:100
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCountryCode() const
Definition Address.h:175
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue