AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvoiceCurrencyAmount.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/AmountBreakdown.h>
10#include <aws/invoicing/model/CurrencyExchangeDetails.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
35 {
36 public:
37 AWS_INVOICING_API InvoiceCurrencyAmount() = default;
40 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
48 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
49 template<typename TotalAmountT = Aws::String>
50 void SetTotalAmount(TotalAmountT&& value) { m_totalAmountHasBeenSet = true; m_totalAmount = std::forward<TotalAmountT>(value); }
51 template<typename TotalAmountT = Aws::String>
52 InvoiceCurrencyAmount& WithTotalAmount(TotalAmountT&& value) { SetTotalAmount(std::forward<TotalAmountT>(value)); return *this;}
54
56
59 inline const Aws::String& GetTotalAmountBeforeTax() const { return m_totalAmountBeforeTax; }
60 inline bool TotalAmountBeforeTaxHasBeenSet() const { return m_totalAmountBeforeTaxHasBeenSet; }
61 template<typename TotalAmountBeforeTaxT = Aws::String>
62 void SetTotalAmountBeforeTax(TotalAmountBeforeTaxT&& value) { m_totalAmountBeforeTaxHasBeenSet = true; m_totalAmountBeforeTax = std::forward<TotalAmountBeforeTaxT>(value); }
63 template<typename TotalAmountBeforeTaxT = Aws::String>
64 InvoiceCurrencyAmount& WithTotalAmountBeforeTax(TotalAmountBeforeTaxT&& value) { SetTotalAmountBeforeTax(std::forward<TotalAmountBeforeTaxT>(value)); return *this;}
66
68
71 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
72 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
73 template<typename CurrencyCodeT = Aws::String>
74 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
75 template<typename CurrencyCodeT = Aws::String>
76 InvoiceCurrencyAmount& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
78
80
83 inline const AmountBreakdown& GetAmountBreakdown() const { return m_amountBreakdown; }
84 inline bool AmountBreakdownHasBeenSet() const { return m_amountBreakdownHasBeenSet; }
85 template<typename AmountBreakdownT = AmountBreakdown>
86 void SetAmountBreakdown(AmountBreakdownT&& value) { m_amountBreakdownHasBeenSet = true; m_amountBreakdown = std::forward<AmountBreakdownT>(value); }
87 template<typename AmountBreakdownT = AmountBreakdown>
88 InvoiceCurrencyAmount& WithAmountBreakdown(AmountBreakdownT&& value) { SetAmountBreakdown(std::forward<AmountBreakdownT>(value)); return *this;}
90
92
95 inline const CurrencyExchangeDetails& GetCurrencyExchangeDetails() const { return m_currencyExchangeDetails; }
96 inline bool CurrencyExchangeDetailsHasBeenSet() const { return m_currencyExchangeDetailsHasBeenSet; }
97 template<typename CurrencyExchangeDetailsT = CurrencyExchangeDetails>
98 void SetCurrencyExchangeDetails(CurrencyExchangeDetailsT&& value) { m_currencyExchangeDetailsHasBeenSet = true; m_currencyExchangeDetails = std::forward<CurrencyExchangeDetailsT>(value); }
99 template<typename CurrencyExchangeDetailsT = CurrencyExchangeDetails>
100 InvoiceCurrencyAmount& WithCurrencyExchangeDetails(CurrencyExchangeDetailsT&& value) { SetCurrencyExchangeDetails(std::forward<CurrencyExchangeDetailsT>(value)); return *this;}
102 private:
103
104 Aws::String m_totalAmount;
105 bool m_totalAmountHasBeenSet = false;
106
107 Aws::String m_totalAmountBeforeTax;
108 bool m_totalAmountBeforeTaxHasBeenSet = false;
109
110 Aws::String m_currencyCode;
111 bool m_currencyCodeHasBeenSet = false;
112
113 AmountBreakdown m_amountBreakdown;
114 bool m_amountBreakdownHasBeenSet = false;
115
116 CurrencyExchangeDetails m_currencyExchangeDetails;
117 bool m_currencyExchangeDetailsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Invoicing
122} // namespace Aws
void SetTotalAmountBeforeTax(TotalAmountBeforeTaxT &&value)
AWS_INVOICING_API InvoiceCurrencyAmount & operator=(Aws::Utils::Json::JsonView jsonValue)
InvoiceCurrencyAmount & WithAmountBreakdown(AmountBreakdownT &&value)
const CurrencyExchangeDetails & GetCurrencyExchangeDetails() const
InvoiceCurrencyAmount & WithTotalAmount(TotalAmountT &&value)
AWS_INVOICING_API InvoiceCurrencyAmount(Aws::Utils::Json::JsonView jsonValue)
InvoiceCurrencyAmount & WithCurrencyCode(CurrencyCodeT &&value)
AWS_INVOICING_API InvoiceCurrencyAmount()=default
InvoiceCurrencyAmount & WithCurrencyExchangeDetails(CurrencyExchangeDetailsT &&value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
InvoiceCurrencyAmount & WithTotalAmountBeforeTax(TotalAmountBeforeTaxT &&value)
void SetCurrencyExchangeDetails(CurrencyExchangeDetailsT &&value)
const AmountBreakdown & GetAmountBreakdown() const
void SetAmountBreakdown(AmountBreakdownT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue