AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
LimitSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API LimitSummary() = default;
31 AWS_DEADLINE_API LimitSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFarmId() const { return m_farmId; }
40 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
41 template <typename FarmIdT = Aws::String>
42 void SetFarmId(FarmIdT&& value) {
43 m_farmIdHasBeenSet = true;
44 m_farmId = std::forward<FarmIdT>(value);
45 }
46 template <typename FarmIdT = Aws::String>
47 LimitSummary& WithFarmId(FarmIdT&& value) {
48 SetFarmId(std::forward<FarmIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLimitId() const { return m_limitId; }
58 inline bool LimitIdHasBeenSet() const { return m_limitIdHasBeenSet; }
59 template <typename LimitIdT = Aws::String>
60 void SetLimitId(LimitIdT&& value) {
61 m_limitIdHasBeenSet = true;
62 m_limitId = std::forward<LimitIdT>(value);
63 }
64 template <typename LimitIdT = Aws::String>
65 LimitSummary& WithLimitId(LimitIdT&& value) {
66 SetLimitId(std::forward<LimitIdT>(value));
67 return *this;
68 }
70
72
77 inline int GetCurrentCount() const { return m_currentCount; }
78 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
79 inline void SetCurrentCount(int value) {
80 m_currentCountHasBeenSet = true;
81 m_currentCount = value;
82 }
83 inline LimitSummary& WithCurrentCount(int value) {
84 SetCurrentCount(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 LimitSummary& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
112 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
113 template <typename CreatedByT = Aws::String>
114 void SetCreatedBy(CreatedByT&& value) {
115 m_createdByHasBeenSet = true;
116 m_createdBy = std::forward<CreatedByT>(value);
117 }
118 template <typename CreatedByT = Aws::String>
119 LimitSummary& WithCreatedBy(CreatedByT&& value) {
120 SetCreatedBy(std::forward<CreatedByT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) {
133 m_updatedAtHasBeenSet = true;
134 m_updatedAt = std::forward<UpdatedAtT>(value);
135 }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 LimitSummary& WithUpdatedAt(UpdatedAtT&& value) {
138 SetUpdatedAt(std::forward<UpdatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
148 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
149 template <typename UpdatedByT = Aws::String>
150 void SetUpdatedBy(UpdatedByT&& value) {
151 m_updatedByHasBeenSet = true;
152 m_updatedBy = std::forward<UpdatedByT>(value);
153 }
154 template <typename UpdatedByT = Aws::String>
155 LimitSummary& WithUpdatedBy(UpdatedByT&& value) {
156 SetUpdatedBy(std::forward<UpdatedByT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetDisplayName() const { return m_displayName; }
169 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
170 template <typename DisplayNameT = Aws::String>
171 void SetDisplayName(DisplayNameT&& value) {
172 m_displayNameHasBeenSet = true;
173 m_displayName = std::forward<DisplayNameT>(value);
174 }
175 template <typename DisplayNameT = Aws::String>
176 LimitSummary& WithDisplayName(DisplayNameT&& value) {
177 SetDisplayName(std::forward<DisplayNameT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::String& GetAmountRequirementName() const { return m_amountRequirementName; }
189 inline bool AmountRequirementNameHasBeenSet() const { return m_amountRequirementNameHasBeenSet; }
190 template <typename AmountRequirementNameT = Aws::String>
191 void SetAmountRequirementName(AmountRequirementNameT&& value) {
192 m_amountRequirementNameHasBeenSet = true;
193 m_amountRequirementName = std::forward<AmountRequirementNameT>(value);
194 }
195 template <typename AmountRequirementNameT = Aws::String>
196 LimitSummary& WithAmountRequirementName(AmountRequirementNameT&& value) {
197 SetAmountRequirementName(std::forward<AmountRequirementNameT>(value));
198 return *this;
199 }
201
203
210 inline int GetMaxCount() const { return m_maxCount; }
211 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
212 inline void SetMaxCount(int value) {
213 m_maxCountHasBeenSet = true;
214 m_maxCount = value;
215 }
216 inline LimitSummary& WithMaxCount(int value) {
217 SetMaxCount(value);
218 return *this;
219 }
221 private:
222 Aws::String m_farmId;
223
224 Aws::String m_limitId;
225
226 int m_currentCount{0};
227
228 Aws::Utils::DateTime m_createdAt{};
229
230 Aws::String m_createdBy;
231
232 Aws::Utils::DateTime m_updatedAt{};
233
234 Aws::String m_updatedBy;
235
236 Aws::String m_displayName;
237
238 Aws::String m_amountRequirementName;
239
240 int m_maxCount{0};
241 bool m_farmIdHasBeenSet = false;
242 bool m_limitIdHasBeenSet = false;
243 bool m_currentCountHasBeenSet = false;
244 bool m_createdAtHasBeenSet = false;
245 bool m_createdByHasBeenSet = false;
246 bool m_updatedAtHasBeenSet = false;
247 bool m_updatedByHasBeenSet = false;
248 bool m_displayNameHasBeenSet = false;
249 bool m_amountRequirementNameHasBeenSet = false;
250 bool m_maxCountHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace deadline
255} // namespace Aws
const Aws::String & GetAmountRequirementName() const
AWS_DEADLINE_API LimitSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitSummary & WithAmountRequirementName(AmountRequirementNameT &&value)
LimitSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetLimitId(LimitIdT &&value)
LimitSummary & WithCreatedBy(CreatedByT &&value)
LimitSummary & WithMaxCount(int value)
void SetFarmId(FarmIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
LimitSummary & WithCurrentCount(int value)
const Aws::String & GetFarmId() const
LimitSummary & WithLimitId(LimitIdT &&value)
AWS_DEADLINE_API LimitSummary()=default
void SetUpdatedAt(UpdatedAtT &&value)
LimitSummary & WithFarmId(FarmIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
LimitSummary & WithDisplayName(DisplayNameT &&value)
void SetDisplayName(DisplayNameT &&value)
void SetUpdatedBy(UpdatedByT &&value)
const Aws::String & GetLimitId() const
void SetCreatedBy(CreatedByT &&value)
void SetAmountRequirementName(AmountRequirementNameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDisplayName() const
LimitSummary & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetUpdatedBy() const
AWS_DEADLINE_API LimitSummary(Aws::Utils::Json::JsonView jsonValue)
LimitSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue