AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetInvoiceUnitResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/InvoiceUnitRule.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Invoicing {
25namespace Model {
27 public:
28 AWS_INVOICING_API GetInvoiceUnitResult() = default;
31
33
37 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
38 template <typename InvoiceUnitArnT = Aws::String>
39 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) {
40 m_invoiceUnitArnHasBeenSet = true;
41 m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value);
42 }
43 template <typename InvoiceUnitArnT = Aws::String>
44 GetInvoiceUnitResult& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
45 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
57 template <typename InvoiceReceiverT = Aws::String>
58 void SetInvoiceReceiver(InvoiceReceiverT&& value) {
59 m_invoiceReceiverHasBeenSet = true;
60 m_invoiceReceiver = std::forward<InvoiceReceiverT>(value);
61 }
62 template <typename InvoiceReceiverT = Aws::String>
63 GetInvoiceUnitResult& WithInvoiceReceiver(InvoiceReceiverT&& value) {
64 SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 GetInvoiceUnitResult& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
109 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
110 inline void SetTaxInheritanceDisabled(bool value) {
111 m_taxInheritanceDisabledHasBeenSet = true;
112 m_taxInheritanceDisabled = value;
113 }
116 return *this;
117 }
119
121
122 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
123 template <typename RuleT = InvoiceUnitRule>
124 void SetRule(RuleT&& value) {
125 m_ruleHasBeenSet = true;
126 m_rule = std::forward<RuleT>(value);
127 }
128 template <typename RuleT = InvoiceUnitRule>
130 SetRule(std::forward<RuleT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
140 template <typename LastModifiedT = Aws::Utils::DateTime>
141 void SetLastModified(LastModifiedT&& value) {
142 m_lastModifiedHasBeenSet = true;
143 m_lastModified = std::forward<LastModifiedT>(value);
144 }
145 template <typename LastModifiedT = Aws::Utils::DateTime>
146 GetInvoiceUnitResult& WithLastModified(LastModifiedT&& value) {
147 SetLastModified(std::forward<LastModifiedT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
161 GetInvoiceUnitResult& WithRequestId(RequestIdT&& value) {
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::String m_invoiceUnitArn;
170
171 Aws::String m_invoiceReceiver;
172
173 Aws::String m_name;
174
175 Aws::String m_description;
176
177 bool m_taxInheritanceDisabled{false};
178
179 InvoiceUnitRule m_rule;
180
181 Aws::Utils::DateTime m_lastModified{};
182
183 Aws::String m_requestId;
184 Aws::Http::HttpResponseCode m_HttpResponseCode;
185 bool m_invoiceUnitArnHasBeenSet = false;
186 bool m_invoiceReceiverHasBeenSet = false;
187 bool m_nameHasBeenSet = false;
188 bool m_descriptionHasBeenSet = false;
189 bool m_taxInheritanceDisabledHasBeenSet = false;
190 bool m_ruleHasBeenSet = false;
191 bool m_lastModifiedHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Invoicing
197} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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