AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeClusterResult.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/ClusterStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/VpcConfig.h>
13#include <aws/sagemaker/model/ClusterOrchestrator.h>
14#include <aws/sagemaker/model/ClusterNodeRecovery.h>
15#include <aws/sagemaker/model/ClusterInstanceGroupDetails.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SageMaker
31{
32namespace Model
33{
35 {
36 public:
37 AWS_SAGEMAKER_API DescribeClusterResult();
40
41
43
46 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
47 inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
48 inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
49 inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
50 inline DescribeClusterResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
51 inline DescribeClusterResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
52 inline DescribeClusterResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
54
56
59 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
60 inline void SetClusterName(const Aws::String& value) { m_clusterName = value; }
61 inline void SetClusterName(Aws::String&& value) { m_clusterName = std::move(value); }
62 inline void SetClusterName(const char* value) { m_clusterName.assign(value); }
63 inline DescribeClusterResult& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
64 inline DescribeClusterResult& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
65 inline DescribeClusterResult& WithClusterName(const char* value) { SetClusterName(value); return *this;}
67
69
72 inline const ClusterStatus& GetClusterStatus() const{ return m_clusterStatus; }
73 inline void SetClusterStatus(const ClusterStatus& value) { m_clusterStatus = value; }
74 inline void SetClusterStatus(ClusterStatus&& value) { m_clusterStatus = std::move(value); }
75 inline DescribeClusterResult& WithClusterStatus(const ClusterStatus& value) { SetClusterStatus(value); return *this;}
76 inline DescribeClusterResult& WithClusterStatus(ClusterStatus&& value) { SetClusterStatus(std::move(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
84 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
85 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
86 inline DescribeClusterResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
87 inline DescribeClusterResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
95 inline void SetFailureMessage(const Aws::String& value) { m_failureMessage = value; }
96 inline void SetFailureMessage(Aws::String&& value) { m_failureMessage = std::move(value); }
97 inline void SetFailureMessage(const char* value) { m_failureMessage.assign(value); }
98 inline DescribeClusterResult& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
99 inline DescribeClusterResult& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
100 inline DescribeClusterResult& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
102
104
107 inline const Aws::Vector<ClusterInstanceGroupDetails>& GetInstanceGroups() const{ return m_instanceGroups; }
108 inline void SetInstanceGroups(const Aws::Vector<ClusterInstanceGroupDetails>& value) { m_instanceGroups = value; }
109 inline void SetInstanceGroups(Aws::Vector<ClusterInstanceGroupDetails>&& value) { m_instanceGroups = std::move(value); }
112 inline DescribeClusterResult& AddInstanceGroups(const ClusterInstanceGroupDetails& value) { m_instanceGroups.push_back(value); return *this; }
113 inline DescribeClusterResult& AddInstanceGroups(ClusterInstanceGroupDetails&& value) { m_instanceGroups.push_back(std::move(value)); return *this; }
115
117
118 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
119 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfig = value; }
120 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfig = std::move(value); }
121 inline DescribeClusterResult& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
122 inline DescribeClusterResult& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
124
126
129 inline const ClusterOrchestrator& GetOrchestrator() const{ return m_orchestrator; }
130 inline void SetOrchestrator(const ClusterOrchestrator& value) { m_orchestrator = value; }
131 inline void SetOrchestrator(ClusterOrchestrator&& value) { m_orchestrator = std::move(value); }
132 inline DescribeClusterResult& WithOrchestrator(const ClusterOrchestrator& value) { SetOrchestrator(value); return *this;}
133 inline DescribeClusterResult& WithOrchestrator(ClusterOrchestrator&& value) { SetOrchestrator(std::move(value)); return *this;}
135
137
140 inline const ClusterNodeRecovery& GetNodeRecovery() const{ return m_nodeRecovery; }
141 inline void SetNodeRecovery(const ClusterNodeRecovery& value) { m_nodeRecovery = value; }
142 inline void SetNodeRecovery(ClusterNodeRecovery&& value) { m_nodeRecovery = std::move(value); }
143 inline DescribeClusterResult& WithNodeRecovery(const ClusterNodeRecovery& value) { SetNodeRecovery(value); return *this;}
144 inline DescribeClusterResult& WithNodeRecovery(ClusterNodeRecovery&& value) { SetNodeRecovery(std::move(value)); return *this;}
146
148
149 inline const Aws::String& GetRequestId() const{ return m_requestId; }
150 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
151 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
152 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
153 inline DescribeClusterResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
154 inline DescribeClusterResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
155 inline DescribeClusterResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
157 private:
158
159 Aws::String m_clusterArn;
160
161 Aws::String m_clusterName;
162
163 ClusterStatus m_clusterStatus;
164
165 Aws::Utils::DateTime m_creationTime;
166
167 Aws::String m_failureMessage;
168
170
171 VpcConfig m_vpcConfig;
172
173 ClusterOrchestrator m_orchestrator;
174
175 ClusterNodeRecovery m_nodeRecovery;
176
177 Aws::String m_requestId;
178 };
179
180} // namespace Model
181} // namespace SageMaker
182} // namespace Aws
DescribeClusterResult & WithClusterName(const Aws::String &value)
void SetOrchestrator(const ClusterOrchestrator &value)
DescribeClusterResult & WithInstanceGroups(Aws::Vector< ClusterInstanceGroupDetails > &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
DescribeClusterResult & WithClusterName(const char *value)
DescribeClusterResult & WithInstanceGroups(const Aws::Vector< ClusterInstanceGroupDetails > &value)
AWS_SAGEMAKER_API DescribeClusterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeClusterResult & WithClusterArn(const Aws::String &value)
DescribeClusterResult & AddInstanceGroups(ClusterInstanceGroupDetails &&value)
DescribeClusterResult & WithFailureMessage(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const ClusterOrchestrator & GetOrchestrator() const
DescribeClusterResult & WithOrchestrator(ClusterOrchestrator &&value)
void SetInstanceGroups(Aws::Vector< ClusterInstanceGroupDetails > &&value)
DescribeClusterResult & WithFailureMessage(const Aws::String &value)
DescribeClusterResult & WithCreationTime(Aws::Utils::DateTime &&value)
DescribeClusterResult & WithClusterArn(Aws::String &&value)
DescribeClusterResult & WithVpcConfig(const VpcConfig &value)
DescribeClusterResult & WithClusterStatus(const ClusterStatus &value)
void SetOrchestrator(ClusterOrchestrator &&value)
void SetInstanceGroups(const Aws::Vector< ClusterInstanceGroupDetails > &value)
DescribeClusterResult & WithFailureMessage(const char *value)
DescribeClusterResult & WithCreationTime(const Aws::Utils::DateTime &value)
DescribeClusterResult & WithRequestId(Aws::String &&value)
DescribeClusterResult & WithOrchestrator(const ClusterOrchestrator &value)
void SetClusterStatus(const ClusterStatus &value)
DescribeClusterResult & WithClusterStatus(ClusterStatus &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
DescribeClusterResult & WithRequestId(const Aws::String &value)
void SetNodeRecovery(ClusterNodeRecovery &&value)
AWS_SAGEMAKER_API DescribeClusterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ClusterNodeRecovery & GetNodeRecovery() const
void SetNodeRecovery(const ClusterNodeRecovery &value)
DescribeClusterResult & WithClusterName(Aws::String &&value)
DescribeClusterResult & WithNodeRecovery(ClusterNodeRecovery &&value)
DescribeClusterResult & WithClusterArn(const char *value)
DescribeClusterResult & WithRequestId(const char *value)
DescribeClusterResult & AddInstanceGroups(const ClusterInstanceGroupDetails &value)
DescribeClusterResult & WithNodeRecovery(const ClusterNodeRecovery &value)
const Aws::Vector< ClusterInstanceGroupDetails > & GetInstanceGroups() const
DescribeClusterResult & WithVpcConfig(VpcConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue