AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ClusterInstanceGroupSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ClusterCapacityRequirements.h>
11#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
12#include <aws/sagemaker/model/ClusterInstanceType.h>
13#include <aws/sagemaker/model/ClusterKubernetesConfig.h>
14#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
15#include <aws/sagemaker/model/DeepHealthCheckType.h>
16#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
17#include <aws/sagemaker/model/VpcConfig.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker {
29namespace Model {
30
38 public:
39 AWS_SAGEMAKER_API ClusterInstanceGroupSpecification() = default;
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline int GetInstanceCount() const { return m_instanceCount; }
50 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
51 inline void SetInstanceCount(int value) {
52 m_instanceCountHasBeenSet = true;
53 m_instanceCount = value;
54 }
56 SetInstanceCount(value);
57 return *this;
58 }
60
62
71 inline int GetMinInstanceCount() const { return m_minInstanceCount; }
72 inline bool MinInstanceCountHasBeenSet() const { return m_minInstanceCountHasBeenSet; }
73 inline void SetMinInstanceCount(int value) {
74 m_minInstanceCountHasBeenSet = true;
75 m_minInstanceCount = value;
76 }
79 return *this;
80 }
82
84
87 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
88 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
89 template <typename InstanceGroupNameT = Aws::String>
90 void SetInstanceGroupName(InstanceGroupNameT&& value) {
91 m_instanceGroupNameHasBeenSet = true;
92 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
93 }
94 template <typename InstanceGroupNameT = Aws::String>
96 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
97 return *this;
98 }
100
102
105 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
106 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
108 m_instanceTypeHasBeenSet = true;
109 m_instanceType = value;
110 }
112 SetInstanceType(value);
113 return *this;
114 }
116
118
121 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
122 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
123 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
124 void SetLifeCycleConfig(LifeCycleConfigT&& value) {
125 m_lifeCycleConfigHasBeenSet = true;
126 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
127 }
128 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
130 SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
140 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
141 template <typename ExecutionRoleT = Aws::String>
142 void SetExecutionRole(ExecutionRoleT&& value) {
143 m_executionRoleHasBeenSet = true;
144 m_executionRole = std::forward<ExecutionRoleT>(value);
145 }
146 template <typename ExecutionRoleT = Aws::String>
148 SetExecutionRole(std::forward<ExecutionRoleT>(value));
149 return *this;
150 }
152
154
164 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
165 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
166 inline void SetThreadsPerCore(int value) {
167 m_threadsPerCoreHasBeenSet = true;
168 m_threadsPerCore = value;
169 }
171 SetThreadsPerCore(value);
172 return *this;
173 }
175
177
181 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
182 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
183 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
184 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
185 m_instanceStorageConfigsHasBeenSet = true;
186 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
187 }
188 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
190 SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value));
191 return *this;
192 }
193 template <typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
195 m_instanceStorageConfigsHasBeenSet = true;
196 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
207 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
208 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
209 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) {
210 m_onStartDeepHealthChecksHasBeenSet = true;
211 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
212 }
213 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
215 SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value));
216 return *this;
217 }
219 m_onStartDeepHealthChecksHasBeenSet = true;
220 m_onStartDeepHealthChecks.push_back(value);
221 return *this;
222 }
224
226
234 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
235 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
236 template <typename TrainingPlanArnT = Aws::String>
237 void SetTrainingPlanArn(TrainingPlanArnT&& value) {
238 m_trainingPlanArnHasBeenSet = true;
239 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
240 }
241 template <typename TrainingPlanArnT = Aws::String>
243 SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value));
244 return *this;
245 }
247
249
277 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
278 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
279 template <typename OverrideVpcConfigT = VpcConfig>
280 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) {
281 m_overrideVpcConfigHasBeenSet = true;
282 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
283 }
284 template <typename OverrideVpcConfigT = VpcConfig>
286 SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value));
287 return *this;
288 }
290
292
296 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
297 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
298 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
299 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) {
300 m_scheduledUpdateConfigHasBeenSet = true;
301 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
302 }
303 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
305 SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value));
306 return *this;
307 }
309
311
329 inline const Aws::String& GetImageId() const { return m_imageId; }
330 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
331 template <typename ImageIdT = Aws::String>
332 void SetImageId(ImageIdT&& value) {
333 m_imageIdHasBeenSet = true;
334 m_imageId = std::forward<ImageIdT>(value);
335 }
336 template <typename ImageIdT = Aws::String>
338 SetImageId(std::forward<ImageIdT>(value));
339 return *this;
340 }
342
344
350 inline const ClusterKubernetesConfig& GetKubernetesConfig() const { return m_kubernetesConfig; }
351 inline bool KubernetesConfigHasBeenSet() const { return m_kubernetesConfigHasBeenSet; }
352 template <typename KubernetesConfigT = ClusterKubernetesConfig>
353 void SetKubernetesConfig(KubernetesConfigT&& value) {
354 m_kubernetesConfigHasBeenSet = true;
355 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
356 }
357 template <typename KubernetesConfigT = ClusterKubernetesConfig>
359 SetKubernetesConfig(std::forward<KubernetesConfigT>(value));
360 return *this;
361 }
363
365
368 inline const ClusterCapacityRequirements& GetCapacityRequirements() const { return m_capacityRequirements; }
369 inline bool CapacityRequirementsHasBeenSet() const { return m_capacityRequirementsHasBeenSet; }
370 template <typename CapacityRequirementsT = ClusterCapacityRequirements>
371 void SetCapacityRequirements(CapacityRequirementsT&& value) {
372 m_capacityRequirementsHasBeenSet = true;
373 m_capacityRequirements = std::forward<CapacityRequirementsT>(value);
374 }
375 template <typename CapacityRequirementsT = ClusterCapacityRequirements>
377 SetCapacityRequirements(std::forward<CapacityRequirementsT>(value));
378 return *this;
379 }
381 private:
382 int m_instanceCount{0};
383
384 int m_minInstanceCount{0};
385
386 Aws::String m_instanceGroupName;
387
389
390 ClusterLifeCycleConfig m_lifeCycleConfig;
391
392 Aws::String m_executionRole;
393
394 int m_threadsPerCore{0};
395
396 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
397
398 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
399
400 Aws::String m_trainingPlanArn;
401
402 VpcConfig m_overrideVpcConfig;
403
404 ScheduledUpdateConfig m_scheduledUpdateConfig;
405
406 Aws::String m_imageId;
407
408 ClusterKubernetesConfig m_kubernetesConfig;
409
410 ClusterCapacityRequirements m_capacityRequirements;
411 bool m_instanceCountHasBeenSet = false;
412 bool m_minInstanceCountHasBeenSet = false;
413 bool m_instanceGroupNameHasBeenSet = false;
414 bool m_instanceTypeHasBeenSet = false;
415 bool m_lifeCycleConfigHasBeenSet = false;
416 bool m_executionRoleHasBeenSet = false;
417 bool m_threadsPerCoreHasBeenSet = false;
418 bool m_instanceStorageConfigsHasBeenSet = false;
419 bool m_onStartDeepHealthChecksHasBeenSet = false;
420 bool m_trainingPlanArnHasBeenSet = false;
421 bool m_overrideVpcConfigHasBeenSet = false;
422 bool m_scheduledUpdateConfigHasBeenSet = false;
423 bool m_imageIdHasBeenSet = false;
424 bool m_kubernetesConfigHasBeenSet = false;
425 bool m_capacityRequirementsHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace SageMaker
430} // namespace Aws
ClusterInstanceGroupSpecification & WithImageId(ImageIdT &&value)
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)
ClusterInstanceGroupSpecification & WithCapacityRequirements(CapacityRequirementsT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceGroupSpecification & WithMinInstanceCount(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceGroupSpecification & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupSpecification & WithLifeCycleConfig(LifeCycleConfigT &&value)
ClusterInstanceGroupSpecification & WithKubernetesConfig(KubernetesConfigT &&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