AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribeClusterSchedulerConfigResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/SchedulerConfig.h>
13#include <aws/sagemaker/model/SchedulerConfigComponent.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 DescribeClusterSchedulerConfigResult() = default;
35
37
40 inline const Aws::String& GetClusterSchedulerConfigArn() const { return m_clusterSchedulerConfigArn; }
41 template <typename ClusterSchedulerConfigArnT = Aws::String>
42 void SetClusterSchedulerConfigArn(ClusterSchedulerConfigArnT&& value) {
43 m_clusterSchedulerConfigArnHasBeenSet = true;
44 m_clusterSchedulerConfigArn = std::forward<ClusterSchedulerConfigArnT>(value);
45 }
46 template <typename ClusterSchedulerConfigArnT = Aws::String>
48 SetClusterSchedulerConfigArn(std::forward<ClusterSchedulerConfigArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetClusterSchedulerConfigId() const { return m_clusterSchedulerConfigId; }
58 template <typename ClusterSchedulerConfigIdT = Aws::String>
59 void SetClusterSchedulerConfigId(ClusterSchedulerConfigIdT&& value) {
60 m_clusterSchedulerConfigIdHasBeenSet = true;
61 m_clusterSchedulerConfigId = std::forward<ClusterSchedulerConfigIdT>(value);
62 }
63 template <typename ClusterSchedulerConfigIdT = Aws::String>
65 SetClusterSchedulerConfigId(std::forward<ClusterSchedulerConfigIdT>(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 int GetClusterSchedulerConfigVersion() const { return m_clusterSchedulerConfigVersion; }
92 inline void SetClusterSchedulerConfigVersion(int value) {
93 m_clusterSchedulerConfigVersionHasBeenSet = true;
94 m_clusterSchedulerConfigVersion = value;
95 }
98 return *this;
99 }
101
103
106 inline SchedulerResourceStatus GetStatus() const { return m_status; }
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
122 template <typename FailureReasonT = Aws::String>
123 void SetFailureReason(FailureReasonT&& value) {
124 m_failureReasonHasBeenSet = true;
125 m_failureReason = std::forward<FailureReasonT>(value);
126 }
127 template <typename FailureReasonT = Aws::String>
129 SetFailureReason(std::forward<FailureReasonT>(value));
130 return *this;
131 }
133
135
141 template <typename StatusDetailsT = Aws::Map<SchedulerConfigComponent, SchedulerResourceStatus>>
142 void SetStatusDetails(StatusDetailsT&& value) {
143 m_statusDetailsHasBeenSet = true;
144 m_statusDetails = std::forward<StatusDetailsT>(value);
145 }
146 template <typename StatusDetailsT = Aws::Map<SchedulerConfigComponent, SchedulerResourceStatus>>
148 SetStatusDetails(std::forward<StatusDetailsT>(value));
149 return *this;
150 }
152 m_statusDetailsHasBeenSet = true;
153 m_statusDetails.emplace(key, value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
163 template <typename ClusterArnT = Aws::String>
164 void SetClusterArn(ClusterArnT&& value) {
165 m_clusterArnHasBeenSet = true;
166 m_clusterArn = std::forward<ClusterArnT>(value);
167 }
168 template <typename ClusterArnT = Aws::String>
170 SetClusterArn(std::forward<ClusterArnT>(value));
171 return *this;
172 }
174
176
181 inline const SchedulerConfig& GetSchedulerConfig() const { return m_schedulerConfig; }
182 template <typename SchedulerConfigT = SchedulerConfig>
183 void SetSchedulerConfig(SchedulerConfigT&& value) {
184 m_schedulerConfigHasBeenSet = true;
185 m_schedulerConfig = std::forward<SchedulerConfigT>(value);
186 }
187 template <typename SchedulerConfigT = SchedulerConfig>
189 SetSchedulerConfig(std::forward<SchedulerConfigT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetDescription() const { return m_description; }
199 template <typename DescriptionT = Aws::String>
200 void SetDescription(DescriptionT&& value) {
201 m_descriptionHasBeenSet = true;
202 m_description = std::forward<DescriptionT>(value);
203 }
204 template <typename DescriptionT = Aws::String>
206 SetDescription(std::forward<DescriptionT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
216 template <typename CreationTimeT = Aws::Utils::DateTime>
217 void SetCreationTime(CreationTimeT&& value) {
218 m_creationTimeHasBeenSet = true;
219 m_creationTime = std::forward<CreationTimeT>(value);
220 }
221 template <typename CreationTimeT = Aws::Utils::DateTime>
223 SetCreationTime(std::forward<CreationTimeT>(value));
224 return *this;
225 }
227
229
230 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
231 template <typename CreatedByT = UserContext>
232 void SetCreatedBy(CreatedByT&& value) {
233 m_createdByHasBeenSet = true;
234 m_createdBy = std::forward<CreatedByT>(value);
235 }
236 template <typename CreatedByT = UserContext>
238 SetCreatedBy(std::forward<CreatedByT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
248 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
249 void SetLastModifiedTime(LastModifiedTimeT&& value) {
250 m_lastModifiedTimeHasBeenSet = true;
251 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
252 }
253 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
255 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
256 return *this;
257 }
259
261
262 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
263 template <typename LastModifiedByT = UserContext>
264 void SetLastModifiedBy(LastModifiedByT&& value) {
265 m_lastModifiedByHasBeenSet = true;
266 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
267 }
268 template <typename LastModifiedByT = UserContext>
270 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
271 return *this;
272 }
274
276
277 inline const Aws::String& GetRequestId() const { return m_requestId; }
278 template <typename RequestIdT = Aws::String>
279 void SetRequestId(RequestIdT&& value) {
280 m_requestIdHasBeenSet = true;
281 m_requestId = std::forward<RequestIdT>(value);
282 }
283 template <typename RequestIdT = Aws::String>
285 SetRequestId(std::forward<RequestIdT>(value));
286 return *this;
287 }
289 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
290
291 private:
292 Aws::String m_clusterSchedulerConfigArn;
293
294 Aws::String m_clusterSchedulerConfigId;
295
296 Aws::String m_name;
297
298 int m_clusterSchedulerConfigVersion{0};
299
301
302 Aws::String m_failureReason;
303
305
306 Aws::String m_clusterArn;
307
308 SchedulerConfig m_schedulerConfig;
309
310 Aws::String m_description;
311
312 Aws::Utils::DateTime m_creationTime{};
313
314 UserContext m_createdBy;
315
316 Aws::Utils::DateTime m_lastModifiedTime{};
317
318 UserContext m_lastModifiedBy;
319
320 Aws::String m_requestId;
321 Aws::Http::HttpResponseCode m_HttpResponseCode;
322 bool m_clusterSchedulerConfigArnHasBeenSet = false;
323 bool m_clusterSchedulerConfigIdHasBeenSet = false;
324 bool m_nameHasBeenSet = false;
325 bool m_clusterSchedulerConfigVersionHasBeenSet = false;
326 bool m_statusHasBeenSet = false;
327 bool m_failureReasonHasBeenSet = false;
328 bool m_statusDetailsHasBeenSet = false;
329 bool m_clusterArnHasBeenSet = false;
330 bool m_schedulerConfigHasBeenSet = false;
331 bool m_descriptionHasBeenSet = false;
332 bool m_creationTimeHasBeenSet = false;
333 bool m_createdByHasBeenSet = false;
334 bool m_lastModifiedTimeHasBeenSet = false;
335 bool m_lastModifiedByHasBeenSet = false;
336 bool m_requestIdHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace SageMaker
341} // namespace Aws
DescribeClusterSchedulerConfigResult & WithSchedulerConfig(SchedulerConfigT &&value)
DescribeClusterSchedulerConfigResult & WithStatus(SchedulerResourceStatus value)
DescribeClusterSchedulerConfigResult & WithClusterSchedulerConfigArn(ClusterSchedulerConfigArnT &&value)
DescribeClusterSchedulerConfigResult & WithCreationTime(CreationTimeT &&value)
DescribeClusterSchedulerConfigResult & WithClusterSchedulerConfigVersion(int value)
DescribeClusterSchedulerConfigResult & WithCreatedBy(CreatedByT &&value)
DescribeClusterSchedulerConfigResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeClusterSchedulerConfigResult & WithRequestId(RequestIdT &&value)
DescribeClusterSchedulerConfigResult & WithDescription(DescriptionT &&value)
DescribeClusterSchedulerConfigResult & WithFailureReason(FailureReasonT &&value)
DescribeClusterSchedulerConfigResult & WithLastModifiedBy(LastModifiedByT &&value)
const Aws::Map< SchedulerConfigComponent, SchedulerResourceStatus > & GetStatusDetails() const
DescribeClusterSchedulerConfigResult & WithClusterArn(ClusterArnT &&value)
DescribeClusterSchedulerConfigResult & WithStatusDetails(StatusDetailsT &&value)
AWS_SAGEMAKER_API DescribeClusterSchedulerConfigResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeClusterSchedulerConfigResult & WithClusterSchedulerConfigId(ClusterSchedulerConfigIdT &&value)
DescribeClusterSchedulerConfigResult & AddStatusDetails(SchedulerConfigComponent key, SchedulerResourceStatus value)
AWS_SAGEMAKER_API DescribeClusterSchedulerConfigResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue