AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ClusterInstanceGroupDetails.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/ClusterInstanceType.h>
10#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/InstanceGroupStatus.h>
13#include <aws/sagemaker/model/VpcConfig.h>
14#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
15#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
16#include <aws/sagemaker/model/DeepHealthCheckType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SageMaker
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SAGEMAKER_API ClusterInstanceGroupDetails() = default;
46 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline int GetCurrentCount() const { return m_currentCount; }
55 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
56 inline void SetCurrentCount(int value) { m_currentCountHasBeenSet = true; m_currentCount = value; }
57 inline ClusterInstanceGroupDetails& WithCurrentCount(int value) { SetCurrentCount(value); return *this;}
59
61
65 inline int GetTargetCount() const { return m_targetCount; }
66 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
67 inline void SetTargetCount(int value) { m_targetCountHasBeenSet = true; m_targetCount = value; }
68 inline ClusterInstanceGroupDetails& WithTargetCount(int value) { SetTargetCount(value); return *this;}
70
72
75 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
76 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
77 template<typename InstanceGroupNameT = Aws::String>
78 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
79 template<typename InstanceGroupNameT = Aws::String>
80 ClusterInstanceGroupDetails& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
82
84
87 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
88 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
89 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
92
94
97 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
98 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
99 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
100 void SetLifeCycleConfig(LifeCycleConfigT&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value); }
101 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
102 ClusterInstanceGroupDetails& WithLifeCycleConfig(LifeCycleConfigT&& value) { SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value)); return *this;}
104
106
109 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
110 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
111 template<typename ExecutionRoleT = Aws::String>
112 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
113 template<typename ExecutionRoleT = Aws::String>
114 ClusterInstanceGroupDetails& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
116
118
128 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
129 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
130 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
131 inline ClusterInstanceGroupDetails& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
133
135
139 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
140 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
141 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
142 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
143 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
144 ClusterInstanceGroupDetails& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) { SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value)); return *this;}
145 template<typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
146 ClusterInstanceGroupDetails& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value)); return *this; }
148
150
154 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
155 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
156 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
157 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
158 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
159 ClusterInstanceGroupDetails& WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value)); return *this;}
160 inline ClusterInstanceGroupDetails& AddOnStartDeepHealthChecks(DeepHealthCheckType value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
162
164
175 inline InstanceGroupStatus GetStatus() const { return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 inline void SetStatus(InstanceGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
180
182
190 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
191 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
192 template<typename TrainingPlanArnT = Aws::String>
193 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
194 template<typename TrainingPlanArnT = Aws::String>
195 ClusterInstanceGroupDetails& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
197
199
203 inline const Aws::String& GetTrainingPlanStatus() const { return m_trainingPlanStatus; }
204 inline bool TrainingPlanStatusHasBeenSet() const { return m_trainingPlanStatusHasBeenSet; }
205 template<typename TrainingPlanStatusT = Aws::String>
206 void SetTrainingPlanStatus(TrainingPlanStatusT&& value) { m_trainingPlanStatusHasBeenSet = true; m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value); }
207 template<typename TrainingPlanStatusT = Aws::String>
208 ClusterInstanceGroupDetails& WithTrainingPlanStatus(TrainingPlanStatusT&& value) { SetTrainingPlanStatus(std::forward<TrainingPlanStatusT>(value)); return *this;}
210
212
217 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
218 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
219 template<typename OverrideVpcConfigT = VpcConfig>
220 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet = true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
221 template<typename OverrideVpcConfigT = VpcConfig>
222 ClusterInstanceGroupDetails& WithOverrideVpcConfig(OverrideVpcConfigT&& value) { SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value)); return *this;}
224
226
230 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
231 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
232 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
233 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet = true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
234 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
235 ClusterInstanceGroupDetails& WithScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value)); return *this;}
237 private:
238
239 int m_currentCount{0};
240 bool m_currentCountHasBeenSet = false;
241
242 int m_targetCount{0};
243 bool m_targetCountHasBeenSet = false;
244
245 Aws::String m_instanceGroupName;
246 bool m_instanceGroupNameHasBeenSet = false;
247
249 bool m_instanceTypeHasBeenSet = false;
250
251 ClusterLifeCycleConfig m_lifeCycleConfig;
252 bool m_lifeCycleConfigHasBeenSet = false;
253
254 Aws::String m_executionRole;
255 bool m_executionRoleHasBeenSet = false;
256
257 int m_threadsPerCore{0};
258 bool m_threadsPerCoreHasBeenSet = false;
259
260 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
261 bool m_instanceStorageConfigsHasBeenSet = false;
262
263 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
264 bool m_onStartDeepHealthChecksHasBeenSet = false;
265
267 bool m_statusHasBeenSet = false;
268
269 Aws::String m_trainingPlanArn;
270 bool m_trainingPlanArnHasBeenSet = false;
271
272 Aws::String m_trainingPlanStatus;
273 bool m_trainingPlanStatusHasBeenSet = false;
274
275 VpcConfig m_overrideVpcConfig;
276 bool m_overrideVpcConfigHasBeenSet = false;
277
278 ScheduledUpdateConfig m_scheduledUpdateConfig;
279 bool m_scheduledUpdateConfigHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace SageMaker
284} // namespace Aws
ClusterInstanceGroupDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
ClusterInstanceGroupDetails & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupDetails & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupDetails & WithTrainingPlanStatus(TrainingPlanStatusT &&value)
ClusterInstanceGroupDetails & WithStatus(InstanceGroupStatus value)
ClusterInstanceGroupDetails & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
ClusterInstanceGroupDetails & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterInstanceGroupDetails & WithThreadsPerCore(int value)
ClusterInstanceGroupDetails & WithTargetCount(int value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails()=default
ClusterInstanceGroupDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceGroupDetails & WithExecutionRole(ExecutionRoleT &&value)
ClusterInstanceGroupDetails & WithCurrentCount(int value)
ClusterInstanceGroupDetails & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupDetails & WithLifeCycleConfig(LifeCycleConfigT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceGroupDetails & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
const ScheduledUpdateConfig & GetScheduledUpdateConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue