AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetLimitResult.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 {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace deadline {
23namespace Model {
25 public:
26 AWS_DEADLINE_API GetLimitResult() = default;
29
31
36 inline const Aws::String& GetDisplayName() const { return m_displayName; }
37 template <typename DisplayNameT = Aws::String>
38 void SetDisplayName(DisplayNameT&& value) {
39 m_displayNameHasBeenSet = true;
40 m_displayName = std::forward<DisplayNameT>(value);
41 }
42 template <typename DisplayNameT = Aws::String>
43 GetLimitResult& WithDisplayName(DisplayNameT&& value) {
44 SetDisplayName(std::forward<DisplayNameT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetAmountRequirementName() const { return m_amountRequirementName; }
56 template <typename AmountRequirementNameT = Aws::String>
57 void SetAmountRequirementName(AmountRequirementNameT&& value) {
58 m_amountRequirementNameHasBeenSet = true;
59 m_amountRequirementName = std::forward<AmountRequirementNameT>(value);
60 }
61 template <typename AmountRequirementNameT = Aws::String>
62 GetLimitResult& WithAmountRequirementName(AmountRequirementNameT&& value) {
63 SetAmountRequirementName(std::forward<AmountRequirementNameT>(value));
64 return *this;
65 }
67
69
76 inline int GetMaxCount() const { return m_maxCount; }
77 inline void SetMaxCount(int value) {
78 m_maxCountHasBeenSet = true;
79 m_maxCount = value;
80 }
81 inline GetLimitResult& WithMaxCount(int value) {
82 SetMaxCount(value);
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) {
94 m_createdAtHasBeenSet = true;
95 m_createdAt = std::forward<CreatedAtT>(value);
96 }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 GetLimitResult& WithCreatedAt(CreatedAtT&& value) {
99 SetCreatedAt(std::forward<CreatedAtT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
109 template <typename CreatedByT = Aws::String>
110 void SetCreatedBy(CreatedByT&& value) {
111 m_createdByHasBeenSet = true;
112 m_createdBy = std::forward<CreatedByT>(value);
113 }
114 template <typename CreatedByT = Aws::String>
115 GetLimitResult& WithCreatedBy(CreatedByT&& value) {
116 SetCreatedBy(std::forward<CreatedByT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
126 template <typename UpdatedAtT = Aws::Utils::DateTime>
127 void SetUpdatedAt(UpdatedAtT&& value) {
128 m_updatedAtHasBeenSet = true;
129 m_updatedAt = std::forward<UpdatedAtT>(value);
130 }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 GetLimitResult& WithUpdatedAt(UpdatedAtT&& value) {
133 SetUpdatedAt(std::forward<UpdatedAtT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
143 template <typename UpdatedByT = Aws::String>
144 void SetUpdatedBy(UpdatedByT&& value) {
145 m_updatedByHasBeenSet = true;
146 m_updatedBy = std::forward<UpdatedByT>(value);
147 }
148 template <typename UpdatedByT = Aws::String>
149 GetLimitResult& WithUpdatedBy(UpdatedByT&& value) {
150 SetUpdatedBy(std::forward<UpdatedByT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetFarmId() const { return m_farmId; }
160 template <typename FarmIdT = Aws::String>
161 void SetFarmId(FarmIdT&& value) {
162 m_farmIdHasBeenSet = true;
163 m_farmId = std::forward<FarmIdT>(value);
164 }
165 template <typename FarmIdT = Aws::String>
166 GetLimitResult& WithFarmId(FarmIdT&& value) {
167 SetFarmId(std::forward<FarmIdT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetLimitId() const { return m_limitId; }
177 template <typename LimitIdT = Aws::String>
178 void SetLimitId(LimitIdT&& value) {
179 m_limitIdHasBeenSet = true;
180 m_limitId = std::forward<LimitIdT>(value);
181 }
182 template <typename LimitIdT = Aws::String>
183 GetLimitResult& WithLimitId(LimitIdT&& value) {
184 SetLimitId(std::forward<LimitIdT>(value));
185 return *this;
186 }
188
190
195 inline int GetCurrentCount() const { return m_currentCount; }
196 inline void SetCurrentCount(int value) {
197 m_currentCountHasBeenSet = true;
198 m_currentCount = value;
199 }
200 inline GetLimitResult& WithCurrentCount(int value) {
201 SetCurrentCount(value);
202 return *this;
203 }
205
207
213 inline const Aws::String& GetDescription() const { return m_description; }
214 template <typename DescriptionT = Aws::String>
215 void SetDescription(DescriptionT&& value) {
216 m_descriptionHasBeenSet = true;
217 m_description = std::forward<DescriptionT>(value);
218 }
219 template <typename DescriptionT = Aws::String>
220 GetLimitResult& WithDescription(DescriptionT&& value) {
221 SetDescription(std::forward<DescriptionT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
235 GetLimitResult& WithRequestId(RequestIdT&& value) {
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_displayName;
242
243 Aws::String m_amountRequirementName;
244
245 int m_maxCount{0};
246
247 Aws::Utils::DateTime m_createdAt{};
248
249 Aws::String m_createdBy;
250
251 Aws::Utils::DateTime m_updatedAt{};
252
253 Aws::String m_updatedBy;
254
255 Aws::String m_farmId;
256
257 Aws::String m_limitId;
258
259 int m_currentCount{0};
260
261 Aws::String m_description;
262
263 Aws::String m_requestId;
264 bool m_displayNameHasBeenSet = false;
265 bool m_amountRequirementNameHasBeenSet = false;
266 bool m_maxCountHasBeenSet = false;
267 bool m_createdAtHasBeenSet = false;
268 bool m_createdByHasBeenSet = false;
269 bool m_updatedAtHasBeenSet = false;
270 bool m_updatedByHasBeenSet = false;
271 bool m_farmIdHasBeenSet = false;
272 bool m_limitIdHasBeenSet = false;
273 bool m_currentCountHasBeenSet = false;
274 bool m_descriptionHasBeenSet = false;
275 bool m_requestIdHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace deadline
280} // namespace Aws
void SetUpdatedBy(UpdatedByT &&value)
GetLimitResult & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetLimitId() const
const Aws::String & GetAmountRequirementName() const
const Aws::String & GetUpdatedBy() const
GetLimitResult & WithCurrentCount(int value)
GetLimitResult & WithMaxCount(int value)
const Aws::String & GetRequestId() const
GetLimitResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetDisplayName() const
AWS_DEADLINE_API GetLimitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEADLINE_API GetLimitResult()=default
GetLimitResult & WithCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API GetLimitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
void SetRequestId(RequestIdT &&value)
GetLimitResult & WithDisplayName(DisplayNameT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetFarmId() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
GetLimitResult & WithLimitId(LimitIdT &&value)
void SetCreatedBy(CreatedByT &&value)
GetLimitResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetAmountRequirementName(AmountRequirementNameT &&value)
GetLimitResult & WithCreatedAt(CreatedAtT &&value)
GetLimitResult & WithAmountRequirementName(AmountRequirementNameT &&value)
GetLimitResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetDescription() const
GetLimitResult & WithFarmId(FarmIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue