AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
Amount.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Billing {
20namespace Model {
21
29class Amount {
30 public:
31 AWS_BILLING_API Amount() = default;
32 AWS_BILLING_API Amount(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BILLING_API Amount& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
42 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
43 template <typename CurrencyCodeT = Aws::String>
44 void SetCurrencyCode(CurrencyCodeT&& value) {
45 m_currencyCodeHasBeenSet = true;
46 m_currencyCode = std::forward<CurrencyCodeT>(value);
47 }
48 template <typename CurrencyCodeT = Aws::String>
49 Amount& WithCurrencyCode(CurrencyCodeT&& value) {
50 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCurrencyAmount() const { return m_currencyAmount; }
61 inline bool CurrencyAmountHasBeenSet() const { return m_currencyAmountHasBeenSet; }
62 template <typename CurrencyAmountT = Aws::String>
63 void SetCurrencyAmount(CurrencyAmountT&& value) {
64 m_currencyAmountHasBeenSet = true;
65 m_currencyAmount = std::forward<CurrencyAmountT>(value);
66 }
67 template <typename CurrencyAmountT = Aws::String>
68 Amount& WithCurrencyAmount(CurrencyAmountT&& value) {
69 SetCurrencyAmount(std::forward<CurrencyAmountT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_currencyCode;
75
76 Aws::String m_currencyAmount;
77 bool m_currencyCodeHasBeenSet = false;
78 bool m_currencyAmountHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Billing
83} // namespace Aws
void SetCurrencyCode(CurrencyCodeT &&value)
Definition Amount.h:44
Amount & WithCurrencyAmount(CurrencyAmountT &&value)
Definition Amount.h:68
const Aws::String & GetCurrencyAmount() const
Definition Amount.h:60
AWS_BILLING_API Amount(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCurrencyCode() const
Definition Amount.h:41
AWS_BILLING_API Amount & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BILLING_API Amount()=default
bool CurrencyAmountHasBeenSet() const
Definition Amount.h:61
bool CurrencyCodeHasBeenSet() const
Definition Amount.h:42
void SetCurrencyAmount(CurrencyAmountT &&value)
Definition Amount.h:63
Amount & WithCurrencyCode(CurrencyCodeT &&value)
Definition Amount.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue