AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ClusterSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ClusterStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKER_API ClusterSummary() = default;
34 AWS_SAGEMAKER_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
43 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
44 template <typename ClusterArnT = Aws::String>
45 void SetClusterArn(ClusterArnT&& value) {
46 m_clusterArnHasBeenSet = true;
47 m_clusterArn = std::forward<ClusterArnT>(value);
48 }
49 template <typename ClusterArnT = Aws::String>
50 ClusterSummary& WithClusterArn(ClusterArnT&& value) {
51 SetClusterArn(std::forward<ClusterArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetClusterName() const { return m_clusterName; }
61 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
62 template <typename ClusterNameT = Aws::String>
63 void SetClusterName(ClusterNameT&& value) {
64 m_clusterNameHasBeenSet = true;
65 m_clusterName = std::forward<ClusterNameT>(value);
66 }
67 template <typename ClusterNameT = Aws::String>
68 ClusterSummary& WithClusterName(ClusterNameT&& value) {
69 SetClusterName(std::forward<ClusterNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
79 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
80 template <typename CreationTimeT = Aws::Utils::DateTime>
81 void SetCreationTime(CreationTimeT&& value) {
82 m_creationTimeHasBeenSet = true;
83 m_creationTime = std::forward<CreationTimeT>(value);
84 }
85 template <typename CreationTimeT = Aws::Utils::DateTime>
86 ClusterSummary& WithCreationTime(CreationTimeT&& value) {
87 SetCreationTime(std::forward<CreationTimeT>(value));
88 return *this;
89 }
91
93
96 inline ClusterStatus GetClusterStatus() const { return m_clusterStatus; }
97 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
98 inline void SetClusterStatus(ClusterStatus value) {
99 m_clusterStatusHasBeenSet = true;
100 m_clusterStatus = value;
101 }
103 SetClusterStatus(value);
104 return *this;
105 }
107
109
117 inline const Aws::Vector<Aws::String>& GetTrainingPlanArns() const { return m_trainingPlanArns; }
118 inline bool TrainingPlanArnsHasBeenSet() const { return m_trainingPlanArnsHasBeenSet; }
119 template <typename TrainingPlanArnsT = Aws::Vector<Aws::String>>
120 void SetTrainingPlanArns(TrainingPlanArnsT&& value) {
121 m_trainingPlanArnsHasBeenSet = true;
122 m_trainingPlanArns = std::forward<TrainingPlanArnsT>(value);
123 }
124 template <typename TrainingPlanArnsT = Aws::Vector<Aws::String>>
125 ClusterSummary& WithTrainingPlanArns(TrainingPlanArnsT&& value) {
126 SetTrainingPlanArns(std::forward<TrainingPlanArnsT>(value));
127 return *this;
128 }
129 template <typename TrainingPlanArnsT = Aws::String>
130 ClusterSummary& AddTrainingPlanArns(TrainingPlanArnsT&& value) {
131 m_trainingPlanArnsHasBeenSet = true;
132 m_trainingPlanArns.emplace_back(std::forward<TrainingPlanArnsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_clusterArn;
138
139 Aws::String m_clusterName;
140
141 Aws::Utils::DateTime m_creationTime{};
142
143 ClusterStatus m_clusterStatus{ClusterStatus::NOT_SET};
144
145 Aws::Vector<Aws::String> m_trainingPlanArns;
146 bool m_clusterArnHasBeenSet = false;
147 bool m_clusterNameHasBeenSet = false;
148 bool m_creationTimeHasBeenSet = false;
149 bool m_clusterStatusHasBeenSet = false;
150 bool m_trainingPlanArnsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace SageMaker
155} // namespace Aws
const Aws::String & GetClusterArn() const
ClusterSummary & AddTrainingPlanArns(TrainingPlanArnsT &&value)
AWS_SAGEMAKER_API ClusterSummary()=default
AWS_SAGEMAKER_API ClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTrainingPlanArns(TrainingPlanArnsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClusterName() const
void SetClusterArn(ClusterArnT &&value)
ClusterSummary & WithClusterArn(ClusterArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ClusterSummary & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetTrainingPlanArns() const
ClusterSummary & WithTrainingPlanArns(TrainingPlanArnsT &&value)
void SetCreationTime(CreationTimeT &&value)
ClusterSummary & WithClusterStatus(ClusterStatus value)
ClusterSummary & WithClusterName(ClusterNameT &&value)
void SetClusterName(ClusterNameT &&value)
void SetClusterStatus(ClusterStatus 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