AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InvoiceCurrencyAmount.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/invoicing/Invoicing_EXPORTS.h>
9#include <aws/invoicing/model/AmountBreakdown.h>
10#include <aws/invoicing/model/CurrencyExchangeDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Invoicing {
22namespace Model {
23
31 public:
32 AWS_INVOICING_API InvoiceCurrencyAmount() = default;
35 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
42 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
43 template <typename TotalAmountT = Aws::String>
44 void SetTotalAmount(TotalAmountT&& value) {
45 m_totalAmountHasBeenSet = true;
46 m_totalAmount = std::forward<TotalAmountT>(value);
47 }
48 template <typename TotalAmountT = Aws::String>
49 InvoiceCurrencyAmount& WithTotalAmount(TotalAmountT&& value) {
50 SetTotalAmount(std::forward<TotalAmountT>(value));
51 return *this;
52 }
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) {
63 m_totalAmountBeforeTaxHasBeenSet = true;
64 m_totalAmountBeforeTax = std::forward<TotalAmountBeforeTaxT>(value);
65 }
66 template <typename TotalAmountBeforeTaxT = Aws::String>
67 InvoiceCurrencyAmount& WithTotalAmountBeforeTax(TotalAmountBeforeTaxT&& value) {
68 SetTotalAmountBeforeTax(std::forward<TotalAmountBeforeTaxT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
78 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
79 template <typename CurrencyCodeT = Aws::String>
80 void SetCurrencyCode(CurrencyCodeT&& value) {
81 m_currencyCodeHasBeenSet = true;
82 m_currencyCode = std::forward<CurrencyCodeT>(value);
83 }
84 template <typename CurrencyCodeT = Aws::String>
85 InvoiceCurrencyAmount& WithCurrencyCode(CurrencyCodeT&& value) {
86 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
87 return *this;
88 }
90
92
95 inline const AmountBreakdown& GetAmountBreakdown() const { return m_amountBreakdown; }
96 inline bool AmountBreakdownHasBeenSet() const { return m_amountBreakdownHasBeenSet; }
97 template <typename AmountBreakdownT = AmountBreakdown>
98 void SetAmountBreakdown(AmountBreakdownT&& value) {
99 m_amountBreakdownHasBeenSet = true;
100 m_amountBreakdown = std::forward<AmountBreakdownT>(value);
101 }
102 template <typename AmountBreakdownT = AmountBreakdown>
103 InvoiceCurrencyAmount& WithAmountBreakdown(AmountBreakdownT&& value) {
104 SetAmountBreakdown(std::forward<AmountBreakdownT>(value));
105 return *this;
106 }
108
110
113 inline const CurrencyExchangeDetails& GetCurrencyExchangeDetails() const { return m_currencyExchangeDetails; }
114 inline bool CurrencyExchangeDetailsHasBeenSet() const { return m_currencyExchangeDetailsHasBeenSet; }
115 template <typename CurrencyExchangeDetailsT = CurrencyExchangeDetails>
116 void SetCurrencyExchangeDetails(CurrencyExchangeDetailsT&& value) {
117 m_currencyExchangeDetailsHasBeenSet = true;
118 m_currencyExchangeDetails = std::forward<CurrencyExchangeDetailsT>(value);
119 }
120 template <typename CurrencyExchangeDetailsT = CurrencyExchangeDetails>
121 InvoiceCurrencyAmount& WithCurrencyExchangeDetails(CurrencyExchangeDetailsT&& value) {
122 SetCurrencyExchangeDetails(std::forward<CurrencyExchangeDetailsT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_totalAmount;
128
129 Aws::String m_totalAmountBeforeTax;
130
131 Aws::String m_currencyCode;
132
133 AmountBreakdown m_amountBreakdown;
134
135 CurrencyExchangeDetails m_currencyExchangeDetails;
136 bool m_totalAmountHasBeenSet = false;
137 bool m_totalAmountBeforeTaxHasBeenSet = false;
138 bool m_currencyCodeHasBeenSet = false;
139 bool m_amountBreakdownHasBeenSet = false;
140 bool m_currencyExchangeDetailsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Invoicing
145} // 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