AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterInstanceGroupSpecification.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/VpcConfig.h>
13#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
14#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
15#include <aws/sagemaker/model/DeepHealthCheckType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SAGEMAKER_API ClusterInstanceGroupSpecification() = default;
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline int GetInstanceCount() const { return m_instanceCount; }
54 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
55 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
56 inline ClusterInstanceGroupSpecification& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
58
60
63 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
64 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
65 template<typename InstanceGroupNameT = Aws::String>
66 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
67 template<typename InstanceGroupNameT = Aws::String>
68 ClusterInstanceGroupSpecification& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
70
72
75 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
76 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
77 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
80
82
85 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
86 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
87 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
88 void SetLifeCycleConfig(LifeCycleConfigT&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value); }
89 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
90 ClusterInstanceGroupSpecification& WithLifeCycleConfig(LifeCycleConfigT&& value) { SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value)); return *this;}
92
94
97 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
98 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
99 template<typename ExecutionRoleT = Aws::String>
100 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
101 template<typename ExecutionRoleT = Aws::String>
102 ClusterInstanceGroupSpecification& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
104
106
116 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
117 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
118 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
121
123
127 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
128 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
129 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
130 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
131 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
132 ClusterInstanceGroupSpecification& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) { SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value)); return *this;}
133 template<typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
134 ClusterInstanceGroupSpecification& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value)); return *this; }
136
138
142 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
143 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
144 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
145 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
146 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
147 ClusterInstanceGroupSpecification& WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value)); return *this;}
148 inline ClusterInstanceGroupSpecification& AddOnStartDeepHealthChecks(DeepHealthCheckType value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
150
152
160 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
161 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
162 template<typename TrainingPlanArnT = Aws::String>
163 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
164 template<typename TrainingPlanArnT = Aws::String>
165 ClusterInstanceGroupSpecification& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
167
169
197 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
198 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
199 template<typename OverrideVpcConfigT = VpcConfig>
200 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet = true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
201 template<typename OverrideVpcConfigT = VpcConfig>
202 ClusterInstanceGroupSpecification& WithOverrideVpcConfig(OverrideVpcConfigT&& value) { SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value)); return *this;}
204
206
210 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
211 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
212 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
213 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet = true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
214 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
215 ClusterInstanceGroupSpecification& WithScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value)); return *this;}
217 private:
218
219 int m_instanceCount{0};
220 bool m_instanceCountHasBeenSet = false;
221
222 Aws::String m_instanceGroupName;
223 bool m_instanceGroupNameHasBeenSet = false;
224
226 bool m_instanceTypeHasBeenSet = false;
227
228 ClusterLifeCycleConfig m_lifeCycleConfig;
229 bool m_lifeCycleConfigHasBeenSet = false;
230
231 Aws::String m_executionRole;
232 bool m_executionRoleHasBeenSet = false;
233
234 int m_threadsPerCore{0};
235 bool m_threadsPerCoreHasBeenSet = false;
236
237 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
238 bool m_instanceStorageConfigsHasBeenSet = false;
239
240 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
241 bool m_onStartDeepHealthChecksHasBeenSet = false;
242
243 Aws::String m_trainingPlanArn;
244 bool m_trainingPlanArnHasBeenSet = false;
245
246 VpcConfig m_overrideVpcConfig;
247 bool m_overrideVpcConfigHasBeenSet = false;
248
249 ScheduledUpdateConfig m_scheduledUpdateConfig;
250 bool m_scheduledUpdateConfigHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace SageMaker
255} // namespace Aws
ClusterInstanceGroupSpecification & WithExecutionRole(ExecutionRoleT &&value)
ClusterInstanceGroupSpecification & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupSpecification & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupSpecification & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterInstanceGroupSpecification & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterInstanceGroupSpecification & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
ClusterInstanceGroupSpecification & WithInstanceGroupName(InstanceGroupNameT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceGroupSpecification & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupSpecification & WithLifeCycleConfig(LifeCycleConfigT &&value)
ClusterInstanceGroupSpecification & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
ClusterInstanceGroupSpecification & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue