AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutTaxRegistrationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/taxsettings/TaxSettingsRequest.h>
9#include <aws/taxsettings/TaxSettings_EXPORTS.h>
10#include <aws/taxsettings/model/TaxRegistrationEntry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace TaxSettings {
16namespace Model {
17
21 public:
22 AWS_TAXSETTINGS_API PutTaxRegistrationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutTaxRegistration"; }
29
30 AWS_TAXSETTINGS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
55 inline const TaxRegistrationEntry& GetTaxRegistrationEntry() const { return m_taxRegistrationEntry; }
56 inline bool TaxRegistrationEntryHasBeenSet() const { return m_taxRegistrationEntryHasBeenSet; }
57 template <typename TaxRegistrationEntryT = TaxRegistrationEntry>
58 void SetTaxRegistrationEntry(TaxRegistrationEntryT&& value) {
59 m_taxRegistrationEntryHasBeenSet = true;
60 m_taxRegistrationEntry = std::forward<TaxRegistrationEntryT>(value);
61 }
62 template <typename TaxRegistrationEntryT = TaxRegistrationEntry>
63 PutTaxRegistrationRequest& WithTaxRegistrationEntry(TaxRegistrationEntryT&& value) {
64 SetTaxRegistrationEntry(std::forward<TaxRegistrationEntryT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_accountId;
70
71 TaxRegistrationEntry m_taxRegistrationEntry;
72 bool m_accountIdHasBeenSet = false;
73 bool m_taxRegistrationEntryHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace TaxSettings
78} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_TAXSETTINGS_API Aws::String SerializePayload() const override
void SetTaxRegistrationEntry(TaxRegistrationEntryT &&value)
PutTaxRegistrationRequest & WithAccountId(AccountIdT &&value)
const TaxRegistrationEntry & GetTaxRegistrationEntry() const
AWS_TAXSETTINGS_API PutTaxRegistrationRequest()=default
PutTaxRegistrationRequest & WithTaxRegistrationEntry(TaxRegistrationEntryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String