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/taxsettings/TaxSettings_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 TaxSettings
22{
23namespace Model
24{
25
32 class Address
33 {
34 public:
35 AWS_TAXSETTINGS_API Address() = default;
36 AWS_TAXSETTINGS_API Address(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TAXSETTINGS_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
46 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
47 template<typename AddressLine1T = Aws::String>
48 void SetAddressLine1(AddressLine1T&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::forward<AddressLine1T>(value); }
49 template<typename AddressLine1T = Aws::String>
50 Address& WithAddressLine1(AddressLine1T&& value) { SetAddressLine1(std::forward<AddressLine1T>(value)); return *this;}
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) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::forward<AddressLine2T>(value); }
61 template<typename AddressLine2T = Aws::String>
62 Address& WithAddressLine2(AddressLine2T&& value) { SetAddressLine2(std::forward<AddressLine2T>(value)); return *this;}
64
66
73 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
74 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
75 template<typename AddressLine3T = Aws::String>
76 void SetAddressLine3(AddressLine3T&& value) { m_addressLine3HasBeenSet = true; m_addressLine3 = std::forward<AddressLine3T>(value); }
77 template<typename AddressLine3T = Aws::String>
78 Address& WithAddressLine3(AddressLine3T&& value) { SetAddressLine3(std::forward<AddressLine3T>(value)); return *this;}
80
82
85 inline const Aws::String& GetCity() const { return m_city; }
86 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
87 template<typename CityT = Aws::String>
88 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
89 template<typename CityT = Aws::String>
90 Address& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
92
94
97 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
98 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
99 template<typename CountryCodeT = Aws::String>
100 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
101 template<typename CountryCodeT = Aws::String>
102 Address& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
104
106
112 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
113 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
114 template<typename DistrictOrCountyT = Aws::String>
115 void SetDistrictOrCounty(DistrictOrCountyT&& value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty = std::forward<DistrictOrCountyT>(value); }
116 template<typename DistrictOrCountyT = Aws::String>
117 Address& WithDistrictOrCounty(DistrictOrCountyT&& value) { SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value)); return *this;}
119
121
124 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
125 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
126 template<typename PostalCodeT = Aws::String>
127 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
128 template<typename PostalCodeT = Aws::String>
129 Address& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
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) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::forward<StateOrRegionT>(value); }
143 template<typename StateOrRegionT = Aws::String>
144 Address& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
146 private:
147
148 Aws::String m_addressLine1;
149 bool m_addressLine1HasBeenSet = false;
150
151 Aws::String m_addressLine2;
152 bool m_addressLine2HasBeenSet = false;
153
154 Aws::String m_addressLine3;
155 bool m_addressLine3HasBeenSet = false;
156
157 Aws::String m_city;
158 bool m_cityHasBeenSet = false;
159
160 Aws::String m_countryCode;
161 bool m_countryCodeHasBeenSet = false;
162
163 Aws::String m_districtOrCounty;
164 bool m_districtOrCountyHasBeenSet = false;
165
166 Aws::String m_postalCode;
167 bool m_postalCodeHasBeenSet = false;
168
169 Aws::String m_stateOrRegion;
170 bool m_stateOrRegionHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace TaxSettings
175} // namespace Aws
Address & WithAddressLine2(AddressLine2T &&value)
Definition Address.h:62
bool StateOrRegionHasBeenSet() const
Definition Address.h:140
Address & WithDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:117
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:129
bool AddressLine2HasBeenSet() const
Definition Address.h:58
Address & WithAddressLine1(AddressLine1T &&value)
Definition Address.h:50
void SetCity(CityT &&value)
Definition Address.h:88
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:142
Address & WithCountryCode(CountryCodeT &&value)
Definition Address.h:102
void SetAddressLine3(AddressLine3T &&value)
Definition Address.h:76
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:144
const Aws::String & GetCity() const
Definition Address.h:85
void SetAddressLine1(AddressLine1T &&value)
Definition Address.h:48
bool AddressLine1HasBeenSet() const
Definition Address.h:46
Address & WithCity(CityT &&value)
Definition Address.h:90
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:127
const Aws::String & GetAddressLine2() const
Definition Address.h:57
bool DistrictOrCountyHasBeenSet() const
Definition Address.h:113
bool AddressLine3HasBeenSet() const
Definition Address.h:74
AWS_TAXSETTINGS_API Address()=default
AWS_TAXSETTINGS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine3() const
Definition Address.h:73
const Aws::String & GetStateOrRegion() const
Definition Address.h:139
void SetDistrictOrCounty(DistrictOrCountyT &&value)
Definition Address.h:115
Address & WithAddressLine3(AddressLine3T &&value)
Definition Address.h:78
const Aws::String & GetPostalCode() const
Definition Address.h:124
void SetCountryCode(CountryCodeT &&value)
Definition Address.h:100
const Aws::String & GetAddressLine1() const
Definition Address.h:45
bool CountryCodeHasBeenSet() const
Definition Address.h:98
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:112
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCountryCode() const
Definition Address.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue