AWS SDK for C++

AWS SDK for C++ Version 1.11.829

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 Aws::String& GetRegistrationId() const { return m_registrationId; }
46 inline bool RegistrationIdHasBeenSet() const { return m_registrationIdHasBeenSet; }
47 template <typename RegistrationIdT = Aws::String>
48 void SetRegistrationId(RegistrationIdT&& value) {
49 m_registrationIdHasBeenSet = true;
50 m_registrationId = std::forward<RegistrationIdT>(value);
51 }
52 template <typename RegistrationIdT = Aws::String>
53 TaxRegistration& WithRegistrationId(RegistrationIdT&& value) {
54 SetRegistrationId(std::forward<RegistrationIdT>(value));
55 return *this;
56 }
58
60
63 inline TaxRegistrationType GetRegistrationType() const { return m_registrationType; }
64 inline bool RegistrationTypeHasBeenSet() const { return m_registrationTypeHasBeenSet; }
66 m_registrationTypeHasBeenSet = true;
67 m_registrationType = value;
68 }
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLegalName() const { return m_legalName; }
80 inline bool LegalNameHasBeenSet() const { return m_legalNameHasBeenSet; }
81 template <typename LegalNameT = Aws::String>
82 void SetLegalName(LegalNameT&& value) {
83 m_legalNameHasBeenSet = true;
84 m_legalName = std::forward<LegalNameT>(value);
85 }
86 template <typename LegalNameT = Aws::String>
87 TaxRegistration& WithLegalName(LegalNameT&& value) {
88 SetLegalName(std::forward<LegalNameT>(value));
89 return *this;
90 }
92
94
98 inline TaxRegistrationStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(TaxRegistrationStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
118 inline Sector GetSector() const { return m_sector; }
119 inline bool SectorHasBeenSet() const { return m_sectorHasBeenSet; }
120 inline void SetSector(Sector value) {
121 m_sectorHasBeenSet = true;
122 m_sector = value;
123 }
125 SetSector(value);
126 return *this;
127 }
129
131
134 inline const Aws::Vector<TaxDocumentMetadata>& GetTaxDocumentMetadatas() const { return m_taxDocumentMetadatas; }
135 inline bool TaxDocumentMetadatasHasBeenSet() const { return m_taxDocumentMetadatasHasBeenSet; }
136 template <typename TaxDocumentMetadatasT = Aws::Vector<TaxDocumentMetadata>>
137 void SetTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
138 m_taxDocumentMetadatasHasBeenSet = true;
139 m_taxDocumentMetadatas = std::forward<TaxDocumentMetadatasT>(value);
140 }
141 template <typename TaxDocumentMetadatasT = Aws::Vector<TaxDocumentMetadata>>
142 TaxRegistration& WithTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
143 SetTaxDocumentMetadatas(std::forward<TaxDocumentMetadatasT>(value));
144 return *this;
145 }
146 template <typename TaxDocumentMetadatasT = TaxDocumentMetadata>
147 TaxRegistration& AddTaxDocumentMetadatas(TaxDocumentMetadatasT&& value) {
148 m_taxDocumentMetadatasHasBeenSet = true;
149 m_taxDocumentMetadatas.emplace_back(std::forward<TaxDocumentMetadatasT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetCertifiedEmailId() const { return m_certifiedEmailId; }
159 inline bool CertifiedEmailIdHasBeenSet() const { return m_certifiedEmailIdHasBeenSet; }
160 template <typename CertifiedEmailIdT = Aws::String>
161 void SetCertifiedEmailId(CertifiedEmailIdT&& value) {
162 m_certifiedEmailIdHasBeenSet = true;
163 m_certifiedEmailId = std::forward<CertifiedEmailIdT>(value);
164 }
165 template <typename CertifiedEmailIdT = Aws::String>
166 TaxRegistration& WithCertifiedEmailId(CertifiedEmailIdT&& value) {
167 SetCertifiedEmailId(std::forward<CertifiedEmailIdT>(value));
168 return *this;
169 }
171
173
176 inline const AdditionalInfoResponse& GetAdditionalTaxInformation() const { return m_additionalTaxInformation; }
177 inline bool AdditionalTaxInformationHasBeenSet() const { return m_additionalTaxInformationHasBeenSet; }
178 template <typename AdditionalTaxInformationT = AdditionalInfoResponse>
179 void SetAdditionalTaxInformation(AdditionalTaxInformationT&& value) {
180 m_additionalTaxInformationHasBeenSet = true;
181 m_additionalTaxInformation = std::forward<AdditionalTaxInformationT>(value);
182 }
183 template <typename AdditionalTaxInformationT = AdditionalInfoResponse>
184 TaxRegistration& WithAdditionalTaxInformation(AdditionalTaxInformationT&& value) {
185 SetAdditionalTaxInformation(std::forward<AdditionalTaxInformationT>(value));
186 return *this;
187 }
189
191
194 inline const Address& GetLegalAddress() const { return m_legalAddress; }
195 inline bool LegalAddressHasBeenSet() const { return m_legalAddressHasBeenSet; }
196 template <typename LegalAddressT = Address>
197 void SetLegalAddress(LegalAddressT&& value) {
198 m_legalAddressHasBeenSet = true;
199 m_legalAddress = std::forward<LegalAddressT>(value);
200 }
201 template <typename LegalAddressT = Address>
202 TaxRegistration& WithLegalAddress(LegalAddressT&& value) {
203 SetLegalAddress(std::forward<LegalAddressT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_registrationId;
209
211
212 Aws::String m_legalName;
213
215
216 Sector m_sector{Sector::NOT_SET};
217
218 Aws::Vector<TaxDocumentMetadata> m_taxDocumentMetadatas;
219
220 Aws::String m_certifiedEmailId;
221
222 AdditionalInfoResponse m_additionalTaxInformation;
223
224 Address m_legalAddress;
225 bool m_registrationIdHasBeenSet = false;
226 bool m_registrationTypeHasBeenSet = false;
227 bool m_legalNameHasBeenSet = false;
228 bool m_statusHasBeenSet = false;
229 bool m_sectorHasBeenSet = false;
230 bool m_taxDocumentMetadatasHasBeenSet = false;
231 bool m_certifiedEmailIdHasBeenSet = false;
232 bool m_additionalTaxInformationHasBeenSet = false;
233 bool m_legalAddressHasBeenSet = 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