AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker/model/ClusterStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API ClusterSummary() = default;
39 AWS_SAGEMAKER_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
49 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
50 template<typename ClusterArnT = Aws::String>
51 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
52 template<typename ClusterArnT = Aws::String>
53 ClusterSummary& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
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) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
64 template<typename ClusterNameT = Aws::String>
65 ClusterSummary& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
73 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
74 template<typename CreationTimeT = Aws::Utils::DateTime>
75 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
76 template<typename CreationTimeT = Aws::Utils::DateTime>
77 ClusterSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
79
81
84 inline ClusterStatus GetClusterStatus() const { return m_clusterStatus; }
85 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
86 inline void SetClusterStatus(ClusterStatus value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = value; }
87 inline ClusterSummary& WithClusterStatus(ClusterStatus value) { SetClusterStatus(value); return *this;}
89
91
99 inline const Aws::Vector<Aws::String>& GetTrainingPlanArns() const { return m_trainingPlanArns; }
100 inline bool TrainingPlanArnsHasBeenSet() const { return m_trainingPlanArnsHasBeenSet; }
101 template<typename TrainingPlanArnsT = Aws::Vector<Aws::String>>
102 void SetTrainingPlanArns(TrainingPlanArnsT&& value) { m_trainingPlanArnsHasBeenSet = true; m_trainingPlanArns = std::forward<TrainingPlanArnsT>(value); }
103 template<typename TrainingPlanArnsT = Aws::Vector<Aws::String>>
104 ClusterSummary& WithTrainingPlanArns(TrainingPlanArnsT&& value) { SetTrainingPlanArns(std::forward<TrainingPlanArnsT>(value)); return *this;}
105 template<typename TrainingPlanArnsT = Aws::String>
106 ClusterSummary& AddTrainingPlanArns(TrainingPlanArnsT&& value) { m_trainingPlanArnsHasBeenSet = true; m_trainingPlanArns.emplace_back(std::forward<TrainingPlanArnsT>(value)); return *this; }
108 private:
109
110 Aws::String m_clusterArn;
111 bool m_clusterArnHasBeenSet = false;
112
113 Aws::String m_clusterName;
114 bool m_clusterNameHasBeenSet = false;
115
116 Aws::Utils::DateTime m_creationTime{};
117 bool m_creationTimeHasBeenSet = false;
118
119 ClusterStatus m_clusterStatus{ClusterStatus::NOT_SET};
120 bool m_clusterStatusHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_trainingPlanArns;
123 bool m_trainingPlanArnsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SageMaker
128} // 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