AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvoiceSummary.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/invoicing/model/Entity.h>
11#include <aws/invoicing/model/BillingPeriod.h>
12#include <aws/invoicing/model/InvoiceType.h>
13#include <aws/invoicing/model/InvoiceCurrencyAmount.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Invoicing
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_INVOICING_API InvoiceSummary() = default;
40 AWS_INVOICING_API InvoiceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template<typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
53 template<typename AccountIdT = Aws::String>
54 InvoiceSummary& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetInvoiceId() const { return m_invoiceId; }
62 inline bool InvoiceIdHasBeenSet() const { return m_invoiceIdHasBeenSet; }
63 template<typename InvoiceIdT = Aws::String>
64 void SetInvoiceId(InvoiceIdT&& value) { m_invoiceIdHasBeenSet = true; m_invoiceId = std::forward<InvoiceIdT>(value); }
65 template<typename InvoiceIdT = Aws::String>
66 InvoiceSummary& WithInvoiceId(InvoiceIdT&& value) { SetInvoiceId(std::forward<InvoiceIdT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetIssuedDate() const { return m_issuedDate; }
74 inline bool IssuedDateHasBeenSet() const { return m_issuedDateHasBeenSet; }
75 template<typename IssuedDateT = Aws::Utils::DateTime>
76 void SetIssuedDate(IssuedDateT&& value) { m_issuedDateHasBeenSet = true; m_issuedDate = std::forward<IssuedDateT>(value); }
77 template<typename IssuedDateT = Aws::Utils::DateTime>
78 InvoiceSummary& WithIssuedDate(IssuedDateT&& value) { SetIssuedDate(std::forward<IssuedDateT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetDueDate() const { return m_dueDate; }
86 inline bool DueDateHasBeenSet() const { return m_dueDateHasBeenSet; }
87 template<typename DueDateT = Aws::Utils::DateTime>
88 void SetDueDate(DueDateT&& value) { m_dueDateHasBeenSet = true; m_dueDate = std::forward<DueDateT>(value); }
89 template<typename DueDateT = Aws::Utils::DateTime>
90 InvoiceSummary& WithDueDate(DueDateT&& value) { SetDueDate(std::forward<DueDateT>(value)); return *this;}
92
94
97 inline const Entity& GetEntity() const { return m_entity; }
98 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
99 template<typename EntityT = Entity>
100 void SetEntity(EntityT&& value) { m_entityHasBeenSet = true; m_entity = std::forward<EntityT>(value); }
101 template<typename EntityT = Entity>
102 InvoiceSummary& WithEntity(EntityT&& value) { SetEntity(std::forward<EntityT>(value)); return *this;}
104
106
109 inline const BillingPeriod& GetBillingPeriod() const { return m_billingPeriod; }
110 inline bool BillingPeriodHasBeenSet() const { return m_billingPeriodHasBeenSet; }
111 template<typename BillingPeriodT = BillingPeriod>
112 void SetBillingPeriod(BillingPeriodT&& value) { m_billingPeriodHasBeenSet = true; m_billingPeriod = std::forward<BillingPeriodT>(value); }
113 template<typename BillingPeriodT = BillingPeriod>
114 InvoiceSummary& WithBillingPeriod(BillingPeriodT&& value) { SetBillingPeriod(std::forward<BillingPeriodT>(value)); return *this;}
116
118
121 inline InvoiceType GetInvoiceType() const { return m_invoiceType; }
122 inline bool InvoiceTypeHasBeenSet() const { return m_invoiceTypeHasBeenSet; }
123 inline void SetInvoiceType(InvoiceType value) { m_invoiceTypeHasBeenSet = true; m_invoiceType = value; }
124 inline InvoiceSummary& WithInvoiceType(InvoiceType value) { SetInvoiceType(value); return *this;}
126
128
131 inline const Aws::String& GetOriginalInvoiceId() const { return m_originalInvoiceId; }
132 inline bool OriginalInvoiceIdHasBeenSet() const { return m_originalInvoiceIdHasBeenSet; }
133 template<typename OriginalInvoiceIdT = Aws::String>
134 void SetOriginalInvoiceId(OriginalInvoiceIdT&& value) { m_originalInvoiceIdHasBeenSet = true; m_originalInvoiceId = std::forward<OriginalInvoiceIdT>(value); }
135 template<typename OriginalInvoiceIdT = Aws::String>
136 InvoiceSummary& WithOriginalInvoiceId(OriginalInvoiceIdT&& value) { SetOriginalInvoiceId(std::forward<OriginalInvoiceIdT>(value)); return *this;}
138
140
143 inline const Aws::String& GetPurchaseOrderNumber() const { return m_purchaseOrderNumber; }
144 inline bool PurchaseOrderNumberHasBeenSet() const { return m_purchaseOrderNumberHasBeenSet; }
145 template<typename PurchaseOrderNumberT = Aws::String>
146 void SetPurchaseOrderNumber(PurchaseOrderNumberT&& value) { m_purchaseOrderNumberHasBeenSet = true; m_purchaseOrderNumber = std::forward<PurchaseOrderNumberT>(value); }
147 template<typename PurchaseOrderNumberT = Aws::String>
148 InvoiceSummary& WithPurchaseOrderNumber(PurchaseOrderNumberT&& value) { SetPurchaseOrderNumber(std::forward<PurchaseOrderNumberT>(value)); return *this;}
150
152
155 inline const InvoiceCurrencyAmount& GetBaseCurrencyAmount() const { return m_baseCurrencyAmount; }
156 inline bool BaseCurrencyAmountHasBeenSet() const { return m_baseCurrencyAmountHasBeenSet; }
157 template<typename BaseCurrencyAmountT = InvoiceCurrencyAmount>
158 void SetBaseCurrencyAmount(BaseCurrencyAmountT&& value) { m_baseCurrencyAmountHasBeenSet = true; m_baseCurrencyAmount = std::forward<BaseCurrencyAmountT>(value); }
159 template<typename BaseCurrencyAmountT = InvoiceCurrencyAmount>
160 InvoiceSummary& WithBaseCurrencyAmount(BaseCurrencyAmountT&& value) { SetBaseCurrencyAmount(std::forward<BaseCurrencyAmountT>(value)); return *this;}
162
164
167 inline const InvoiceCurrencyAmount& GetTaxCurrencyAmount() const { return m_taxCurrencyAmount; }
168 inline bool TaxCurrencyAmountHasBeenSet() const { return m_taxCurrencyAmountHasBeenSet; }
169 template<typename TaxCurrencyAmountT = InvoiceCurrencyAmount>
170 void SetTaxCurrencyAmount(TaxCurrencyAmountT&& value) { m_taxCurrencyAmountHasBeenSet = true; m_taxCurrencyAmount = std::forward<TaxCurrencyAmountT>(value); }
171 template<typename TaxCurrencyAmountT = InvoiceCurrencyAmount>
172 InvoiceSummary& WithTaxCurrencyAmount(TaxCurrencyAmountT&& value) { SetTaxCurrencyAmount(std::forward<TaxCurrencyAmountT>(value)); return *this;}
174
176
179 inline const InvoiceCurrencyAmount& GetPaymentCurrencyAmount() const { return m_paymentCurrencyAmount; }
180 inline bool PaymentCurrencyAmountHasBeenSet() const { return m_paymentCurrencyAmountHasBeenSet; }
181 template<typename PaymentCurrencyAmountT = InvoiceCurrencyAmount>
182 void SetPaymentCurrencyAmount(PaymentCurrencyAmountT&& value) { m_paymentCurrencyAmountHasBeenSet = true; m_paymentCurrencyAmount = std::forward<PaymentCurrencyAmountT>(value); }
183 template<typename PaymentCurrencyAmountT = InvoiceCurrencyAmount>
184 InvoiceSummary& WithPaymentCurrencyAmount(PaymentCurrencyAmountT&& value) { SetPaymentCurrencyAmount(std::forward<PaymentCurrencyAmountT>(value)); return *this;}
186 private:
187
188 Aws::String m_accountId;
189 bool m_accountIdHasBeenSet = false;
190
191 Aws::String m_invoiceId;
192 bool m_invoiceIdHasBeenSet = false;
193
194 Aws::Utils::DateTime m_issuedDate{};
195 bool m_issuedDateHasBeenSet = false;
196
197 Aws::Utils::DateTime m_dueDate{};
198 bool m_dueDateHasBeenSet = false;
199
200 Entity m_entity;
201 bool m_entityHasBeenSet = false;
202
203 BillingPeriod m_billingPeriod;
204 bool m_billingPeriodHasBeenSet = false;
205
206 InvoiceType m_invoiceType{InvoiceType::NOT_SET};
207 bool m_invoiceTypeHasBeenSet = false;
208
209 Aws::String m_originalInvoiceId;
210 bool m_originalInvoiceIdHasBeenSet = false;
211
212 Aws::String m_purchaseOrderNumber;
213 bool m_purchaseOrderNumberHasBeenSet = false;
214
215 InvoiceCurrencyAmount m_baseCurrencyAmount;
216 bool m_baseCurrencyAmountHasBeenSet = false;
217
218 InvoiceCurrencyAmount m_taxCurrencyAmount;
219 bool m_taxCurrencyAmountHasBeenSet = false;
220
221 InvoiceCurrencyAmount m_paymentCurrencyAmount;
222 bool m_paymentCurrencyAmountHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace Invoicing
227} // namespace Aws
AWS_INVOICING_API InvoiceSummary(Aws::Utils::Json::JsonView jsonValue)
const InvoiceCurrencyAmount & GetBaseCurrencyAmount() const
void SetPurchaseOrderNumber(PurchaseOrderNumberT &&value)
InvoiceSummary & WithIssuedDate(IssuedDateT &&value)
void SetInvoiceType(InvoiceType value)
void SetBillingPeriod(BillingPeriodT &&value)
void SetAccountId(AccountIdT &&value)
InvoiceSummary & WithBaseCurrencyAmount(BaseCurrencyAmountT &&value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
InvoiceSummary & WithPurchaseOrderNumber(PurchaseOrderNumberT &&value)
InvoiceSummary & WithPaymentCurrencyAmount(PaymentCurrencyAmountT &&value)
AWS_INVOICING_API InvoiceSummary()=default
InvoiceSummary & WithInvoiceType(InvoiceType value)
void SetTaxCurrencyAmount(TaxCurrencyAmountT &&value)
InvoiceSummary & WithDueDate(DueDateT &&value)
const Aws::String & GetInvoiceId() const
const Aws::Utils::DateTime & GetDueDate() const
InvoiceSummary & WithTaxCurrencyAmount(TaxCurrencyAmountT &&value)
void SetInvoiceId(InvoiceIdT &&value)
InvoiceSummary & WithOriginalInvoiceId(OriginalInvoiceIdT &&value)
InvoiceSummary & WithBillingPeriod(BillingPeriodT &&value)
const InvoiceCurrencyAmount & GetTaxCurrencyAmount() const
const Aws::Utils::DateTime & GetIssuedDate() const
void SetIssuedDate(IssuedDateT &&value)
const InvoiceCurrencyAmount & GetPaymentCurrencyAmount() const
void SetPaymentCurrencyAmount(PaymentCurrencyAmountT &&value)
const Aws::String & GetAccountId() const
InvoiceSummary & WithEntity(EntityT &&value)
InvoiceSummary & WithAccountId(AccountIdT &&value)
const Aws::String & GetPurchaseOrderNumber() const
void SetBaseCurrencyAmount(BaseCurrencyAmountT &&value)
const Aws::String & GetOriginalInvoiceId() const
AWS_INVOICING_API InvoiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InvoiceSummary & WithInvoiceId(InvoiceIdT &&value)
void SetOriginalInvoiceId(OriginalInvoiceIdT &&value)
const BillingPeriod & GetBillingPeriod() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue