AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
USD.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
25class USD {
26 public:
27 AWS_SAGEMAKER_API USD() = default;
28 AWS_SAGEMAKER_API USD(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SAGEMAKER_API USD& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetDollars() const { return m_dollars; }
37 inline bool DollarsHasBeenSet() const { return m_dollarsHasBeenSet; }
38 inline void SetDollars(int value) {
39 m_dollarsHasBeenSet = true;
40 m_dollars = value;
41 }
42 inline USD& WithDollars(int value) {
43 SetDollars(value);
44 return *this;
45 }
47
49
52 inline int GetCents() const { return m_cents; }
53 inline bool CentsHasBeenSet() const { return m_centsHasBeenSet; }
54 inline void SetCents(int value) {
55 m_centsHasBeenSet = true;
56 m_cents = value;
57 }
58 inline USD& WithCents(int value) {
59 SetCents(value);
60 return *this;
61 }
63
65
68 inline int GetTenthFractionsOfACent() const { return m_tenthFractionsOfACent; }
69 inline bool TenthFractionsOfACentHasBeenSet() const { return m_tenthFractionsOfACentHasBeenSet; }
70 inline void SetTenthFractionsOfACent(int value) {
71 m_tenthFractionsOfACentHasBeenSet = true;
72 m_tenthFractionsOfACent = value;
73 }
74 inline USD& WithTenthFractionsOfACent(int value) {
76 return *this;
77 }
79 private:
80 int m_dollars{0};
81
82 int m_cents{0};
83
84 int m_tenthFractionsOfACent{0};
85 bool m_dollarsHasBeenSet = false;
86 bool m_centsHasBeenSet = false;
87 bool m_tenthFractionsOfACentHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace SageMaker
92} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
USD & WithCents(int value)
Definition USD.h:58
void SetDollars(int value)
Definition USD.h:38
int GetCents() const
Definition USD.h:52
AWS_SAGEMAKER_API USD(Aws::Utils::Json::JsonView jsonValue)
USD & WithDollars(int value)
Definition USD.h:42
void SetCents(int value)
Definition USD.h:54
void SetTenthFractionsOfACent(int value)
Definition USD.h:70
AWS_SAGEMAKER_API USD()=default
bool TenthFractionsOfACentHasBeenSet() const
Definition USD.h:69
AWS_SAGEMAKER_API USD & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetDollars() const
Definition USD.h:36
bool CentsHasBeenSet() const
Definition USD.h:53
bool DollarsHasBeenSet() const
Definition USD.h:37
int GetTenthFractionsOfACent() const
Definition USD.h:68
USD & WithTenthFractionsOfACent(int value)
Definition USD.h:74
Aws::Utils::Json::JsonValue JsonValue