AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetInvoiceUnitResult.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{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Invoicing
26{
27namespace Model
28{
30 {
31 public:
32 AWS_INVOICING_API GetInvoiceUnitResult() = default;
35
36
38
42 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
43 template<typename InvoiceUnitArnT = Aws::String>
44 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) { m_invoiceUnitArnHasBeenSet = true; m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value); }
45 template<typename InvoiceUnitArnT = Aws::String>
46 GetInvoiceUnitResult& WithInvoiceUnitArn(InvoiceUnitArnT&& value) { SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value)); return *this;}
48
50
55 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
56 template<typename InvoiceReceiverT = Aws::String>
57 void SetInvoiceReceiver(InvoiceReceiverT&& value) { m_invoiceReceiverHasBeenSet = true; m_invoiceReceiver = std::forward<InvoiceReceiverT>(value); }
58 template<typename InvoiceReceiverT = Aws::String>
59 GetInvoiceUnitResult& WithInvoiceReceiver(InvoiceReceiverT&& value) { SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value)); return *this;}
61
63
67 inline const Aws::String& GetName() const { return m_name; }
68 template<typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 GetInvoiceUnitResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 GetInvoiceUnitResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
90 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
91 inline void SetTaxInheritanceDisabled(bool value) { m_taxInheritanceDisabledHasBeenSet = true; m_taxInheritanceDisabled = value; }
94
96
97 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
98 template<typename RuleT = InvoiceUnitRule>
99 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
100 template<typename RuleT = InvoiceUnitRule>
101 GetInvoiceUnitResult& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
109 template<typename LastModifiedT = Aws::Utils::DateTime>
110 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
111 template<typename LastModifiedT = Aws::Utils::DateTime>
112 GetInvoiceUnitResult& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template<typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
120 template<typename RequestIdT = Aws::String>
121 GetInvoiceUnitResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
123 private:
124
125 Aws::String m_invoiceUnitArn;
126 bool m_invoiceUnitArnHasBeenSet = false;
127
128 Aws::String m_invoiceReceiver;
129 bool m_invoiceReceiverHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 bool m_taxInheritanceDisabled{false};
138 bool m_taxInheritanceDisabledHasBeenSet = false;
139
140 InvoiceUnitRule m_rule;
141 bool m_ruleHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastModified{};
144 bool m_lastModifiedHasBeenSet = false;
145
146 Aws::String m_requestId;
147 bool m_requestIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Invoicing
152} // 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