AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
TaxRegistration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/taxsettings/TaxSettings_EXPORTS.h>
10#include <aws/taxsettings/model/AdditionalInfoResponse.h>
11#include <aws/taxsettings/model/Address.h>
12#include <aws/taxsettings/model/Sector.h>
13#include <aws/taxsettings/model/TaxDocumentMetadata.h>
14#include <aws/taxsettings/model/TaxRegistrationStatus.h>
15#include <aws/taxsettings/model/TaxRegistrationType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TaxSettings {
27namespace Model {
28
35 public:
36 AWS_TAXSETTINGS_API TaxRegistration() = default;
37 AWS_TAXSETTINGS_API TaxRegistration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TAXSETTINGS_API TaxRegistration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const AdditionalInfoResponse& GetAdditionalTaxInformation() const { return m_additionalTaxInformation; }
46 inline bool AdditionalTaxInformationHasBeenSet() const { return m_additionalTaxInformationHasBeenSet; }
47 template <typename AdditionalTaxInformationT = AdditionalInfoResponse>
48 void SetAdditionalTaxInformation(AdditionalTaxInformationT&& value) {
49 m_additionalTaxInformationHasBeenSet = true;
50 m_additionalTaxInformation = std::forward<AdditionalTaxInformationT>(value);
51 }
52 template <typename AdditionalTaxInformationT = AdditionalInfoResponse>
53 TaxRegistration& WithAdditionalTaxInformation(AdditionalTaxInformationT&& value) {
54 SetAdditionalTaxInformation(std::forward<AdditionalTaxInformationT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCertifiedEmailId() const { return m_certifiedEmailId; }
64 inline bool CertifiedEmailIdHasBeenSet() const { return m_certifiedEmailIdHasBeenSet; }
65 template <typename CertifiedEmailIdT = Aws::String>
66 void SetCertifiedEmailId(CertifiedEmailIdT&& value) {
67 m_certifiedEmailIdHasBeenSet = true;
68 m_certifiedEmailId = std::forward<CertifiedEmailIdT>(value);
69 }
70 template <typename CertifiedEmailIdT = Aws::String>
71 TaxRegistration& WithCertifiedEmailId(CertifiedEmailIdT&& value) {
72 SetCertifiedEmailId(std::forward<CertifiedEmailIdT>(value));
73 return *this;
74 }
76
78
81 inline const Address& GetLegalAddress() const { return m_legalAddress; }
82 inline bool LegalAddressHasBeenSet() const { return m_legalAddressHasBeenSet; }
83 template <typename LegalAddressT = Address>
84 void SetLegalAddress(LegalAddressT&& value) {
85 m_legalAddressHasBeenSet = true;
86 m_legalAddress = std::forward<LegalAddressT>(value);
87 }
88 template <typename LegalAddressT = Address>
89 TaxRegistration& WithLegalAddress(LegalAddressT&& value) {
90 SetLegalAddress(std::forward<LegalAddressT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetLegalName() const { return m_legalName; }
100 inline bool LegalNameHasBeenSet() const { return m_legalNameHasBeenSet; }
101 template <typename LegalNameT = Aws::String>
102 void SetLegalName(LegalNameT&& value) {
103 m_legalNameHasBeenSet = true;
104 m_legalName = std::forward<LegalNameT>(value);
105 }
106 template <typename LegalNameT = Aws::String>
107 TaxRegistration& WithLegalName(LegalNameT&& value) {
108 SetLegalName(std::forward<LegalNameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetRegistrationId() const { return m_registrationId; }
118 inline bool RegistrationIdHasBeenSet() const { return m_registrationIdHasBeenSet; }
119 template <typename RegistrationIdT = Aws::String>
120 void SetRegistrationId(RegistrationIdT&& value) {
121 m_registrationIdHasBeenSet = true;
122 m_registrationId = std::forward<RegistrationIdT>(value);
123 }
124 template <typename RegistrationIdT = Aws::String>
125 TaxRegistration& WithRegistrationId(RegistrationIdT&& value) {
126 SetRegistrationId(std::forward<RegistrationIdT>(value));
127 return *this;
128 }
130
132
135 inline TaxRegistrationType GetRegistrationType() const { return m_registrationType; }
136 inline bool RegistrationTypeHasBeenSet() const { return m_registrationTypeHasBeenSet; }
138 m_registrationTypeHasBeenSet = true;
139 m_registrationType = value;
140 }
142 SetRegistrationType(value);
143 return *this;
144 }
146
148
155 inline Sector GetSector() const { return m_sector; }
156 inline bool SectorHasBeenSet() const { return m_sectorHasBeenSet; }
157 inline void SetSector(Sector value) {
158 m_sectorHasBeenSet = true;
159 m_sector = value;
160 }
162 SetSector(value);
163 return *this;
164 }
166
168
172 inline TaxRegistrationStatus GetStatus() const { return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
174 inline void SetStatus(TaxRegistrationStatus value) {
175 m_statusHasBeenSet = true;
176 m_status = value;
177 }
179 SetStatus(value);
180 return *this;
181 }
183
185
188 inline const Aws::Vector<TaxDocumentMetadata>& GetTaxDocumentMetadatas() const { return m_taxDocumentMetadatas; }
189 inline bool TaxDocumentMetadatasHasBeenSet() const { return m_taxDocumentMetadatasHasBeenSet; }
190 template <typename TaxDocumentMetadatasT = Aws::Vector<TaxDocumentMetadata>>
191 void SetTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
192 m_taxDocumentMetadatasHasBeenSet = true;
193 m_taxDocumentMetadatas = std::forward<TaxDocumentMetadatasT>(value);
194 }
195 template <typename TaxDocumentMetadatasT = Aws::Vector<TaxDocumentMetadata>>
196 TaxRegistration& WithTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
197 SetTaxDocumentMetadatas(std::forward<TaxDocumentMetadatasT>(value));
198 return *this;
199 }
200 template <typename TaxDocumentMetadatasT = TaxDocumentMetadata>
201 TaxRegistration& AddTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
202 m_taxDocumentMetadatasHasBeenSet = true;
203 m_taxDocumentMetadatas.emplace_back(std::forward<TaxDocumentMetadatasT>(value));
204 return *this;
205 }
207 private:
208 AdditionalInfoResponse m_additionalTaxInformation;
209
210 Aws::String m_certifiedEmailId;
211
212 Address m_legalAddress;
213
214 Aws::String m_legalName;
215
216 Aws::String m_registrationId;
217
219
220 Sector m_sector{Sector::NOT_SET};
221
223
224 Aws::Vector<TaxDocumentMetadata> m_taxDocumentMetadatas;
225 bool m_additionalTaxInformationHasBeenSet = false;
226 bool m_certifiedEmailIdHasBeenSet = false;
227 bool m_legalAddressHasBeenSet = false;
228 bool m_legalNameHasBeenSet = false;
229 bool m_registrationIdHasBeenSet = false;
230 bool m_registrationTypeHasBeenSet = false;
231 bool m_sectorHasBeenSet = false;
232 bool m_statusHasBeenSet = false;
233 bool m_taxDocumentMetadatasHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace TaxSettings
238} // namespace Aws
TaxRegistration & WithTaxDocumentMetadatas(TaxDocumentMetadatasT &&value)
AWS_TAXSETTINGS_API TaxRegistration(Aws::Utils::Json::JsonView jsonValue)
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCertifiedEmailId(CertifiedEmailIdT &&value)
TaxRegistration & WithRegistrationType(TaxRegistrationType value)
const Aws::String & GetRegistrationId() const
TaxRegistration & WithStatus(TaxRegistrationStatus value)
TaxRegistrationStatus GetStatus() const
TaxRegistration & WithLegalName(LegalNameT &&value)
TaxRegistrationType GetRegistrationType() const
void SetRegistrationType(TaxRegistrationType value)
const AdditionalInfoResponse & GetAdditionalTaxInformation() const
TaxRegistration & WithAdditionalTaxInformation(AdditionalTaxInformationT &&value)
void SetRegistrationId(RegistrationIdT &&value)
void SetTaxDocumentMetadatas(TaxDocumentMetadatasT &&value)
void SetAdditionalTaxInformation(AdditionalTaxInformationT &&value)
const Aws::String & GetCertifiedEmailId() const
TaxRegistration & WithSector(Sector value)
TaxRegistration & AddTaxDocumentMetadatas(TaxDocumentMetadatasT &&value)
void SetStatus(TaxRegistrationStatus value)
const Aws::String & GetLegalName() const
TaxRegistration & WithLegalAddress(LegalAddressT &&value)
TaxRegistration & WithCertifiedEmailId(CertifiedEmailIdT &&value)
AWS_TAXSETTINGS_API TaxRegistration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLegalAddress(LegalAddressT &&value)
AWS_TAXSETTINGS_API TaxRegistration()=default
const Aws::Vector< TaxDocumentMetadata > & GetTaxDocumentMetadatas() const
TaxRegistration & WithRegistrationId(RegistrationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue