AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
InvoiceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/BillType.h>
12#include <aws/invoicing/model/BillingPeriod.h>
13#include <aws/invoicing/model/EinvoiceDeliveryStatus.h>
14#include <aws/invoicing/model/Entity.h>
15#include <aws/invoicing/model/InvoiceCurrencyAmount.h>
16#include <aws/invoicing/model/InvoiceFrequency.h>
17#include <aws/invoicing/model/InvoiceType.h>
18#include <aws/invoicing/model/ReceiverRole.h>
19#include <aws/invoicing/model/TaxAuthorityStatus.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Invoicing {
31namespace Model {
32
39 public:
40 AWS_INVOICING_API InvoiceSummary() = default;
41 AWS_INVOICING_API InvoiceSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
53 m_accountIdHasBeenSet = true;
54 m_accountId = std::forward<AccountIdT>(value);
55 }
56 template <typename AccountIdT = Aws::String>
57 InvoiceSummary& WithAccountId(AccountIdT&& value) {
58 SetAccountId(std::forward<AccountIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetInvoiceId() const { return m_invoiceId; }
68 inline bool InvoiceIdHasBeenSet() const { return m_invoiceIdHasBeenSet; }
69 template <typename InvoiceIdT = Aws::String>
70 void SetInvoiceId(InvoiceIdT&& value) {
71 m_invoiceIdHasBeenSet = true;
72 m_invoiceId = std::forward<InvoiceIdT>(value);
73 }
74 template <typename InvoiceIdT = Aws::String>
75 InvoiceSummary& WithInvoiceId(InvoiceIdT&& value) {
76 SetInvoiceId(std::forward<InvoiceIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetIssuedDate() const { return m_issuedDate; }
86 inline bool IssuedDateHasBeenSet() const { return m_issuedDateHasBeenSet; }
87 template <typename IssuedDateT = Aws::Utils::DateTime>
88 void SetIssuedDate(IssuedDateT&& value) {
89 m_issuedDateHasBeenSet = true;
90 m_issuedDate = std::forward<IssuedDateT>(value);
91 }
92 template <typename IssuedDateT = Aws::Utils::DateTime>
93 InvoiceSummary& WithIssuedDate(IssuedDateT&& value) {
94 SetIssuedDate(std::forward<IssuedDateT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetDueDate() const { return m_dueDate; }
104 inline bool DueDateHasBeenSet() const { return m_dueDateHasBeenSet; }
105 template <typename DueDateT = Aws::Utils::DateTime>
106 void SetDueDate(DueDateT&& value) {
107 m_dueDateHasBeenSet = true;
108 m_dueDate = std::forward<DueDateT>(value);
109 }
110 template <typename DueDateT = Aws::Utils::DateTime>
111 InvoiceSummary& WithDueDate(DueDateT&& value) {
112 SetDueDate(std::forward<DueDateT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Vector<Aws::String>& GetBillSourceAccounts() const { return m_billSourceAccounts; }
123 inline bool BillSourceAccountsHasBeenSet() const { return m_billSourceAccountsHasBeenSet; }
124 template <typename BillSourceAccountsT = Aws::Vector<Aws::String>>
125 void SetBillSourceAccounts(BillSourceAccountsT&& value) {
126 m_billSourceAccountsHasBeenSet = true;
127 m_billSourceAccounts = std::forward<BillSourceAccountsT>(value);
128 }
129 template <typename BillSourceAccountsT = Aws::Vector<Aws::String>>
130 InvoiceSummary& WithBillSourceAccounts(BillSourceAccountsT&& value) {
131 SetBillSourceAccounts(std::forward<BillSourceAccountsT>(value));
132 return *this;
133 }
134 template <typename BillSourceAccountsT = Aws::String>
135 InvoiceSummary& AddBillSourceAccounts(BillSourceAccountsT&& value) {
136 m_billSourceAccountsHasBeenSet = true;
137 m_billSourceAccounts.emplace_back(std::forward<BillSourceAccountsT>(value));
138 return *this;
139 }
141
143
146 inline int GetBillSourceAccountsTotalCount() const { return m_billSourceAccountsTotalCount; }
147 inline bool BillSourceAccountsTotalCountHasBeenSet() const { return m_billSourceAccountsTotalCountHasBeenSet; }
148 inline void SetBillSourceAccountsTotalCount(int value) {
149 m_billSourceAccountsTotalCountHasBeenSet = true;
150 m_billSourceAccountsTotalCount = value;
151 }
154 return *this;
155 }
157
159
162 inline ReceiverRole GetReceiverRole() const { return m_receiverRole; }
163 inline bool ReceiverRoleHasBeenSet() const { return m_receiverRoleHasBeenSet; }
164 inline void SetReceiverRole(ReceiverRole value) {
165 m_receiverRoleHasBeenSet = true;
166 m_receiverRole = value;
167 }
169 SetReceiverRole(value);
170 return *this;
171 }
173
175
178 inline const Entity& GetEntity() const { return m_entity; }
179 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
180 template <typename EntityT = Entity>
181 void SetEntity(EntityT&& value) {
182 m_entityHasBeenSet = true;
183 m_entity = std::forward<EntityT>(value);
184 }
185 template <typename EntityT = Entity>
186 InvoiceSummary& WithEntity(EntityT&& value) {
187 SetEntity(std::forward<EntityT>(value));
188 return *this;
189 }
191
193
196 inline const BillingPeriod& GetBillingPeriod() const { return m_billingPeriod; }
197 inline bool BillingPeriodHasBeenSet() const { return m_billingPeriodHasBeenSet; }
198 template <typename BillingPeriodT = BillingPeriod>
199 void SetBillingPeriod(BillingPeriodT&& value) {
200 m_billingPeriodHasBeenSet = true;
201 m_billingPeriod = std::forward<BillingPeriodT>(value);
202 }
203 template <typename BillingPeriodT = BillingPeriod>
204 InvoiceSummary& WithBillingPeriod(BillingPeriodT&& value) {
205 SetBillingPeriod(std::forward<BillingPeriodT>(value));
206 return *this;
207 }
209
211
214 inline InvoiceFrequency GetInvoiceFrequency() const { return m_invoiceFrequency; }
215 inline bool InvoiceFrequencyHasBeenSet() const { return m_invoiceFrequencyHasBeenSet; }
217 m_invoiceFrequencyHasBeenSet = true;
218 m_invoiceFrequency = value;
219 }
221 SetInvoiceFrequency(value);
222 return *this;
223 }
225
227
230 inline BillType GetBillType() const { return m_billType; }
231 inline bool BillTypeHasBeenSet() const { return m_billTypeHasBeenSet; }
232 inline void SetBillType(BillType value) {
233 m_billTypeHasBeenSet = true;
234 m_billType = value;
235 }
237 SetBillType(value);
238 return *this;
239 }
241
243
246 inline InvoiceType GetInvoiceType() const { return m_invoiceType; }
247 inline bool InvoiceTypeHasBeenSet() const { return m_invoiceTypeHasBeenSet; }
248 inline void SetInvoiceType(InvoiceType value) {
249 m_invoiceTypeHasBeenSet = true;
250 m_invoiceType = value;
251 }
253 SetInvoiceType(value);
254 return *this;
255 }
257
259
263 inline const Aws::String& GetCommercialInvoiceId() const { return m_commercialInvoiceId; }
264 inline bool CommercialInvoiceIdHasBeenSet() const { return m_commercialInvoiceIdHasBeenSet; }
265 template <typename CommercialInvoiceIdT = Aws::String>
266 void SetCommercialInvoiceId(CommercialInvoiceIdT&& value) {
267 m_commercialInvoiceIdHasBeenSet = true;
268 m_commercialInvoiceId = std::forward<CommercialInvoiceIdT>(value);
269 }
270 template <typename CommercialInvoiceIdT = Aws::String>
271 InvoiceSummary& WithCommercialInvoiceId(CommercialInvoiceIdT&& value) {
272 SetCommercialInvoiceId(std::forward<CommercialInvoiceIdT>(value));
273 return *this;
274 }
276
278
281 inline const Aws::String& GetOriginalInvoiceId() const { return m_originalInvoiceId; }
282 inline bool OriginalInvoiceIdHasBeenSet() const { return m_originalInvoiceIdHasBeenSet; }
283 template <typename OriginalInvoiceIdT = Aws::String>
284 void SetOriginalInvoiceId(OriginalInvoiceIdT&& value) {
285 m_originalInvoiceIdHasBeenSet = true;
286 m_originalInvoiceId = std::forward<OriginalInvoiceIdT>(value);
287 }
288 template <typename OriginalInvoiceIdT = Aws::String>
289 InvoiceSummary& WithOriginalInvoiceId(OriginalInvoiceIdT&& value) {
290 SetOriginalInvoiceId(std::forward<OriginalInvoiceIdT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::String& GetPurchaseOrderNumber() const { return m_purchaseOrderNumber; }
300 inline bool PurchaseOrderNumberHasBeenSet() const { return m_purchaseOrderNumberHasBeenSet; }
301 template <typename PurchaseOrderNumberT = Aws::String>
302 void SetPurchaseOrderNumber(PurchaseOrderNumberT&& value) {
303 m_purchaseOrderNumberHasBeenSet = true;
304 m_purchaseOrderNumber = std::forward<PurchaseOrderNumberT>(value);
305 }
306 template <typename PurchaseOrderNumberT = Aws::String>
307 InvoiceSummary& WithPurchaseOrderNumber(PurchaseOrderNumberT&& value) {
308 SetPurchaseOrderNumber(std::forward<PurchaseOrderNumberT>(value));
309 return *this;
310 }
312
314
317 inline EinvoiceDeliveryStatus GetEinvoiceDeliveryStatus() const { return m_einvoiceDeliveryStatus; }
318 inline bool EinvoiceDeliveryStatusHasBeenSet() const { return m_einvoiceDeliveryStatusHasBeenSet; }
320 m_einvoiceDeliveryStatusHasBeenSet = true;
321 m_einvoiceDeliveryStatus = value;
322 }
325 return *this;
326 }
328
330
334 inline TaxAuthorityStatus GetTaxAuthorityStatus() const { return m_taxAuthorityStatus; }
335 inline bool TaxAuthorityStatusHasBeenSet() const { return m_taxAuthorityStatusHasBeenSet; }
337 m_taxAuthorityStatusHasBeenSet = true;
338 m_taxAuthorityStatus = value;
339 }
342 return *this;
343 }
345
347
350 inline const InvoiceCurrencyAmount& GetBaseCurrencyAmount() const { return m_baseCurrencyAmount; }
351 inline bool BaseCurrencyAmountHasBeenSet() const { return m_baseCurrencyAmountHasBeenSet; }
352 template <typename BaseCurrencyAmountT = InvoiceCurrencyAmount>
353 void SetBaseCurrencyAmount(BaseCurrencyAmountT&& value) {
354 m_baseCurrencyAmountHasBeenSet = true;
355 m_baseCurrencyAmount = std::forward<BaseCurrencyAmountT>(value);
356 }
357 template <typename BaseCurrencyAmountT = InvoiceCurrencyAmount>
358 InvoiceSummary& WithBaseCurrencyAmount(BaseCurrencyAmountT&& value) {
359 SetBaseCurrencyAmount(std::forward<BaseCurrencyAmountT>(value));
360 return *this;
361 }
363
365
368 inline const InvoiceCurrencyAmount& GetTaxCurrencyAmount() const { return m_taxCurrencyAmount; }
369 inline bool TaxCurrencyAmountHasBeenSet() const { return m_taxCurrencyAmountHasBeenSet; }
370 template <typename TaxCurrencyAmountT = InvoiceCurrencyAmount>
371 void SetTaxCurrencyAmount(TaxCurrencyAmountT&& value) {
372 m_taxCurrencyAmountHasBeenSet = true;
373 m_taxCurrencyAmount = std::forward<TaxCurrencyAmountT>(value);
374 }
375 template <typename TaxCurrencyAmountT = InvoiceCurrencyAmount>
376 InvoiceSummary& WithTaxCurrencyAmount(TaxCurrencyAmountT&& value) {
377 SetTaxCurrencyAmount(std::forward<TaxCurrencyAmountT>(value));
378 return *this;
379 }
381
383
386 inline const InvoiceCurrencyAmount& GetPaymentCurrencyAmount() const { return m_paymentCurrencyAmount; }
387 inline bool PaymentCurrencyAmountHasBeenSet() const { return m_paymentCurrencyAmountHasBeenSet; }
388 template <typename PaymentCurrencyAmountT = InvoiceCurrencyAmount>
389 void SetPaymentCurrencyAmount(PaymentCurrencyAmountT&& value) {
390 m_paymentCurrencyAmountHasBeenSet = true;
391 m_paymentCurrencyAmount = std::forward<PaymentCurrencyAmountT>(value);
392 }
393 template <typename PaymentCurrencyAmountT = InvoiceCurrencyAmount>
394 InvoiceSummary& WithPaymentCurrencyAmount(PaymentCurrencyAmountT&& value) {
395 SetPaymentCurrencyAmount(std::forward<PaymentCurrencyAmountT>(value));
396 return *this;
397 }
399 private:
400 Aws::String m_accountId;
401
402 Aws::String m_invoiceId;
403
404 Aws::Utils::DateTime m_issuedDate{};
405
406 Aws::Utils::DateTime m_dueDate{};
407
408 Aws::Vector<Aws::String> m_billSourceAccounts;
409
410 int m_billSourceAccountsTotalCount{0};
411
412 ReceiverRole m_receiverRole{ReceiverRole::NOT_SET};
413
414 Entity m_entity;
415
416 BillingPeriod m_billingPeriod;
417
419
420 BillType m_billType{BillType::NOT_SET};
421
422 InvoiceType m_invoiceType{InvoiceType::NOT_SET};
423
424 Aws::String m_commercialInvoiceId;
425
426 Aws::String m_originalInvoiceId;
427
428 Aws::String m_purchaseOrderNumber;
429
431
433
434 InvoiceCurrencyAmount m_baseCurrencyAmount;
435
436 InvoiceCurrencyAmount m_taxCurrencyAmount;
437
438 InvoiceCurrencyAmount m_paymentCurrencyAmount;
439 bool m_accountIdHasBeenSet = false;
440 bool m_invoiceIdHasBeenSet = false;
441 bool m_issuedDateHasBeenSet = false;
442 bool m_dueDateHasBeenSet = false;
443 bool m_billSourceAccountsHasBeenSet = false;
444 bool m_billSourceAccountsTotalCountHasBeenSet = false;
445 bool m_receiverRoleHasBeenSet = false;
446 bool m_entityHasBeenSet = false;
447 bool m_billingPeriodHasBeenSet = false;
448 bool m_invoiceFrequencyHasBeenSet = false;
449 bool m_billTypeHasBeenSet = false;
450 bool m_invoiceTypeHasBeenSet = false;
451 bool m_commercialInvoiceIdHasBeenSet = false;
452 bool m_originalInvoiceIdHasBeenSet = false;
453 bool m_purchaseOrderNumberHasBeenSet = false;
454 bool m_einvoiceDeliveryStatusHasBeenSet = false;
455 bool m_taxAuthorityStatusHasBeenSet = false;
456 bool m_baseCurrencyAmountHasBeenSet = false;
457 bool m_taxCurrencyAmountHasBeenSet = false;
458 bool m_paymentCurrencyAmountHasBeenSet = false;
459};
460
461} // namespace Model
462} // namespace Invoicing
463} // 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)
const Aws::Vector< Aws::String > & GetBillSourceAccounts() const
void SetBillSourceAccounts(BillSourceAccountsT &&value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCommercialInvoiceId(CommercialInvoiceIdT &&value)
InvoiceSummary & WithPurchaseOrderNumber(PurchaseOrderNumberT &&value)
InvoiceSummary & WithPaymentCurrencyAmount(PaymentCurrencyAmountT &&value)
InvoiceFrequency GetInvoiceFrequency() const
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 SetEinvoiceDeliveryStatus(EinvoiceDeliveryStatus value)
InvoiceSummary & WithInvoiceFrequency(InvoiceFrequency value)
InvoiceSummary & WithBillSourceAccountsTotalCount(int value)
void SetInvoiceId(InvoiceIdT &&value)
InvoiceSummary & WithReceiverRole(ReceiverRole value)
void SetReceiverRole(ReceiverRole value)
InvoiceSummary & WithOriginalInvoiceId(OriginalInvoiceIdT &&value)
InvoiceSummary & WithBillingPeriod(BillingPeriodT &&value)
EinvoiceDeliveryStatus GetEinvoiceDeliveryStatus() const
void SetInvoiceFrequency(InvoiceFrequency value)
const InvoiceCurrencyAmount & GetTaxCurrencyAmount() const
InvoiceSummary & AddBillSourceAccounts(BillSourceAccountsT &&value)
const Aws::Utils::DateTime & GetIssuedDate() const
TaxAuthorityStatus GetTaxAuthorityStatus() const
void SetIssuedDate(IssuedDateT &&value)
const InvoiceCurrencyAmount & GetPaymentCurrencyAmount() const
void SetPaymentCurrencyAmount(PaymentCurrencyAmountT &&value)
const Aws::String & GetCommercialInvoiceId() const
InvoiceSummary & WithTaxAuthorityStatus(TaxAuthorityStatus value)
const Aws::String & GetAccountId() const
InvoiceSummary & WithBillSourceAccounts(BillSourceAccountsT &&value)
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)
InvoiceSummary & WithEinvoiceDeliveryStatus(EinvoiceDeliveryStatus value)
void SetOriginalInvoiceId(OriginalInvoiceIdT &&value)
InvoiceSummary & WithCommercialInvoiceId(CommercialInvoiceIdT &&value)
InvoiceSummary & WithBillType(BillType value)
const BillingPeriod & GetBillingPeriod() const
void SetTaxAuthorityStatus(TaxAuthorityStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue