AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
MonetaryAmount.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/CurrencyCode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DeviceFarm {
20namespace Model {
21
29 public:
30 AWS_DEVICEFARM_API MonetaryAmount() = default;
31 AWS_DEVICEFARM_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DEVICEFARM_API MonetaryAmount& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetAmount() const { return m_amount; }
40 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
41 inline void SetAmount(double value) {
42 m_amountHasBeenSet = true;
43 m_amount = value;
44 }
45 inline MonetaryAmount& WithAmount(double value) {
46 SetAmount(value);
47 return *this;
48 }
50
52
56 inline CurrencyCode GetCurrencyCode() const { return m_currencyCode; }
57 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
58 inline void SetCurrencyCode(CurrencyCode value) {
59 m_currencyCodeHasBeenSet = true;
60 m_currencyCode = value;
61 }
63 SetCurrencyCode(value);
64 return *this;
65 }
67 private:
68 double m_amount{0.0};
69
70 CurrencyCode m_currencyCode{CurrencyCode::NOT_SET};
71 bool m_amountHasBeenSet = false;
72 bool m_currencyCodeHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace DeviceFarm
77} // namespace Aws
AWS_DEVICEFARM_API MonetaryAmount()=default
void SetCurrencyCode(CurrencyCode value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API MonetaryAmount & operator=(Aws::Utils::Json::JsonView jsonValue)
MonetaryAmount & WithCurrencyCode(CurrencyCode value)
MonetaryAmount & WithAmount(double value)
Aws::Utils::Json::JsonValue JsonValue