AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/invoicing/InvoicingRequest.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/InvoiceUnitRule.h>
12#include <aws/invoicing/model/ResourceTag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Invoicing {
18namespace Model {
19
23 public:
24 AWS_INVOICING_API CreateInvoiceUnitRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateInvoiceUnit"; }
31
32 AWS_INVOICING_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
63 inline bool InvoiceReceiverHasBeenSet() const { return m_invoiceReceiverHasBeenSet; }
64 template <typename InvoiceReceiverT = Aws::String>
65 void SetInvoiceReceiver(InvoiceReceiverT&& value) {
66 m_invoiceReceiverHasBeenSet = true;
67 m_invoiceReceiver = std::forward<InvoiceReceiverT>(value);
68 }
69 template <typename InvoiceReceiverT = Aws::String>
70 CreateInvoiceUnitRequest& WithInvoiceReceiver(InvoiceReceiverT&& value) {
71 SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
100 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
101 inline void SetTaxInheritanceDisabled(bool value) {
102 m_taxInheritanceDisabledHasBeenSet = true;
103 m_taxInheritanceDisabled = value;
104 }
107 return *this;
108 }
110
112
115 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
116 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
117 template <typename RuleT = InvoiceUnitRule>
118 void SetRule(RuleT&& value) {
119 m_ruleHasBeenSet = true;
120 m_rule = std::forward<RuleT>(value);
121 }
122 template <typename RuleT = InvoiceUnitRule>
124 SetRule(std::forward<RuleT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
134 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
135 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
136 void SetResourceTags(ResourceTagsT&& value) {
137 m_resourceTagsHasBeenSet = true;
138 m_resourceTags = std::forward<ResourceTagsT>(value);
139 }
140 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
142 SetResourceTags(std::forward<ResourceTagsT>(value));
143 return *this;
144 }
145 template <typename ResourceTagsT = ResourceTag>
147 m_resourceTagsHasBeenSet = true;
148 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
155 Aws::String m_invoiceReceiver;
156
157 Aws::String m_description;
158
159 bool m_taxInheritanceDisabled{false};
160
161 InvoiceUnitRule m_rule;
162
163 Aws::Vector<ResourceTag> m_resourceTags;
164 bool m_nameHasBeenSet = false;
165 bool m_invoiceReceiverHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_taxInheritanceDisabledHasBeenSet = false;
168 bool m_ruleHasBeenSet = false;
169 bool m_resourceTagsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Invoicing
174} // 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 & WithRule(RuleT &&value)
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