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/freetier/FreeTier_EXPORTS.h>
8#include <aws/freetier/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 FreeTier
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_FREETIER_API MonetaryAmount() = default;
35 AWS_FREETIER_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetAmount() const { return m_amount; }
45 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
46 inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
47 inline MonetaryAmount& WithAmount(double value) { SetAmount(value); return *this;}
49
51
54 inline CurrencyCode GetUnit() const { return m_unit; }
55 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
56 inline void SetUnit(CurrencyCode value) { m_unitHasBeenSet = true; m_unit = value; }
57 inline MonetaryAmount& WithUnit(CurrencyCode value) { SetUnit(value); return *this;}
59 private:
60
61 double m_amount{0.0};
62 bool m_amountHasBeenSet = false;
63
65 bool m_unitHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace FreeTier
70} // namespace Aws
void SetUnit(CurrencyCode value)
AWS_FREETIER_API MonetaryAmount()=default
AWS_FREETIER_API MonetaryAmount & operator=(Aws::Utils::Json::JsonView jsonValue)
MonetaryAmount & WithAmount(double value)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
MonetaryAmount & WithUnit(CurrencyCode value)
AWS_FREETIER_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue