AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CurrencyAmount.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payments/Payments_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Payments {
20namespace Model {
21
29 public:
30 AWS_PAYMENTS_API CurrencyAmount() = default;
31 AWS_PAYMENTS_API CurrencyAmount(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::String>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::String>
49 CurrencyAmount& WithValue(ValueT&& value) {
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCurrency() const { return m_currency; }
61 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
62 template <typename CurrencyT = Aws::String>
63 void SetCurrency(CurrencyT&& value) {
64 m_currencyHasBeenSet = true;
65 m_currency = std::forward<CurrencyT>(value);
66 }
67 template <typename CurrencyT = Aws::String>
68 CurrencyAmount& WithCurrency(CurrencyT&& value) {
69 SetCurrency(std::forward<CurrencyT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_value;
75
76 Aws::String m_currency;
77 bool m_valueHasBeenSet = false;
78 bool m_currencyHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Payments
83} // namespace Aws
const Aws::String & GetCurrency() const
AWS_PAYMENTS_API CurrencyAmount & operator=(Aws::Utils::Json::JsonView jsonValue)
CurrencyAmount & WithCurrency(CurrencyT &&value)
CurrencyAmount & WithValue(ValueT &&value)
AWS_PAYMENTS_API CurrencyAmount(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTS_API CurrencyAmount()=default
void SetCurrency(CurrencyT &&value)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue