AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
UpdateInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/invoicing/InvoicingRequest.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/InvoiceUnitRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Invoicing {
17namespace Model {
18
22 public:
23 AWS_INVOICING_API UpdateInvoiceUnitRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateInvoiceUnit"; }
30
31 AWS_INVOICING_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
41 inline bool InvoiceUnitArnHasBeenSet() const { return m_invoiceUnitArnHasBeenSet; }
42 template <typename InvoiceUnitArnT = Aws::String>
43 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) {
44 m_invoiceUnitArnHasBeenSet = true;
45 m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value);
46 }
47 template <typename InvoiceUnitArnT = Aws::String>
48 UpdateInvoiceUnitRequest& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
49 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
79 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
80 inline void SetTaxInheritanceDisabled(bool value) {
81 m_taxInheritanceDisabledHasBeenSet = true;
82 m_taxInheritanceDisabled = value;
83 }
86 return *this;
87 }
89
91
94 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
95 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
96 template <typename RuleT = InvoiceUnitRule>
97 void SetRule(RuleT&& value) {
98 m_ruleHasBeenSet = true;
99 m_rule = std::forward<RuleT>(value);
100 }
101 template <typename RuleT = InvoiceUnitRule>
103 SetRule(std::forward<RuleT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetClientToken() const { return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 template <typename ClientTokenT = Aws::String>
116 void SetClientToken(ClientTokenT&& value) {
117 m_clientTokenHasBeenSet = true;
118 m_clientToken = std::forward<ClientTokenT>(value);
119 }
120 template <typename ClientTokenT = Aws::String>
122 SetClientToken(std::forward<ClientTokenT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_invoiceUnitArn;
128
129 Aws::String m_description;
130
131 bool m_taxInheritanceDisabled{false};
132
133 InvoiceUnitRule m_rule;
134
136 bool m_invoiceUnitArnHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_taxInheritanceDisabledHasBeenSet = false;
139 bool m_ruleHasBeenSet = false;
140 bool m_clientTokenHasBeenSet = true;
141};
142
143} // namespace Model
144} // namespace Invoicing
145} // namespace Aws
AWS_INVOICING_API Aws::String SerializePayload() const override
UpdateInvoiceUnitRequest & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
UpdateInvoiceUnitRequest & WithRule(RuleT &&value)
UpdateInvoiceUnitRequest & WithDescription(DescriptionT &&value)
UpdateInvoiceUnitRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInvoiceUnitRequest & WithTaxInheritanceDisabled(bool value)
AWS_INVOICING_API UpdateInvoiceUnitRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String