AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
42 inline const Aws::String& GetDisplayName() const { return m_displayName; }
43 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
44 template <typename DisplayNameT = Aws::String>
45 void SetDisplayName(DisplayNameT&& value) {
46 m_displayNameHasBeenSet = true;
47 m_displayName = std::forward<DisplayNameT>(value);
48 }
49 template <typename DisplayNameT = Aws::String>
50 LimitSummary& WithDisplayName(DisplayNameT&& value) {
51 SetDisplayName(std::forward<DisplayNameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetAmountRequirementName() const { return m_amountRequirementName; }
63 inline bool AmountRequirementNameHasBeenSet() const { return m_amountRequirementNameHasBeenSet; }
64 template <typename AmountRequirementNameT = Aws::String>
65 void SetAmountRequirementName(AmountRequirementNameT&& value) {
66 m_amountRequirementNameHasBeenSet = true;
67 m_amountRequirementName = std::forward<AmountRequirementNameT>(value);
68 }
69 template <typename AmountRequirementNameT = Aws::String>
70 LimitSummary& WithAmountRequirementName(AmountRequirementNameT&& value) {
71 SetAmountRequirementName(std::forward<AmountRequirementNameT>(value));
72 return *this;
73 }
75
77
84 inline int GetMaxCount() const { return m_maxCount; }
85 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
86 inline void SetMaxCount(int value) {
87 m_maxCountHasBeenSet = true;
88 m_maxCount = value;
89 }
90 inline LimitSummary& WithMaxCount(int value) {
91 SetMaxCount(value);
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
101 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 void SetCreatedAt(CreatedAtT&& value) {
104 m_createdAtHasBeenSet = true;
105 m_createdAt = std::forward<CreatedAtT>(value);
106 }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 LimitSummary& WithCreatedAt(CreatedAtT&& value) {
109 SetCreatedAt(std::forward<CreatedAtT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
119 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
120 template <typename CreatedByT = Aws::String>
121 void SetCreatedBy(CreatedByT&& value) {
122 m_createdByHasBeenSet = true;
123 m_createdBy = std::forward<CreatedByT>(value);
124 }
125 template <typename CreatedByT = Aws::String>
126 LimitSummary& WithCreatedBy(CreatedByT&& value) {
127 SetCreatedBy(std::forward<CreatedByT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
137 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
138 template <typename UpdatedAtT = Aws::Utils::DateTime>
139 void SetUpdatedAt(UpdatedAtT&& value) {
140 m_updatedAtHasBeenSet = true;
141 m_updatedAt = std::forward<UpdatedAtT>(value);
142 }
143 template <typename UpdatedAtT = Aws::Utils::DateTime>
144 LimitSummary& WithUpdatedAt(UpdatedAtT&& value) {
145 SetUpdatedAt(std::forward<UpdatedAtT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
155 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
156 template <typename UpdatedByT = Aws::String>
157 void SetUpdatedBy(UpdatedByT&& value) {
158 m_updatedByHasBeenSet = true;
159 m_updatedBy = std::forward<UpdatedByT>(value);
160 }
161 template <typename UpdatedByT = Aws::String>
162 LimitSummary& WithUpdatedBy(UpdatedByT&& value) {
163 SetUpdatedBy(std::forward<UpdatedByT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetFarmId() const { return m_farmId; }
173 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
174 template <typename FarmIdT = Aws::String>
175 void SetFarmId(FarmIdT&& value) {
176 m_farmIdHasBeenSet = true;
177 m_farmId = std::forward<FarmIdT>(value);
178 }
179 template <typename FarmIdT = Aws::String>
180 LimitSummary& WithFarmId(FarmIdT&& value) {
181 SetFarmId(std::forward<FarmIdT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetLimitId() const { return m_limitId; }
191 inline bool LimitIdHasBeenSet() const { return m_limitIdHasBeenSet; }
192 template <typename LimitIdT = Aws::String>
193 void SetLimitId(LimitIdT&& value) {
194 m_limitIdHasBeenSet = true;
195 m_limitId = std::forward<LimitIdT>(value);
196 }
197 template <typename LimitIdT = Aws::String>
198 LimitSummary& WithLimitId(LimitIdT&& value) {
199 SetLimitId(std::forward<LimitIdT>(value));
200 return *this;
201 }
203
205
210 inline int GetCurrentCount() const { return m_currentCount; }
211 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
212 inline void SetCurrentCount(int value) {
213 m_currentCountHasBeenSet = true;
214 m_currentCount = value;
215 }
216 inline LimitSummary& WithCurrentCount(int value) {
217 SetCurrentCount(value);
218 return *this;
219 }
221 private:
222 Aws::String m_displayName;
223
224 Aws::String m_amountRequirementName;
225
226 int m_maxCount{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_farmId;
237
238 Aws::String m_limitId;
239
240 int m_currentCount{0};
241 bool m_displayNameHasBeenSet = false;
242 bool m_amountRequirementNameHasBeenSet = false;
243 bool m_maxCountHasBeenSet = false;
244 bool m_createdAtHasBeenSet = false;
245 bool m_createdByHasBeenSet = false;
246 bool m_updatedAtHasBeenSet = false;
247 bool m_updatedByHasBeenSet = false;
248 bool m_farmIdHasBeenSet = false;
249 bool m_limitIdHasBeenSet = false;
250 bool m_currentCountHasBeenSet = 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