AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutTaxExemptionRequest.h
1
6#pragma once
7#include <aws/taxsettings/TaxSettings_EXPORTS.h>
8#include <aws/taxsettings/TaxSettingsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/taxsettings/model/Authority.h>
11#include <aws/taxsettings/model/ExemptionCertificate.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace TaxSettings
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TAXSETTINGS_API PutTaxExemptionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutTaxExemption"; }
34
35 AWS_TAXSETTINGS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
43 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
44 template<typename AccountIdsT = Aws::Vector<Aws::String>>
45 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
46 template<typename AccountIdsT = Aws::Vector<Aws::String>>
47 PutTaxExemptionRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
48 template<typename AccountIdsT = Aws::String>
49 PutTaxExemptionRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
51
53
54 inline const Authority& GetAuthority() const { return m_authority; }
55 inline bool AuthorityHasBeenSet() const { return m_authorityHasBeenSet; }
56 template<typename AuthorityT = Authority>
57 void SetAuthority(AuthorityT&& value) { m_authorityHasBeenSet = true; m_authority = std::forward<AuthorityT>(value); }
58 template<typename AuthorityT = Authority>
59 PutTaxExemptionRequest& WithAuthority(AuthorityT&& value) { SetAuthority(std::forward<AuthorityT>(value)); return *this;}
61
63
64 inline const ExemptionCertificate& GetExemptionCertificate() const { return m_exemptionCertificate; }
65 inline bool ExemptionCertificateHasBeenSet() const { return m_exemptionCertificateHasBeenSet; }
66 template<typename ExemptionCertificateT = ExemptionCertificate>
67 void SetExemptionCertificate(ExemptionCertificateT&& value) { m_exemptionCertificateHasBeenSet = true; m_exemptionCertificate = std::forward<ExemptionCertificateT>(value); }
68 template<typename ExemptionCertificateT = ExemptionCertificate>
69 PutTaxExemptionRequest& WithExemptionCertificate(ExemptionCertificateT&& value) { SetExemptionCertificate(std::forward<ExemptionCertificateT>(value)); return *this;}
71
73
76 inline const Aws::String& GetExemptionType() const { return m_exemptionType; }
77 inline bool ExemptionTypeHasBeenSet() const { return m_exemptionTypeHasBeenSet; }
78 template<typename ExemptionTypeT = Aws::String>
79 void SetExemptionType(ExemptionTypeT&& value) { m_exemptionTypeHasBeenSet = true; m_exemptionType = std::forward<ExemptionTypeT>(value); }
80 template<typename ExemptionTypeT = Aws::String>
81 PutTaxExemptionRequest& WithExemptionType(ExemptionTypeT&& value) { SetExemptionType(std::forward<ExemptionTypeT>(value)); return *this;}
83 private:
84
85 Aws::Vector<Aws::String> m_accountIds;
86 bool m_accountIdsHasBeenSet = false;
87
88 Authority m_authority;
89 bool m_authorityHasBeenSet = false;
90
91 ExemptionCertificate m_exemptionCertificate;
92 bool m_exemptionCertificateHasBeenSet = false;
93
94 Aws::String m_exemptionType;
95 bool m_exemptionTypeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace TaxSettings
100} // namespace Aws
void SetExemptionCertificate(ExemptionCertificateT &&value)
AWS_TAXSETTINGS_API PutTaxExemptionRequest()=default
PutTaxExemptionRequest & WithAccountIds(AccountIdsT &&value)
virtual const char * GetServiceRequestName() const override
PutTaxExemptionRequest & WithExemptionType(ExemptionTypeT &&value)
PutTaxExemptionRequest & WithExemptionCertificate(ExemptionCertificateT &&value)
AWS_TAXSETTINGS_API Aws::String SerializePayload() const override
PutTaxExemptionRequest & AddAccountIds(AccountIdsT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
const ExemptionCertificate & GetExemptionCertificate() const
PutTaxExemptionRequest & WithAuthority(AuthorityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector