AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
97 inline const Aws::String& GetCity() const { return m_city; }
98 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
99 template <typename CityT = Aws::String>
100 void SetCity(CityT&& value) {
101 m_cityHasBeenSet = true;
102 m_city = std::forward<CityT>(value);
103 }
104 template <typename CityT = Aws::String>
105 Address& WithCity(CityT&& value) {
106 SetCity(std::forward<CityT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
116 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
117 template <typename CountryCodeT = Aws::String>
118 void SetCountryCode(CountryCodeT&& value) {
119 m_countryCodeHasBeenSet = true;
120 m_countryCode = std::forward<CountryCodeT>(value);
121 }
122 template <typename CountryCodeT = Aws::String>
123 Address& WithCountryCode(CountryCodeT&& value) {
124 SetCountryCode(std::forward<CountryCodeT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
137 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
138 template <typename DistrictOrCountyT = Aws::String>
139 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
140 m_districtOrCountyHasBeenSet = true;
141 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
142 }
143 template <typename DistrictOrCountyT = Aws::String>
144 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) {
145 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
155 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
156 template <typename PostalCodeT = Aws::String>
157 void SetPostalCode(PostalCodeT&& value) {
158 m_postalCodeHasBeenSet = true;
159 m_postalCode = std::forward<PostalCodeT>(value);
160 }
161 template <typename PostalCodeT = Aws::String>
162 Address& WithPostalCode(PostalCodeT&& value) {
163 SetPostalCode(std::forward<PostalCodeT>(value));
164 return *this;
165 }
167
169
175 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
176 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
177 template <typename StateOrRegionT = Aws::String>
178 void SetStateOrRegion(StateOrRegionT&& value) {
179 m_stateOrRegionHasBeenSet = true;
180 m_stateOrRegion = std::forward<StateOrRegionT>(value);
181 }
182 template <typename StateOrRegionT = Aws::String>
183 Address& WithStateOrRegion(StateOrRegionT&& value) {
184 SetStateOrRegion(std::forward<StateOrRegionT>(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_city;
196
197 Aws::String m_countryCode;
198
199 Aws::String m_districtOrCounty;
200
201 Aws::String m_postalCode;
202
203 Aws::String m_stateOrRegion;
204 bool m_addressLine1HasBeenSet = false;
205 bool m_addressLine2HasBeenSet = false;
206 bool m_addressLine3HasBeenSet = false;
207 bool m_cityHasBeenSet = false;
208 bool m_countryCodeHasBeenSet = false;
209 bool m_districtOrCountyHasBeenSet = false;
210 bool m_postalCodeHasBeenSet = false;
211 bool m_stateOrRegionHasBeenSet = 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:176
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:144
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:162
bool AddressLine2HasBeenSet() const
Definition Address.h:58
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:47
void SetCity(CityT &&value)
Definition Address.h:100
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:178
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:123
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:82
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:183
const Aws::String & GetCity() const
Definition Address.h:97
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:42
bool AddressLine1HasBeenSet() const
Definition Address.h:40
Address & WithCity(CityT &&value)
Definition Address.h:105
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:157
const Aws::String & GetAddressLine2() const
Definition Address.h:57
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:137
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:175
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:139
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:87
const Aws::String & GetPostalCode() const
Definition Address.h:154
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:118
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:136
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCountryCode() const
Definition Address.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue