AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateAppPaymentRegistrationRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/BusinessType.h>
10#include <aws/appmonetization/model/DeveloperAddress.h>
11#include <aws/appmonetization/model/RequestScope.h>
12#include <aws/appmonetization/model/TaxRegistration.h>
13#include <aws/core/utils/Array.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Http {
22class URI;
23} // namespace Http
24namespace AppMonetization {
25namespace Model {
26
35 public:
36 AWS_APPMONETIZATION_API CreateAppPaymentRegistrationRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateAppPaymentRegistration"; }
43
44 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
45
46 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
49
52 inline const Aws::String& GetAppId() const { return m_appId; }
53 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
54 template <typename AppIdT = Aws::String>
55 void SetAppId(AppIdT&& value) {
56 m_appIdHasBeenSet = true;
57 m_appId = std::forward<AppIdT>(value);
58 }
59 template <typename AppIdT = Aws::String>
61 SetAppId(std::forward<AppIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetLegalName() const { return m_legalName; }
71 inline bool LegalNameHasBeenSet() const { return m_legalNameHasBeenSet; }
72 template <typename LegalNameT = Aws::String>
73 void SetLegalName(LegalNameT&& value) {
74 m_legalNameHasBeenSet = true;
75 m_legalName = std::forward<LegalNameT>(value);
76 }
77 template <typename LegalNameT = Aws::String>
79 SetLegalName(std::forward<LegalNameT>(value));
80 return *this;
81 }
83
85
88 inline const DeveloperAddress& GetDeveloperAddress() const { return m_developerAddress; }
89 inline bool DeveloperAddressHasBeenSet() const { return m_developerAddressHasBeenSet; }
90 template <typename DeveloperAddressT = DeveloperAddress>
91 void SetDeveloperAddress(DeveloperAddressT&& value) {
92 m_developerAddressHasBeenSet = true;
93 m_developerAddress = std::forward<DeveloperAddressT>(value);
94 }
95 template <typename DeveloperAddressT = DeveloperAddress>
97 SetDeveloperAddress(std::forward<DeveloperAddressT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetTaxRegistrationNumber() const { return m_taxRegistrationNumber; }
107 inline bool TaxRegistrationNumberHasBeenSet() const { return m_taxRegistrationNumberHasBeenSet; }
108 template <typename TaxRegistrationNumberT = Aws::String>
109 void SetTaxRegistrationNumber(TaxRegistrationNumberT&& value) {
110 m_taxRegistrationNumberHasBeenSet = true;
111 m_taxRegistrationNumber = std::forward<TaxRegistrationNumberT>(value);
112 }
113 template <typename TaxRegistrationNumberT = Aws::String>
115 SetTaxRegistrationNumber(std::forward<TaxRegistrationNumberT>(value));
116 return *this;
117 }
119
121
124 inline BusinessType GetBusinessType() const { return m_businessType; }
125 inline bool BusinessTypeHasBeenSet() const { return m_businessTypeHasBeenSet; }
126 inline void SetBusinessType(BusinessType value) {
127 m_businessTypeHasBeenSet = true;
128 m_businessType = value;
129 }
131 SetBusinessType(value);
132 return *this;
133 }
135
137
142 inline const Aws::String& GetEmail() const { return m_email; }
143 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
144 template <typename EmailT = Aws::String>
145 void SetEmail(EmailT&& value) {
146 m_emailHasBeenSet = true;
147 m_email = std::forward<EmailT>(value);
148 }
149 template <typename EmailT = Aws::String>
151 SetEmail(std::forward<EmailT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetSupportEmail() const { return m_supportEmail; }
161 inline bool SupportEmailHasBeenSet() const { return m_supportEmailHasBeenSet; }
162 template <typename SupportEmailT = Aws::String>
163 void SetSupportEmail(SupportEmailT&& value) {
164 m_supportEmailHasBeenSet = true;
165 m_supportEmail = std::forward<SupportEmailT>(value);
166 }
167 template <typename SupportEmailT = Aws::String>
169 SetSupportEmail(std::forward<SupportEmailT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetDisplayName() const { return m_displayName; }
180 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
181 template <typename DisplayNameT = Aws::String>
182 void SetDisplayName(DisplayNameT&& value) {
183 m_displayNameHasBeenSet = true;
184 m_displayName = std::forward<DisplayNameT>(value);
185 }
186 template <typename DisplayNameT = Aws::String>
188 SetDisplayName(std::forward<DisplayNameT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetSupportPhone() const { return m_supportPhone; }
198 inline bool SupportPhoneHasBeenSet() const { return m_supportPhoneHasBeenSet; }
199 template <typename SupportPhoneT = Aws::String>
200 void SetSupportPhone(SupportPhoneT&& value) {
201 m_supportPhoneHasBeenSet = true;
202 m_supportPhone = std::forward<SupportPhoneT>(value);
203 }
204 template <typename SupportPhoneT = Aws::String>
206 SetSupportPhone(std::forward<SupportPhoneT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::Utils::CryptoBuffer& GetInvoiceLogo() const { return m_invoiceLogo; }
218 inline bool InvoiceLogoHasBeenSet() const { return m_invoiceLogoHasBeenSet; }
219 template <typename InvoiceLogoT = Aws::Utils::CryptoBuffer>
220 void SetInvoiceLogo(InvoiceLogoT&& value) {
221 m_invoiceLogoHasBeenSet = true;
222 m_invoiceLogo = std::forward<InvoiceLogoT>(value);
223 }
224 template <typename InvoiceLogoT = Aws::Utils::CryptoBuffer>
226 SetInvoiceLogo(std::forward<InvoiceLogoT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Vector<TaxRegistration>& GetTaxRegistrations() const { return m_taxRegistrations; }
236 inline bool TaxRegistrationsHasBeenSet() const { return m_taxRegistrationsHasBeenSet; }
237 template <typename TaxRegistrationsT = Aws::Vector<TaxRegistration>>
238 void SetTaxRegistrations(TaxRegistrationsT&& value) {
239 m_taxRegistrationsHasBeenSet = true;
240 m_taxRegistrations = std::forward<TaxRegistrationsT>(value);
241 }
242 template <typename TaxRegistrationsT = Aws::Vector<TaxRegistration>>
244 SetTaxRegistrations(std::forward<TaxRegistrationsT>(value));
245 return *this;
246 }
247 template <typename TaxRegistrationsT = TaxRegistration>
249 m_taxRegistrationsHasBeenSet = true;
250 m_taxRegistrations.emplace_back(std::forward<TaxRegistrationsT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetReturnUrl() const { return m_returnUrl; }
261 inline bool ReturnUrlHasBeenSet() const { return m_returnUrlHasBeenSet; }
262 template <typename ReturnUrlT = Aws::String>
263 void SetReturnUrl(ReturnUrlT&& value) {
264 m_returnUrlHasBeenSet = true;
265 m_returnUrl = std::forward<ReturnUrlT>(value);
266 }
267 template <typename ReturnUrlT = Aws::String>
269 SetReturnUrl(std::forward<ReturnUrlT>(value));
270 return *this;
271 }
273
275
279 inline const Aws::String& GetRefreshUrl() const { return m_refreshUrl; }
280 inline bool RefreshUrlHasBeenSet() const { return m_refreshUrlHasBeenSet; }
281 template <typename RefreshUrlT = Aws::String>
282 void SetRefreshUrl(RefreshUrlT&& value) {
283 m_refreshUrlHasBeenSet = true;
284 m_refreshUrl = std::forward<RefreshUrlT>(value);
285 }
286 template <typename RefreshUrlT = Aws::String>
288 SetRefreshUrl(std::forward<RefreshUrlT>(value));
289 return *this;
290 }
292
294
298 inline const Aws::String& GetClientToken() const { return m_clientToken; }
299 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
300 template <typename ClientTokenT = Aws::String>
301 void SetClientToken(ClientTokenT&& value) {
302 m_clientTokenHasBeenSet = true;
303 m_clientToken = std::forward<ClientTokenT>(value);
304 }
305 template <typename ClientTokenT = Aws::String>
307 SetClientToken(std::forward<ClientTokenT>(value));
308 return *this;
309 }
311
313
316 inline RequestScope GetScope() const { return m_scope; }
317 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
318 inline void SetScope(RequestScope value) {
319 m_scopeHasBeenSet = true;
320 m_scope = value;
321 }
323 SetScope(value);
324 return *this;
325 }
327 private:
328 Aws::String m_appId;
329
330 Aws::String m_legalName;
331
332 DeveloperAddress m_developerAddress;
333
334 Aws::String m_taxRegistrationNumber;
335
336 BusinessType m_businessType{BusinessType::NOT_SET};
337
338 Aws::String m_email;
339
340 Aws::String m_supportEmail;
341
342 Aws::String m_displayName;
343
344 Aws::String m_supportPhone;
345
346 Aws::Utils::CryptoBuffer m_invoiceLogo{};
347
348 Aws::Vector<TaxRegistration> m_taxRegistrations;
349
350 Aws::String m_returnUrl;
351
352 Aws::String m_refreshUrl;
353
355
357 bool m_appIdHasBeenSet = false;
358 bool m_legalNameHasBeenSet = false;
359 bool m_developerAddressHasBeenSet = false;
360 bool m_taxRegistrationNumberHasBeenSet = false;
361 bool m_businessTypeHasBeenSet = false;
362 bool m_emailHasBeenSet = false;
363 bool m_supportEmailHasBeenSet = false;
364 bool m_displayNameHasBeenSet = false;
365 bool m_supportPhoneHasBeenSet = false;
366 bool m_invoiceLogoHasBeenSet = false;
367 bool m_taxRegistrationsHasBeenSet = false;
368 bool m_returnUrlHasBeenSet = false;
369 bool m_refreshUrlHasBeenSet = false;
370 bool m_clientTokenHasBeenSet = true;
371 bool m_scopeHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace AppMonetization
376} // namespace Aws
AWS_APPMONETIZATION_API CreateAppPaymentRegistrationRequest()=default
CreateAppPaymentRegistrationRequest & WithInvoiceLogo(InvoiceLogoT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
CreateAppPaymentRegistrationRequest & WithSupportEmail(SupportEmailT &&value)
CreateAppPaymentRegistrationRequest & WithClientToken(ClientTokenT &&value)
CreateAppPaymentRegistrationRequest & WithBusinessType(BusinessType value)
CreateAppPaymentRegistrationRequest & AddTaxRegistrations(TaxRegistrationsT &&value)
CreateAppPaymentRegistrationRequest & WithRefreshUrl(RefreshUrlT &&value)
CreateAppPaymentRegistrationRequest & WithTaxRegistrationNumber(TaxRegistrationNumberT &&value)
CreateAppPaymentRegistrationRequest & WithLegalName(LegalNameT &&value)
CreateAppPaymentRegistrationRequest & WithDeveloperAddress(DeveloperAddressT &&value)
CreateAppPaymentRegistrationRequest & WithScope(RequestScope value)
CreateAppPaymentRegistrationRequest & WithReturnUrl(ReturnUrlT &&value)
CreateAppPaymentRegistrationRequest & WithTaxRegistrations(TaxRegistrationsT &&value)
CreateAppPaymentRegistrationRequest & WithSupportPhone(SupportPhoneT &&value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateAppPaymentRegistrationRequest & WithDisplayName(DisplayNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector