AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DEVICEFARM_API MonetaryAmount() = default;
36 AWS_DEVICEFARM_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API MonetaryAmount& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetAmount() const { return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
48 inline MonetaryAmount& WithAmount(double value) { SetAmount(value); return *this;}
50
52
56 inline CurrencyCode GetCurrencyCode() const { return m_currencyCode; }
57 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
58 inline void SetCurrencyCode(CurrencyCode value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
59 inline MonetaryAmount& WithCurrencyCode(CurrencyCode value) { SetCurrencyCode(value); return *this;}
61 private:
62
63 double m_amount{0.0};
64 bool m_amountHasBeenSet = false;
65
66 CurrencyCode m_currencyCode{CurrencyCode::NOT_SET};
67 bool m_currencyCodeHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace DeviceFarm
72} // 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