AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvoiceUnit.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/invoicing/model/InvoiceUnitRule.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Invoicing
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_INVOICING_API InvoiceUnit() = default;
40 AWS_INVOICING_API InvoiceUnit(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INVOICING_API InvoiceUnit& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
51 inline bool InvoiceUnitArnHasBeenSet() const { return m_invoiceUnitArnHasBeenSet; }
52 template<typename InvoiceUnitArnT = Aws::String>
53 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) { m_invoiceUnitArnHasBeenSet = true; m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value); }
54 template<typename InvoiceUnitArnT = Aws::String>
55 InvoiceUnit& WithInvoiceUnitArn(InvoiceUnitArnT&& value) { SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value)); return *this;}
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) { m_invoiceReceiverHasBeenSet = true; m_invoiceReceiver = std::forward<InvoiceReceiverT>(value); }
66 template<typename InvoiceReceiverT = Aws::String>
67 InvoiceUnit& WithInvoiceReceiver(InvoiceReceiverT&& value) { SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 InvoiceUnit& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 InvoiceUnit& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
100 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
101 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
102 inline void SetTaxInheritanceDisabled(bool value) { m_taxInheritanceDisabledHasBeenSet = true; m_taxInheritanceDisabled = value; }
103 inline InvoiceUnit& WithTaxInheritanceDisabled(bool value) { SetTaxInheritanceDisabled(value); return *this;}
105
107
111 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
112 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
113 template<typename RuleT = InvoiceUnitRule>
114 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
115 template<typename RuleT = InvoiceUnitRule>
116 InvoiceUnit& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
118
120
126 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
127 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
128 template<typename LastModifiedT = Aws::Utils::DateTime>
129 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
130 template<typename LastModifiedT = Aws::Utils::DateTime>
131 InvoiceUnit& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
133 private:
134
135 Aws::String m_invoiceUnitArn;
136 bool m_invoiceUnitArnHasBeenSet = false;
137
138 Aws::String m_invoiceReceiver;
139 bool m_invoiceReceiverHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 bool m_taxInheritanceDisabled{false};
148 bool m_taxInheritanceDisabledHasBeenSet = false;
149
150 InvoiceUnitRule m_rule;
151 bool m_ruleHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastModified{};
154 bool m_lastModifiedHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Invoicing
159} // namespace Aws
void SetTaxInheritanceDisabled(bool value)
AWS_INVOICING_API InvoiceUnit(Aws::Utils::Json::JsonView jsonValue)
InvoiceUnit & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
Definition InvoiceUnit.h:55
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetDescription() const
Definition InvoiceUnit.h:87
AWS_INVOICING_API InvoiceUnit()=default
void SetInvoiceUnitArn(InvoiceUnitArnT &&value)
Definition InvoiceUnit.h:53
const InvoiceUnitRule & GetRule() const
const Aws::String & GetInvoiceUnitArn() const
Definition InvoiceUnit.h:50
InvoiceUnit & WithLastModified(LastModifiedT &&value)
void SetInvoiceReceiver(InvoiceReceiverT &&value)
Definition InvoiceUnit.h:65
InvoiceUnit & WithDescription(DescriptionT &&value)
Definition InvoiceUnit.h:92
void SetDescription(DescriptionT &&value)
Definition InvoiceUnit.h:90
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:67
InvoiceUnit & WithRule(RuleT &&value)
InvoiceUnit & WithName(NameT &&value)
Definition InvoiceUnit.h:79
AWS_INVOICING_API InvoiceUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition InvoiceUnit.h:74
const Aws::Utils::DateTime & GetLastModified() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue