AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetInvoiceUnitResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/invoicing/Invoicing_EXPORTS.h>
10#include <aws/invoicing/model/InvoiceUnitRule.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Invoicing {
24namespace Model {
26 public:
27 AWS_INVOICING_API GetInvoiceUnitResult() = default;
30
32
36 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
37 template <typename InvoiceUnitArnT = Aws::String>
38 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) {
39 m_invoiceUnitArnHasBeenSet = true;
40 m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value);
41 }
42 template <typename InvoiceUnitArnT = Aws::String>
43 GetInvoiceUnitResult& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
44 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
56 template <typename InvoiceReceiverT = Aws::String>
57 void SetInvoiceReceiver(InvoiceReceiverT&& value) {
58 m_invoiceReceiverHasBeenSet = true;
59 m_invoiceReceiver = std::forward<InvoiceReceiverT>(value);
60 }
61 template <typename InvoiceReceiverT = Aws::String>
62 GetInvoiceUnitResult& WithInvoiceReceiver(InvoiceReceiverT&& value) {
63 SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetName() const { return m_name; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 GetInvoiceUnitResult& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
108 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
109 inline void SetTaxInheritanceDisabled(bool value) {
110 m_taxInheritanceDisabledHasBeenSet = true;
111 m_taxInheritanceDisabled = value;
112 }
115 return *this;
116 }
118
120
121 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
122 template <typename RuleT = InvoiceUnitRule>
123 void SetRule(RuleT&& value) {
124 m_ruleHasBeenSet = true;
125 m_rule = std::forward<RuleT>(value);
126 }
127 template <typename RuleT = InvoiceUnitRule>
129 SetRule(std::forward<RuleT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
139 template <typename LastModifiedT = Aws::Utils::DateTime>
140 void SetLastModified(LastModifiedT&& value) {
141 m_lastModifiedHasBeenSet = true;
142 m_lastModified = std::forward<LastModifiedT>(value);
143 }
144 template <typename LastModifiedT = Aws::Utils::DateTime>
145 GetInvoiceUnitResult& WithLastModified(LastModifiedT&& value) {
146 SetLastModified(std::forward<LastModifiedT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
160 GetInvoiceUnitResult& WithRequestId(RequestIdT&& value) {
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_invoiceUnitArn;
167
168 Aws::String m_invoiceReceiver;
169
170 Aws::String m_name;
171
172 Aws::String m_description;
173
174 bool m_taxInheritanceDisabled{false};
175
176 InvoiceUnitRule m_rule;
177
178 Aws::Utils::DateTime m_lastModified{};
179
180 Aws::String m_requestId;
181 bool m_invoiceUnitArnHasBeenSet = false;
182 bool m_invoiceReceiverHasBeenSet = false;
183 bool m_nameHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_taxInheritanceDisabledHasBeenSet = false;
186 bool m_ruleHasBeenSet = false;
187 bool m_lastModifiedHasBeenSet = false;
188 bool m_requestIdHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Invoicing
193} // namespace Aws
void SetInvoiceUnitArn(InvoiceUnitArnT &&value)
GetInvoiceUnitResult & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
GetInvoiceUnitResult & WithLastModified(LastModifiedT &&value)
GetInvoiceUnitResult & WithRule(RuleT &&value)
GetInvoiceUnitResult & WithDescription(DescriptionT &&value)
AWS_INVOICING_API GetInvoiceUnitResult()=default
GetInvoiceUnitResult & WithTaxInheritanceDisabled(bool value)
AWS_INVOICING_API GetInvoiceUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetInvoiceReceiver(InvoiceReceiverT &&value)
const Aws::Utils::DateTime & GetLastModified() const
GetInvoiceUnitResult & WithInvoiceReceiver(InvoiceReceiverT &&value)
GetInvoiceUnitResult & WithRequestId(RequestIdT &&value)
GetInvoiceUnitResult & WithName(NameT &&value)
AWS_INVOICING_API GetInvoiceUnitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue