AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetLimitResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace deadline {
24namespace Model {
32 public:
33 AWS_DEADLINE_API GetLimitResult() = default;
36
38
41 inline const Aws::String& GetFarmId() const { return m_farmId; }
42 template <typename FarmIdT = Aws::String>
43 void SetFarmId(FarmIdT&& value) {
44 m_farmIdHasBeenSet = true;
45 m_farmId = std::forward<FarmIdT>(value);
46 }
47 template <typename FarmIdT = Aws::String>
48 GetLimitResult& WithFarmId(FarmIdT&& value) {
49 SetFarmId(std::forward<FarmIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLimitId() const { return m_limitId; }
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 GetLimitResult& 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 void SetCurrentCount(int value) {
79 m_currentCountHasBeenSet = true;
80 m_currentCount = value;
81 }
82 inline GetLimitResult& WithCurrentCount(int value) {
83 SetCurrentCount(value);
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
94 void SetCreatedAt(CreatedAtT&& value) {
95 m_createdAtHasBeenSet = true;
96 m_createdAt = std::forward<CreatedAtT>(value);
97 }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 GetLimitResult& WithCreatedAt(CreatedAtT&& value) {
100 SetCreatedAt(std::forward<CreatedAtT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
110 template <typename CreatedByT = Aws::String>
111 void SetCreatedBy(CreatedByT&& value) {
112 m_createdByHasBeenSet = true;
113 m_createdBy = std::forward<CreatedByT>(value);
114 }
115 template <typename CreatedByT = Aws::String>
116 GetLimitResult& WithCreatedBy(CreatedByT&& value) {
117 SetCreatedBy(std::forward<CreatedByT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
127 template <typename UpdatedAtT = Aws::Utils::DateTime>
128 void SetUpdatedAt(UpdatedAtT&& value) {
129 m_updatedAtHasBeenSet = true;
130 m_updatedAt = std::forward<UpdatedAtT>(value);
131 }
132 template <typename UpdatedAtT = Aws::Utils::DateTime>
133 GetLimitResult& WithUpdatedAt(UpdatedAtT&& value) {
134 SetUpdatedAt(std::forward<UpdatedAtT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
144 template <typename UpdatedByT = Aws::String>
145 void SetUpdatedBy(UpdatedByT&& value) {
146 m_updatedByHasBeenSet = true;
147 m_updatedBy = std::forward<UpdatedByT>(value);
148 }
149 template <typename UpdatedByT = Aws::String>
150 GetLimitResult& WithUpdatedBy(UpdatedByT&& value) {
151 SetUpdatedBy(std::forward<UpdatedByT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::String& GetDisplayName() const { return m_displayName; }
163 template <typename DisplayNameT = Aws::String>
164 void SetDisplayName(DisplayNameT&& value) {
165 m_displayNameHasBeenSet = true;
166 m_displayName = std::forward<DisplayNameT>(value);
167 }
168 template <typename DisplayNameT = Aws::String>
169 GetLimitResult& WithDisplayName(DisplayNameT&& value) {
170 SetDisplayName(std::forward<DisplayNameT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::String& GetAmountRequirementName() const { return m_amountRequirementName; }
182 template <typename AmountRequirementNameT = Aws::String>
183 void SetAmountRequirementName(AmountRequirementNameT&& value) {
184 m_amountRequirementNameHasBeenSet = true;
185 m_amountRequirementName = std::forward<AmountRequirementNameT>(value);
186 }
187 template <typename AmountRequirementNameT = Aws::String>
188 GetLimitResult& WithAmountRequirementName(AmountRequirementNameT&& value) {
189 SetAmountRequirementName(std::forward<AmountRequirementNameT>(value));
190 return *this;
191 }
193
195
202 inline int GetMaxCount() const { return m_maxCount; }
203 inline void SetMaxCount(int value) {
204 m_maxCountHasBeenSet = true;
205 m_maxCount = value;
206 }
207 inline GetLimitResult& WithMaxCount(int value) {
208 SetMaxCount(value);
209 return *this;
210 }
212
214
220 inline const Aws::String& GetDescription() const { return m_description; }
221 template <typename DescriptionT = Aws::String>
222 void SetDescription(DescriptionT&& value) {
223 m_descriptionHasBeenSet = true;
224 m_description = std::forward<DescriptionT>(value);
225 }
226 template <typename DescriptionT = Aws::String>
227 GetLimitResult& WithDescription(DescriptionT&& value) {
228 SetDescription(std::forward<DescriptionT>(value));
229 return *this;
230 }
232
234
235 inline const Aws::String& GetRequestId() const { return m_requestId; }
236 template <typename RequestIdT = Aws::String>
237 void SetRequestId(RequestIdT&& value) {
238 m_requestIdHasBeenSet = true;
239 m_requestId = std::forward<RequestIdT>(value);
240 }
241 template <typename RequestIdT = Aws::String>
242 GetLimitResult& WithRequestId(RequestIdT&& value) {
243 SetRequestId(std::forward<RequestIdT>(value));
244 return *this;
245 }
247 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
248
249 private:
250 Aws::String m_farmId;
251
252 Aws::String m_limitId;
253
254 int m_currentCount{0};
255
256 Aws::Utils::DateTime m_createdAt{};
257
258 Aws::String m_createdBy;
259
260 Aws::Utils::DateTime m_updatedAt{};
261
262 Aws::String m_updatedBy;
263
264 Aws::String m_displayName;
265
266 Aws::String m_amountRequirementName;
267
268 int m_maxCount{0};
269
270 Aws::String m_description;
271
272 Aws::String m_requestId;
273 Aws::Http::HttpResponseCode m_HttpResponseCode;
274 bool m_farmIdHasBeenSet = false;
275 bool m_limitIdHasBeenSet = false;
276 bool m_currentCountHasBeenSet = false;
277 bool m_createdAtHasBeenSet = false;
278 bool m_createdByHasBeenSet = false;
279 bool m_updatedAtHasBeenSet = false;
280 bool m_updatedByHasBeenSet = false;
281 bool m_displayNameHasBeenSet = false;
282 bool m_amountRequirementNameHasBeenSet = false;
283 bool m_maxCountHasBeenSet = false;
284 bool m_descriptionHasBeenSet = false;
285 bool m_requestIdHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace deadline
290} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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