AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DescribeComputeQuotaResult.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/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ActivationState.h>
12#include <aws/sagemaker/model/ComputeQuotaConfig.h>
13#include <aws/sagemaker/model/ComputeQuotaTarget.h>
14#include <aws/sagemaker/model/SchedulerResourceStatus.h>
15#include <aws/sagemaker/model/UserContext.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker {
29namespace Model {
31 public:
32 AWS_SAGEMAKER_API DescribeComputeQuotaResult() = default;
35
37
40 inline const Aws::String& GetComputeQuotaArn() const { return m_computeQuotaArn; }
41 template <typename ComputeQuotaArnT = Aws::String>
42 void SetComputeQuotaArn(ComputeQuotaArnT&& value) {
43 m_computeQuotaArnHasBeenSet = true;
44 m_computeQuotaArn = std::forward<ComputeQuotaArnT>(value);
45 }
46 template <typename ComputeQuotaArnT = Aws::String>
48 SetComputeQuotaArn(std::forward<ComputeQuotaArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetComputeQuotaId() const { return m_computeQuotaId; }
58 template <typename ComputeQuotaIdT = Aws::String>
59 void SetComputeQuotaId(ComputeQuotaIdT&& value) {
60 m_computeQuotaIdHasBeenSet = true;
61 m_computeQuotaId = std::forward<ComputeQuotaIdT>(value);
62 }
63 template <typename ComputeQuotaIdT = Aws::String>
65 SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
108 inline int GetComputeQuotaVersion() const { return m_computeQuotaVersion; }
109 inline void SetComputeQuotaVersion(int value) {
110 m_computeQuotaVersionHasBeenSet = true;
111 m_computeQuotaVersion = value;
112 }
115 return *this;
116 }
118
120
123 inline SchedulerResourceStatus GetStatus() const { return m_status; }
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
138 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
139 template <typename FailureReasonT = Aws::String>
140 void SetFailureReason(FailureReasonT&& value) {
141 m_failureReasonHasBeenSet = true;
142 m_failureReason = std::forward<FailureReasonT>(value);
143 }
144 template <typename FailureReasonT = Aws::String>
146 SetFailureReason(std::forward<FailureReasonT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
156 template <typename ClusterArnT = Aws::String>
157 void SetClusterArn(ClusterArnT&& value) {
158 m_clusterArnHasBeenSet = true;
159 m_clusterArn = std::forward<ClusterArnT>(value);
160 }
161 template <typename ClusterArnT = Aws::String>
163 SetClusterArn(std::forward<ClusterArnT>(value));
164 return *this;
165 }
167
169
173 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
174 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
175 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) {
176 m_computeQuotaConfigHasBeenSet = true;
177 m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value);
178 }
179 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
181 SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value));
182 return *this;
183 }
185
187
190 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
191 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
192 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) {
193 m_computeQuotaTargetHasBeenSet = true;
194 m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value);
195 }
196 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
198 SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value));
199 return *this;
200 }
202
204
208 inline ActivationState GetActivationState() const { return m_activationState; }
210 m_activationStateHasBeenSet = true;
211 m_activationState = value;
212 }
214 SetActivationState(value);
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
224 template <typename CreationTimeT = Aws::Utils::DateTime>
225 void SetCreationTime(CreationTimeT&& value) {
226 m_creationTimeHasBeenSet = true;
227 m_creationTime = std::forward<CreationTimeT>(value);
228 }
229 template <typename CreationTimeT = Aws::Utils::DateTime>
231 SetCreationTime(std::forward<CreationTimeT>(value));
232 return *this;
233 }
235
237
238 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
239 template <typename CreatedByT = UserContext>
240 void SetCreatedBy(CreatedByT&& value) {
241 m_createdByHasBeenSet = true;
242 m_createdBy = std::forward<CreatedByT>(value);
243 }
244 template <typename CreatedByT = UserContext>
246 SetCreatedBy(std::forward<CreatedByT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
256 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
257 void SetLastModifiedTime(LastModifiedTimeT&& value) {
258 m_lastModifiedTimeHasBeenSet = true;
259 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
260 }
261 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
263 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
264 return *this;
265 }
267
269
270 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
271 template <typename LastModifiedByT = UserContext>
272 void SetLastModifiedBy(LastModifiedByT&& value) {
273 m_lastModifiedByHasBeenSet = true;
274 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
275 }
276 template <typename LastModifiedByT = UserContext>
278 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
279 return *this;
280 }
282
284
285 inline const Aws::String& GetRequestId() const { return m_requestId; }
286 template <typename RequestIdT = Aws::String>
287 void SetRequestId(RequestIdT&& value) {
288 m_requestIdHasBeenSet = true;
289 m_requestId = std::forward<RequestIdT>(value);
290 }
291 template <typename RequestIdT = Aws::String>
293 SetRequestId(std::forward<RequestIdT>(value));
294 return *this;
295 }
297 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
298
299 private:
300 Aws::String m_computeQuotaArn;
301
302 Aws::String m_computeQuotaId;
303
304 Aws::String m_name;
305
306 Aws::String m_description;
307
308 int m_computeQuotaVersion{0};
309
311
312 Aws::String m_failureReason;
313
314 Aws::String m_clusterArn;
315
316 ComputeQuotaConfig m_computeQuotaConfig;
317
318 ComputeQuotaTarget m_computeQuotaTarget;
319
320 ActivationState m_activationState{ActivationState::NOT_SET};
321
322 Aws::Utils::DateTime m_creationTime{};
323
324 UserContext m_createdBy;
325
326 Aws::Utils::DateTime m_lastModifiedTime{};
327
328 UserContext m_lastModifiedBy;
329
330 Aws::String m_requestId;
331 Aws::Http::HttpResponseCode m_HttpResponseCode;
332 bool m_computeQuotaArnHasBeenSet = false;
333 bool m_computeQuotaIdHasBeenSet = false;
334 bool m_nameHasBeenSet = false;
335 bool m_descriptionHasBeenSet = false;
336 bool m_computeQuotaVersionHasBeenSet = false;
337 bool m_statusHasBeenSet = false;
338 bool m_failureReasonHasBeenSet = false;
339 bool m_clusterArnHasBeenSet = false;
340 bool m_computeQuotaConfigHasBeenSet = false;
341 bool m_computeQuotaTargetHasBeenSet = false;
342 bool m_activationStateHasBeenSet = false;
343 bool m_creationTimeHasBeenSet = false;
344 bool m_createdByHasBeenSet = false;
345 bool m_lastModifiedTimeHasBeenSet = false;
346 bool m_lastModifiedByHasBeenSet = false;
347 bool m_requestIdHasBeenSet = false;
348};
349
350} // namespace Model
351} // namespace SageMaker
352} // namespace Aws
AWS_SAGEMAKER_API DescribeComputeQuotaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeComputeQuotaResult & WithStatus(SchedulerResourceStatus value)
AWS_SAGEMAKER_API DescribeComputeQuotaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeComputeQuotaResult & WithCreatedBy(CreatedByT &&value)
DescribeComputeQuotaResult & WithName(NameT &&value)
DescribeComputeQuotaResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeComputeQuotaResult & WithComputeQuotaConfig(ComputeQuotaConfigT &&value)
DescribeComputeQuotaResult & WithClusterArn(ClusterArnT &&value)
DescribeComputeQuotaResult & WithComputeQuotaArn(ComputeQuotaArnT &&value)
DescribeComputeQuotaResult & WithFailureReason(FailureReasonT &&value)
DescribeComputeQuotaResult & WithDescription(DescriptionT &&value)
DescribeComputeQuotaResult & WithComputeQuotaTarget(ComputeQuotaTargetT &&value)
DescribeComputeQuotaResult & WithComputeQuotaId(ComputeQuotaIdT &&value)
DescribeComputeQuotaResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeComputeQuotaResult & WithCreationTime(CreationTimeT &&value)
DescribeComputeQuotaResult & WithRequestId(RequestIdT &&value)
DescribeComputeQuotaResult & WithComputeQuotaVersion(int value)
DescribeComputeQuotaResult & WithActivationState(ActivationState value)
AWS_SAGEMAKER_API DescribeComputeQuotaResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue