AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CurrencyCode& GetCurrencyCode() const{ return m_currencyCode; }
57 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
58 inline void SetCurrencyCode(const CurrencyCode& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
59 inline void SetCurrencyCode(CurrencyCode&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
60 inline MonetaryAmount& WithCurrencyCode(const CurrencyCode& value) { SetCurrencyCode(value); return *this;}
61 inline MonetaryAmount& WithCurrencyCode(CurrencyCode&& value) { SetCurrencyCode(std::move(value)); return *this;}
63 private:
64
65 double m_amount;
66 bool m_amountHasBeenSet = false;
67
68 CurrencyCode m_currencyCode;
69 bool m_currencyCodeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace DeviceFarm
74} // namespace Aws
void SetCurrencyCode(const CurrencyCode &value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue)
const CurrencyCode & GetCurrencyCode() const
AWS_DEVICEFARM_API MonetaryAmount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrencyCode(CurrencyCode &&value)
MonetaryAmount & WithCurrencyCode(const CurrencyCode &value)
MonetaryAmount & WithAmount(double value)
MonetaryAmount & WithCurrencyCode(CurrencyCode &&value)
Aws::Utils::Json::JsonValue JsonValue