AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReceiverAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/invoicing/Invoicing_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Invoicing {
20namespace Model {
21
29 public:
30 AWS_INVOICING_API ReceiverAddress() = default;
31 AWS_INVOICING_API ReceiverAddress(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INVOICING_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 ReceiverAddress& 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 ReceiverAddress& WithAddressLine2(AddressLine2T&& value) {
66 SetAddressLine2(std::forward<AddressLine2T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
76 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
77 template <typename AddressLine3T = Aws::String>
78 void SetAddressLine3(AddressLine3T&& value) {
79 m_addressLine3HasBeenSet = true;
80 m_addressLine3 = std::forward<AddressLine3T>(value);
81 }
82 template <typename AddressLine3T = Aws::String>
83 ReceiverAddress& WithAddressLine3(AddressLine3T&& value) {
84 SetAddressLine3(std::forward<AddressLine3T>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
94 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
95 template <typename DistrictOrCountyT = Aws::String>
96 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
97 m_districtOrCountyHasBeenSet = true;
98 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
99 }
100 template <typename DistrictOrCountyT = Aws::String>
101 ReceiverAddress& WithDistrictOrCounty(DistrictOrCountyT&& value) {
102 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCity() const { return m_city; }
112 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
113 template <typename CityT = Aws::String>
114 void SetCity(CityT&& value) {
115 m_cityHasBeenSet = true;
116 m_city = std::forward<CityT>(value);
117 }
118 template <typename CityT = Aws::String>
119 ReceiverAddress& WithCity(CityT&& value) {
120 SetCity(std::forward<CityT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
130 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
131 template <typename StateOrRegionT = Aws::String>
132 void SetStateOrRegion(StateOrRegionT&& value) {
133 m_stateOrRegionHasBeenSet = true;
134 m_stateOrRegion = std::forward<StateOrRegionT>(value);
135 }
136 template <typename StateOrRegionT = Aws::String>
137 ReceiverAddress& WithStateOrRegion(StateOrRegionT&& value) {
138 SetStateOrRegion(std::forward<StateOrRegionT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
148 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
149 template <typename CountryCodeT = Aws::String>
150 void SetCountryCode(CountryCodeT&& value) {
151 m_countryCodeHasBeenSet = true;
152 m_countryCode = std::forward<CountryCodeT>(value);
153 }
154 template <typename CountryCodeT = Aws::String>
155 ReceiverAddress& WithCountryCode(CountryCodeT&& value) {
156 SetCountryCode(std::forward<CountryCodeT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetCompanyName() const { return m_companyName; }
166 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
167 template <typename CompanyNameT = Aws::String>
168 void SetCompanyName(CompanyNameT&& value) {
169 m_companyNameHasBeenSet = true;
170 m_companyName = std::forward<CompanyNameT>(value);
171 }
172 template <typename CompanyNameT = Aws::String>
173 ReceiverAddress& WithCompanyName(CompanyNameT&& value) {
174 SetCompanyName(std::forward<CompanyNameT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
184 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
185 template <typename PostalCodeT = Aws::String>
186 void SetPostalCode(PostalCodeT&& value) {
187 m_postalCodeHasBeenSet = true;
188 m_postalCode = std::forward<PostalCodeT>(value);
189 }
190 template <typename PostalCodeT = Aws::String>
191 ReceiverAddress& WithPostalCode(PostalCodeT&& value) {
192 SetPostalCode(std::forward<PostalCodeT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_addressLine1;
198
199 Aws::String m_addressLine2;
200
201 Aws::String m_addressLine3;
202
203 Aws::String m_districtOrCounty;
204
205 Aws::String m_city;
206
207 Aws::String m_stateOrRegion;
208
209 Aws::String m_countryCode;
210
211 Aws::String m_companyName;
212
213 Aws::String m_postalCode;
214 bool m_addressLine1HasBeenSet = false;
215 bool m_addressLine2HasBeenSet = false;
216 bool m_addressLine3HasBeenSet = false;
217 bool m_districtOrCountyHasBeenSet = false;
218 bool m_cityHasBeenSet = false;
219 bool m_stateOrRegionHasBeenSet = false;
220 bool m_countryCodeHasBeenSet = false;
221 bool m_companyNameHasBeenSet = false;
222 bool m_postalCodeHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace Invoicing
227} // namespace Aws
void SetAddressLine1(AddressLine1T &&value)
const Aws::String & GetCity() const
void SetStateOrRegion(StateOrRegionT &&value)
const Aws::String & GetDistrictOrCounty() const
ReceiverAddress & WithAddressLine3(AddressLine3T &&value)
void SetAddressLine3(AddressLine3T &&value)
ReceiverAddress & WithCompanyName(CompanyNameT &&value)
AWS_INVOICING_API ReceiverAddress()=default
ReceiverAddress & WithCountryCode(CountryCodeT &&value)
void SetAddressLine2(AddressLine2T &&value)
void SetCountryCode(CountryCodeT &&value)
ReceiverAddress & WithPostalCode(PostalCodeT &&value)
AWS_INVOICING_API ReceiverAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
ReceiverAddress & WithStateOrRegion(StateOrRegionT &&value)
void SetCompanyName(CompanyNameT &&value)
void SetDistrictOrCounty(DistrictOrCountyT &&value)
const Aws::String & GetCompanyName() const
AWS_INVOICING_API ReceiverAddress(Aws::Utils::Json::JsonView jsonValue)
ReceiverAddress & WithCity(CityT &&value)
const Aws::String & GetPostalCode() const
const Aws::String & GetAddressLine3() const
ReceiverAddress & WithAddressLine2(AddressLine2T &&value)
ReceiverAddress & WithAddressLine1(AddressLine1T &&value)
void SetPostalCode(PostalCodeT &&value)
const Aws::String & GetAddressLine1() const
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStateOrRegion() const
const Aws::String & GetAddressLine2() const
ReceiverAddress & WithDistrictOrCounty(DistrictOrCountyT &&value)
const Aws::String & GetCountryCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue