AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AccessBudgetDetails.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/AccessBudgetType.h>
9#include <aws/cleanrooms/model/AutoRefreshMode.h>
10#include <aws/core/utils/DateTime.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CleanRooms {
22namespace Model {
23
31 public:
32 AWS_CLEANROOMS_API AccessBudgetDetails() = default;
33 AWS_CLEANROOMS_API AccessBudgetDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
42 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
43 template <typename StartTimeT = Aws::Utils::DateTime>
44 void SetStartTime(StartTimeT&& value) {
45 m_startTimeHasBeenSet = true;
46 m_startTime = std::forward<StartTimeT>(value);
47 }
48 template <typename StartTimeT = Aws::Utils::DateTime>
49 AccessBudgetDetails& WithStartTime(StartTimeT&& value) {
50 SetStartTime(std::forward<StartTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 template <typename EndTimeT = Aws::Utils::DateTime>
62 void SetEndTime(EndTimeT&& value) {
63 m_endTimeHasBeenSet = true;
64 m_endTime = std::forward<EndTimeT>(value);
65 }
66 template <typename EndTimeT = Aws::Utils::DateTime>
67 AccessBudgetDetails& WithEndTime(EndTimeT&& value) {
68 SetEndTime(std::forward<EndTimeT>(value));
69 return *this;
70 }
72
74
77 inline int GetRemainingBudget() const { return m_remainingBudget; }
78 inline bool RemainingBudgetHasBeenSet() const { return m_remainingBudgetHasBeenSet; }
79 inline void SetRemainingBudget(int value) {
80 m_remainingBudgetHasBeenSet = true;
81 m_remainingBudget = value;
82 }
84 SetRemainingBudget(value);
85 return *this;
86 }
88
90
93 inline int GetBudget() const { return m_budget; }
94 inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; }
95 inline void SetBudget(int value) {
96 m_budgetHasBeenSet = true;
97 m_budget = value;
98 }
99 inline AccessBudgetDetails& WithBudget(int value) {
100 SetBudget(value);
101 return *this;
102 }
104
106
116 inline AccessBudgetType GetBudgetType() const { return m_budgetType; }
117 inline bool BudgetTypeHasBeenSet() const { return m_budgetTypeHasBeenSet; }
118 inline void SetBudgetType(AccessBudgetType value) {
119 m_budgetTypeHasBeenSet = true;
120 m_budgetType = value;
121 }
123 SetBudgetType(value);
124 return *this;
125 }
127
129
137 inline AutoRefreshMode GetAutoRefresh() const { return m_autoRefresh; }
138 inline bool AutoRefreshHasBeenSet() const { return m_autoRefreshHasBeenSet; }
139 inline void SetAutoRefresh(AutoRefreshMode value) {
140 m_autoRefreshHasBeenSet = true;
141 m_autoRefresh = value;
142 }
144 SetAutoRefresh(value);
145 return *this;
146 }
148 private:
149 Aws::Utils::DateTime m_startTime{};
150
151 Aws::Utils::DateTime m_endTime{};
152
153 int m_remainingBudget{0};
154
155 int m_budget{0};
156
158
160 bool m_startTimeHasBeenSet = false;
161 bool m_endTimeHasBeenSet = false;
162 bool m_remainingBudgetHasBeenSet = false;
163 bool m_budgetHasBeenSet = false;
164 bool m_budgetTypeHasBeenSet = false;
165 bool m_autoRefreshHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace CleanRooms
170} // namespace Aws
AccessBudgetDetails & WithRemainingBudget(int value)
AccessBudgetDetails & WithBudget(int value)
AccessBudgetDetails & WithBudgetType(AccessBudgetType value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetEndTime() const
AccessBudgetDetails & WithStartTime(StartTimeT &&value)
AWS_CLEANROOMS_API AccessBudgetDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API AccessBudgetDetails()=default
AccessBudgetDetails & WithEndTime(EndTimeT &&value)
AWS_CLEANROOMS_API AccessBudgetDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessBudgetDetails & WithAutoRefresh(AutoRefreshMode value)
Aws::Utils::Json::JsonValue JsonValue