AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
CreateInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/invoicing/InvoicingRequest.h>
11#include <aws/invoicing/Invoicing_EXPORTS.h>
12#include <aws/invoicing/model/InvoiceUnitRule.h>
13#include <aws/invoicing/model/ResourceTag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Invoicing {
19namespace Model {
20
24 public:
25 AWS_INVOICING_API CreateInvoiceUnitRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateInvoiceUnit"; }
32
33 AWS_INVOICING_API Aws::String SerializePayload() const override;
34
36
38
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
64 inline bool InvoiceReceiverHasBeenSet() const { return m_invoiceReceiverHasBeenSet; }
65 template <typename InvoiceReceiverT = Aws::String>
66 void SetInvoiceReceiver(InvoiceReceiverT&& value) {
67 m_invoiceReceiverHasBeenSet = true;
68 m_invoiceReceiver = std::forward<InvoiceReceiverT>(value);
69 }
70 template <typename InvoiceReceiverT = Aws::String>
71 CreateInvoiceUnitRequest& WithInvoiceReceiver(InvoiceReceiverT&& value) {
72 SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
101 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
102 inline void SetTaxInheritanceDisabled(bool value) {
103 m_taxInheritanceDisabledHasBeenSet = true;
104 m_taxInheritanceDisabled = value;
105 }
108 return *this;
109 }
111
113
116 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
117 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
118 template <typename RuleT = InvoiceUnitRule>
119 void SetRule(RuleT&& value) {
120 m_ruleHasBeenSet = true;
121 m_rule = std::forward<RuleT>(value);
122 }
123 template <typename RuleT = InvoiceUnitRule>
125 SetRule(std::forward<RuleT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
135 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
136 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
137 void SetResourceTags(ResourceTagsT&& value) {
138 m_resourceTagsHasBeenSet = true;
139 m_resourceTags = std::forward<ResourceTagsT>(value);
140 }
141 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
143 SetResourceTags(std::forward<ResourceTagsT>(value));
144 return *this;
145 }
146 template <typename ResourceTagsT = ResourceTag>
148 m_resourceTagsHasBeenSet = true;
149 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetClientToken() const { return m_clientToken; }
160 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
161 template <typename ClientTokenT = Aws::String>
162 void SetClientToken(ClientTokenT&& value) {
163 m_clientTokenHasBeenSet = true;
164 m_clientToken = std::forward<ClientTokenT>(value);
165 }
166 template <typename ClientTokenT = Aws::String>
168 SetClientToken(std::forward<ClientTokenT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_name;
174
175 Aws::String m_invoiceReceiver;
176
177 Aws::String m_description;
178
179 bool m_taxInheritanceDisabled{false};
180
181 InvoiceUnitRule m_rule;
182
183 Aws::Vector<ResourceTag> m_resourceTags;
184
186 bool m_nameHasBeenSet = false;
187 bool m_invoiceReceiverHasBeenSet = false;
188 bool m_descriptionHasBeenSet = false;
189 bool m_taxInheritanceDisabledHasBeenSet = false;
190 bool m_ruleHasBeenSet = false;
191 bool m_resourceTagsHasBeenSet = false;
192 bool m_clientTokenHasBeenSet = true;
193};
194
195} // namespace Model
196} // namespace Invoicing
197} // namespace Aws
CreateInvoiceUnitRequest & WithInvoiceReceiver(InvoiceReceiverT &&value)
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInvoiceUnitRequest & WithDescription(DescriptionT &&value)
CreateInvoiceUnitRequest & AddResourceTags(ResourceTagsT &&value)
AWS_INVOICING_API CreateInvoiceUnitRequest()=default
CreateInvoiceUnitRequest & WithTaxInheritanceDisabled(bool value)
AWS_INVOICING_API Aws::String SerializePayload() const override
CreateInvoiceUnitRequest & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
virtual const char * GetServiceRequestName() const override
CreateInvoiceUnitRequest & WithName(NameT &&value)
CreateInvoiceUnitRequest & WithClientToken(ClientTokenT &&value)
CreateInvoiceUnitRequest & WithRule(RuleT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector