AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FreeTier {
20namespace Model {
21
28 public:
29 AWS_FREETIER_API MonetaryAmount() = default;
30 AWS_FREETIER_API MonetaryAmount(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetAmount() const { return m_amount; }
39 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
40 inline void SetAmount(double value) {
41 m_amountHasBeenSet = true;
42 m_amount = value;
43 }
44 inline MonetaryAmount& WithAmount(double value) {
45 SetAmount(value);
46 return *this;
47 }
49
51
54 inline CurrencyCode GetUnit() const { return m_unit; }
55 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
56 inline void SetUnit(CurrencyCode value) {
57 m_unitHasBeenSet = true;
58 m_unit = value;
59 }
61 SetUnit(value);
62 return *this;
63 }
65 private:
66 double m_amount{0.0};
67
69 bool m_amountHasBeenSet = false;
70 bool m_unitHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace FreeTier
75} // 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