AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InvoiceUnit.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 {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Invoicing {
22namespace Model {
23
33 public:
34 AWS_INVOICING_API InvoiceUnit() = default;
35 AWS_INVOICING_API InvoiceUnit(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INVOICING_API InvoiceUnit& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
45 inline bool InvoiceUnitArnHasBeenSet() const { return m_invoiceUnitArnHasBeenSet; }
46 template <typename InvoiceUnitArnT = Aws::String>
47 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) {
48 m_invoiceUnitArnHasBeenSet = true;
49 m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value);
50 }
51 template <typename InvoiceUnitArnT = Aws::String>
52 InvoiceUnit& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
53 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
54 return *this;
55 }
57
59
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 InvoiceUnit& WithInvoiceReceiver(InvoiceReceiverT&& value) {
71 SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 InvoiceUnit& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 InvoiceUnit& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
118 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
119 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
120 inline void SetTaxInheritanceDisabled(bool value) {
121 m_taxInheritanceDisabledHasBeenSet = true;
122 m_taxInheritanceDisabled = value;
123 }
126 return *this;
127 }
129
131
135 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
136 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
137 template <typename RuleT = InvoiceUnitRule>
138 void SetRule(RuleT&& value) {
139 m_ruleHasBeenSet = true;
140 m_rule = std::forward<RuleT>(value);
141 }
142 template <typename RuleT = InvoiceUnitRule>
143 InvoiceUnit& WithRule(RuleT&& value) {
144 SetRule(std::forward<RuleT>(value));
145 return *this;
146 }
148
150
156 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
157 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
158 template <typename LastModifiedT = Aws::Utils::DateTime>
159 void SetLastModified(LastModifiedT&& value) {
160 m_lastModifiedHasBeenSet = true;
161 m_lastModified = std::forward<LastModifiedT>(value);
162 }
163 template <typename LastModifiedT = Aws::Utils::DateTime>
164 InvoiceUnit& WithLastModified(LastModifiedT&& value) {
165 SetLastModified(std::forward<LastModifiedT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_invoiceUnitArn;
171
172 Aws::String m_invoiceReceiver;
173
174 Aws::String m_name;
175
176 Aws::String m_description;
177
178 bool m_taxInheritanceDisabled{false};
179
180 InvoiceUnitRule m_rule;
181
182 Aws::Utils::DateTime m_lastModified{};
183 bool m_invoiceUnitArnHasBeenSet = false;
184 bool m_invoiceReceiverHasBeenSet = false;
185 bool m_nameHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_taxInheritanceDisabledHasBeenSet = false;
188 bool m_ruleHasBeenSet = false;
189 bool m_lastModifiedHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Invoicing
194} // namespace Aws
void SetTaxInheritanceDisabled(bool value)
AWS_INVOICING_API InvoiceUnit(Aws::Utils::Json::JsonView jsonValue)
InvoiceUnit & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
Definition InvoiceUnit.h:52
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetDescription() const
Definition InvoiceUnit.h:99
AWS_INVOICING_API InvoiceUnit()=default
void SetInvoiceUnitArn(InvoiceUnitArnT &&value)
Definition InvoiceUnit.h:47
const InvoiceUnitRule & GetRule() const
const Aws::String & GetInvoiceUnitArn() const
Definition InvoiceUnit.h:44
InvoiceUnit & WithLastModified(LastModifiedT &&value)
void SetInvoiceReceiver(InvoiceReceiverT &&value)
Definition InvoiceUnit.h:65
InvoiceUnit & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
InvoiceUnit & WithTaxInheritanceDisabled(bool value)
const Aws::String & GetInvoiceReceiver() const
Definition InvoiceUnit.h:62
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
InvoiceUnit & WithInvoiceReceiver(InvoiceReceiverT &&value)
Definition InvoiceUnit.h:70
InvoiceUnit & WithRule(RuleT &&value)
InvoiceUnit & WithName(NameT &&value)
Definition InvoiceUnit.h:88
AWS_INVOICING_API InvoiceUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition InvoiceUnit.h:80
const Aws::Utils::DateTime & GetLastModified() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue