AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeComputeQuotaResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/SchedulerResourceStatus.h>
10#include <aws/sagemaker/model/ComputeQuotaConfig.h>
11#include <aws/sagemaker/model/ComputeQuotaTarget.h>
12#include <aws/sagemaker/model/ActivationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/sagemaker/model/UserContext.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SageMaker
30{
31namespace Model
32{
34 {
35 public:
36 AWS_SAGEMAKER_API DescribeComputeQuotaResult() = default;
39
40
42
45 inline const Aws::String& GetComputeQuotaArn() const { return m_computeQuotaArn; }
46 template<typename ComputeQuotaArnT = Aws::String>
47 void SetComputeQuotaArn(ComputeQuotaArnT&& value) { m_computeQuotaArnHasBeenSet = true; m_computeQuotaArn = std::forward<ComputeQuotaArnT>(value); }
48 template<typename ComputeQuotaArnT = Aws::String>
49 DescribeComputeQuotaResult& WithComputeQuotaArn(ComputeQuotaArnT&& value) { SetComputeQuotaArn(std::forward<ComputeQuotaArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetComputeQuotaId() const { return m_computeQuotaId; }
57 template<typename ComputeQuotaIdT = Aws::String>
58 void SetComputeQuotaId(ComputeQuotaIdT&& value) { m_computeQuotaIdHasBeenSet = true; m_computeQuotaId = std::forward<ComputeQuotaIdT>(value); }
59 template<typename ComputeQuotaIdT = Aws::String>
60 DescribeComputeQuotaResult& WithComputeQuotaId(ComputeQuotaIdT&& value) { SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 template<typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 DescribeComputeQuotaResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 DescribeComputeQuotaResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline int GetComputeQuotaVersion() const { return m_computeQuotaVersion; }
90 inline void SetComputeQuotaVersion(int value) { m_computeQuotaVersionHasBeenSet = true; m_computeQuotaVersion = value; }
93
95
98 inline SchedulerResourceStatus GetStatus() const { return m_status; }
99 inline void SetStatus(SchedulerResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
102
104
107 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
108 template<typename FailureReasonT = Aws::String>
109 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
110 template<typename FailureReasonT = Aws::String>
111 DescribeComputeQuotaResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
113
115
118 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
119 template<typename ClusterArnT = Aws::String>
120 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
121 template<typename ClusterArnT = Aws::String>
122 DescribeComputeQuotaResult& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
124
126
130 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
131 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
132 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) { m_computeQuotaConfigHasBeenSet = true; m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value); }
133 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
134 DescribeComputeQuotaResult& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) { SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value)); return *this;}
136
138
141 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
142 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
143 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) { m_computeQuotaTargetHasBeenSet = true; m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value); }
144 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
145 DescribeComputeQuotaResult& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) { SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value)); return *this;}
147
149
153 inline ActivationState GetActivationState() const { return m_activationState; }
154 inline void SetActivationState(ActivationState value) { m_activationStateHasBeenSet = true; m_activationState = value; }
157
159
162 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
163 template<typename CreationTimeT = Aws::Utils::DateTime>
164 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
165 template<typename CreationTimeT = Aws::Utils::DateTime>
166 DescribeComputeQuotaResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
168
170
171 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
172 template<typename CreatedByT = UserContext>
173 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
174 template<typename CreatedByT = UserContext>
175 DescribeComputeQuotaResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
183 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
184 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
185 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
186 DescribeComputeQuotaResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
188
190
191 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
192 template<typename LastModifiedByT = UserContext>
193 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
194 template<typename LastModifiedByT = UserContext>
195 DescribeComputeQuotaResult& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template<typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
203 template<typename RequestIdT = Aws::String>
204 DescribeComputeQuotaResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
206 private:
207
208 Aws::String m_computeQuotaArn;
209 bool m_computeQuotaArnHasBeenSet = false;
210
211 Aws::String m_computeQuotaId;
212 bool m_computeQuotaIdHasBeenSet = false;
213
214 Aws::String m_name;
215 bool m_nameHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 int m_computeQuotaVersion{0};
221 bool m_computeQuotaVersionHasBeenSet = false;
222
224 bool m_statusHasBeenSet = false;
225
226 Aws::String m_failureReason;
227 bool m_failureReasonHasBeenSet = false;
228
229 Aws::String m_clusterArn;
230 bool m_clusterArnHasBeenSet = false;
231
232 ComputeQuotaConfig m_computeQuotaConfig;
233 bool m_computeQuotaConfigHasBeenSet = false;
234
235 ComputeQuotaTarget m_computeQuotaTarget;
236 bool m_computeQuotaTargetHasBeenSet = false;
237
238 ActivationState m_activationState{ActivationState::NOT_SET};
239 bool m_activationStateHasBeenSet = false;
240
241 Aws::Utils::DateTime m_creationTime{};
242 bool m_creationTimeHasBeenSet = false;
243
244 UserContext m_createdBy;
245 bool m_createdByHasBeenSet = false;
246
247 Aws::Utils::DateTime m_lastModifiedTime{};
248 bool m_lastModifiedTimeHasBeenSet = false;
249
250 UserContext m_lastModifiedBy;
251 bool m_lastModifiedByHasBeenSet = false;
252
253 Aws::String m_requestId;
254 bool m_requestIdHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace SageMaker
259} // 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