AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterInstanceGroupDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.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/ActiveClusterOperationName.h>
12#include <aws/sagemaker/model/ClusterCapacityRequirements.h>
13#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
14#include <aws/sagemaker/model/ClusterInstanceType.h>
15#include <aws/sagemaker/model/ClusterKubernetesConfigDetails.h>
16#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
17#include <aws/sagemaker/model/DeepHealthCheckType.h>
18#include <aws/sagemaker/model/DeploymentConfiguration.h>
19#include <aws/sagemaker/model/InstanceGroupStatus.h>
20#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
21#include <aws/sagemaker/model/SoftwareUpdateStatus.h>
22#include <aws/sagemaker/model/VpcConfig.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace SageMaker {
34namespace Model {
35
43 public:
44 AWS_SAGEMAKER_API ClusterInstanceGroupDetails() = default;
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
54 inline int GetCurrentCount() const { return m_currentCount; }
55 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
56 inline void SetCurrentCount(int value) {
57 m_currentCountHasBeenSet = true;
58 m_currentCount = value;
59 }
61 SetCurrentCount(value);
62 return *this;
63 }
65
67
71 inline int GetTargetCount() const { return m_targetCount; }
72 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
73 inline void SetTargetCount(int value) {
74 m_targetCountHasBeenSet = true;
75 m_targetCount = value;
76 }
78 SetTargetCount(value);
79 return *this;
80 }
82
84
89 inline int GetMinCount() const { return m_minCount; }
90 inline bool MinCountHasBeenSet() const { return m_minCountHasBeenSet; }
91 inline void SetMinCount(int value) {
92 m_minCountHasBeenSet = true;
93 m_minCount = value;
94 }
96 SetMinCount(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
106 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
107 template <typename InstanceGroupNameT = Aws::String>
108 void SetInstanceGroupName(InstanceGroupNameT&& value) {
109 m_instanceGroupNameHasBeenSet = true;
110 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
111 }
112 template <typename InstanceGroupNameT = Aws::String>
114 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
115 return *this;
116 }
118
120
123 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
124 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
126 m_instanceTypeHasBeenSet = true;
127 m_instanceType = value;
128 }
130 SetInstanceType(value);
131 return *this;
132 }
134
136
139 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
140 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
141 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
142 void SetLifeCycleConfig(LifeCycleConfigT&& value) {
143 m_lifeCycleConfigHasBeenSet = true;
144 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
145 }
146 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
148 SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
158 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
159 template <typename ExecutionRoleT = Aws::String>
160 void SetExecutionRole(ExecutionRoleT&& value) {
161 m_executionRoleHasBeenSet = true;
162 m_executionRole = std::forward<ExecutionRoleT>(value);
163 }
164 template <typename ExecutionRoleT = Aws::String>
166 SetExecutionRole(std::forward<ExecutionRoleT>(value));
167 return *this;
168 }
170
172
182 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
183 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
184 inline void SetThreadsPerCore(int value) {
185 m_threadsPerCoreHasBeenSet = true;
186 m_threadsPerCore = value;
187 }
189 SetThreadsPerCore(value);
190 return *this;
191 }
193
195
199 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
200 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
201 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
202 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
203 m_instanceStorageConfigsHasBeenSet = true;
204 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
205 }
206 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
207 ClusterInstanceGroupDetails& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
208 SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value));
209 return *this;
210 }
211 template <typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
212 ClusterInstanceGroupDetails& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
213 m_instanceStorageConfigsHasBeenSet = true;
214 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
225 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
226 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
227 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) {
228 m_onStartDeepHealthChecksHasBeenSet = true;
229 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
230 }
231 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
232 ClusterInstanceGroupDetails& WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) {
233 SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value));
234 return *this;
235 }
237 m_onStartDeepHealthChecksHasBeenSet = true;
238 m_onStartDeepHealthChecks.push_back(value);
239 return *this;
240 }
242
244
255 inline InstanceGroupStatus GetStatus() const { return m_status; }
256 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
257 inline void SetStatus(InstanceGroupStatus value) {
258 m_statusHasBeenSet = true;
259 m_status = value;
260 }
262 SetStatus(value);
263 return *this;
264 }
266
268
276 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
277 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
278 template <typename TrainingPlanArnT = Aws::String>
279 void SetTrainingPlanArn(TrainingPlanArnT&& value) {
280 m_trainingPlanArnHasBeenSet = true;
281 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
282 }
283 template <typename TrainingPlanArnT = Aws::String>
285 SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value));
286 return *this;
287 }
289
291
295 inline const Aws::String& GetTrainingPlanStatus() const { return m_trainingPlanStatus; }
296 inline bool TrainingPlanStatusHasBeenSet() const { return m_trainingPlanStatusHasBeenSet; }
297 template <typename TrainingPlanStatusT = Aws::String>
298 void SetTrainingPlanStatus(TrainingPlanStatusT&& value) {
299 m_trainingPlanStatusHasBeenSet = true;
300 m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value);
301 }
302 template <typename TrainingPlanStatusT = Aws::String>
304 SetTrainingPlanStatus(std::forward<TrainingPlanStatusT>(value));
305 return *this;
306 }
308
310
315 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
316 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
317 template <typename OverrideVpcConfigT = VpcConfig>
318 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) {
319 m_overrideVpcConfigHasBeenSet = true;
320 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
321 }
322 template <typename OverrideVpcConfigT = VpcConfig>
324 SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value));
325 return *this;
326 }
328
330
334 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
335 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
336 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
337 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) {
338 m_scheduledUpdateConfigHasBeenSet = true;
339 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
340 }
341 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
343 SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value));
344 return *this;
345 }
347
349
353 inline const Aws::String& GetCurrentImageId() const { return m_currentImageId; }
354 inline bool CurrentImageIdHasBeenSet() const { return m_currentImageIdHasBeenSet; }
355 template <typename CurrentImageIdT = Aws::String>
356 void SetCurrentImageId(CurrentImageIdT&& value) {
357 m_currentImageIdHasBeenSet = true;
358 m_currentImageId = std::forward<CurrentImageIdT>(value);
359 }
360 template <typename CurrentImageIdT = Aws::String>
362 SetCurrentImageId(std::forward<CurrentImageIdT>(value));
363 return *this;
364 }
366
368
371 inline const Aws::String& GetDesiredImageId() const { return m_desiredImageId; }
372 inline bool DesiredImageIdHasBeenSet() const { return m_desiredImageIdHasBeenSet; }
373 template <typename DesiredImageIdT = Aws::String>
374 void SetDesiredImageId(DesiredImageIdT&& value) {
375 m_desiredImageIdHasBeenSet = true;
376 m_desiredImageId = std::forward<DesiredImageIdT>(value);
377 }
378 template <typename DesiredImageIdT = Aws::String>
380 SetDesiredImageId(std::forward<DesiredImageIdT>(value));
381 return *this;
382 }
384
386
391 inline const Aws::Map<ActiveClusterOperationName, int>& GetActiveOperations() const { return m_activeOperations; }
392 inline bool ActiveOperationsHasBeenSet() const { return m_activeOperationsHasBeenSet; }
393 template <typename ActiveOperationsT = Aws::Map<ActiveClusterOperationName, int>>
394 void SetActiveOperations(ActiveOperationsT&& value) {
395 m_activeOperationsHasBeenSet = true;
396 m_activeOperations = std::forward<ActiveOperationsT>(value);
397 }
398 template <typename ActiveOperationsT = Aws::Map<ActiveClusterOperationName, int>>
400 SetActiveOperations(std::forward<ActiveOperationsT>(value));
401 return *this;
402 }
404 m_activeOperationsHasBeenSet = true;
405 m_activeOperations.emplace(key, value);
406 return *this;
407 }
409
411
415 inline const ClusterKubernetesConfigDetails& GetKubernetesConfig() const { return m_kubernetesConfig; }
416 inline bool KubernetesConfigHasBeenSet() const { return m_kubernetesConfigHasBeenSet; }
417 template <typename KubernetesConfigT = ClusterKubernetesConfigDetails>
418 void SetKubernetesConfig(KubernetesConfigT&& value) {
419 m_kubernetesConfigHasBeenSet = true;
420 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
421 }
422 template <typename KubernetesConfigT = ClusterKubernetesConfigDetails>
424 SetKubernetesConfig(std::forward<KubernetesConfigT>(value));
425 return *this;
426 }
428
430
433 inline const ClusterCapacityRequirements& GetCapacityRequirements() const { return m_capacityRequirements; }
434 inline bool CapacityRequirementsHasBeenSet() const { return m_capacityRequirementsHasBeenSet; }
435 template <typename CapacityRequirementsT = ClusterCapacityRequirements>
436 void SetCapacityRequirements(CapacityRequirementsT&& value) {
437 m_capacityRequirementsHasBeenSet = true;
438 m_capacityRequirements = std::forward<CapacityRequirementsT>(value);
439 }
440 template <typename CapacityRequirementsT = ClusterCapacityRequirements>
442 SetCapacityRequirements(std::forward<CapacityRequirementsT>(value));
443 return *this;
444 }
446
448
462 inline int GetTargetStateCount() const { return m_targetStateCount; }
463 inline bool TargetStateCountHasBeenSet() const { return m_targetStateCountHasBeenSet; }
464 inline void SetTargetStateCount(int value) {
465 m_targetStateCountHasBeenSet = true;
466 m_targetStateCount = value;
467 }
469 SetTargetStateCount(value);
470 return *this;
471 }
473
475
482 inline SoftwareUpdateStatus GetSoftwareUpdateStatus() const { return m_softwareUpdateStatus; }
483 inline bool SoftwareUpdateStatusHasBeenSet() const { return m_softwareUpdateStatusHasBeenSet; }
485 m_softwareUpdateStatusHasBeenSet = true;
486 m_softwareUpdateStatus = value;
487 }
490 return *this;
491 }
493
495
496 inline const DeploymentConfiguration& GetActiveSoftwareUpdateConfig() const { return m_activeSoftwareUpdateConfig; }
497 inline bool ActiveSoftwareUpdateConfigHasBeenSet() const { return m_activeSoftwareUpdateConfigHasBeenSet; }
498 template <typename ActiveSoftwareUpdateConfigT = DeploymentConfiguration>
499 void SetActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT&& value) {
500 m_activeSoftwareUpdateConfigHasBeenSet = true;
501 m_activeSoftwareUpdateConfig = std::forward<ActiveSoftwareUpdateConfigT>(value);
502 }
503 template <typename ActiveSoftwareUpdateConfigT = DeploymentConfiguration>
504 ClusterInstanceGroupDetails& WithActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT&& value) {
505 SetActiveSoftwareUpdateConfig(std::forward<ActiveSoftwareUpdateConfigT>(value));
506 return *this;
507 }
509 private:
510 int m_currentCount{0};
511
512 int m_targetCount{0};
513
514 int m_minCount{0};
515
516 Aws::String m_instanceGroupName;
517
519
520 ClusterLifeCycleConfig m_lifeCycleConfig;
521
522 Aws::String m_executionRole;
523
524 int m_threadsPerCore{0};
525
526 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
527
528 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
529
531
532 Aws::String m_trainingPlanArn;
533
534 Aws::String m_trainingPlanStatus;
535
536 VpcConfig m_overrideVpcConfig;
537
538 ScheduledUpdateConfig m_scheduledUpdateConfig;
539
540 Aws::String m_currentImageId;
541
542 Aws::String m_desiredImageId;
543
545
546 ClusterKubernetesConfigDetails m_kubernetesConfig;
547
548 ClusterCapacityRequirements m_capacityRequirements;
549
550 int m_targetStateCount{0};
551
553
554 DeploymentConfiguration m_activeSoftwareUpdateConfig;
555 bool m_currentCountHasBeenSet = false;
556 bool m_targetCountHasBeenSet = false;
557 bool m_minCountHasBeenSet = false;
558 bool m_instanceGroupNameHasBeenSet = false;
559 bool m_instanceTypeHasBeenSet = false;
560 bool m_lifeCycleConfigHasBeenSet = false;
561 bool m_executionRoleHasBeenSet = false;
562 bool m_threadsPerCoreHasBeenSet = false;
563 bool m_instanceStorageConfigsHasBeenSet = false;
564 bool m_onStartDeepHealthChecksHasBeenSet = false;
565 bool m_statusHasBeenSet = false;
566 bool m_trainingPlanArnHasBeenSet = false;
567 bool m_trainingPlanStatusHasBeenSet = false;
568 bool m_overrideVpcConfigHasBeenSet = false;
569 bool m_scheduledUpdateConfigHasBeenSet = false;
570 bool m_currentImageIdHasBeenSet = false;
571 bool m_desiredImageIdHasBeenSet = false;
572 bool m_activeOperationsHasBeenSet = false;
573 bool m_kubernetesConfigHasBeenSet = false;
574 bool m_capacityRequirementsHasBeenSet = false;
575 bool m_targetStateCountHasBeenSet = false;
576 bool m_softwareUpdateStatusHasBeenSet = false;
577 bool m_activeSoftwareUpdateConfigHasBeenSet = false;
578};
579
580} // namespace Model
581} // namespace SageMaker
582} // namespace Aws
ClusterInstanceGroupDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
ClusterInstanceGroupDetails & WithCurrentImageId(CurrentImageIdT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterInstanceGroupDetails & WithMinCount(int value)
ClusterInstanceGroupDetails & WithCapacityRequirements(CapacityRequirementsT &&value)
ClusterInstanceGroupDetails & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupDetails & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupDetails & AddActiveOperations(ActiveClusterOperationName key, int value)
ClusterInstanceGroupDetails & WithTrainingPlanStatus(TrainingPlanStatusT &&value)
ClusterInstanceGroupDetails & WithSoftwareUpdateStatus(SoftwareUpdateStatus value)
ClusterInstanceGroupDetails & WithStatus(InstanceGroupStatus value)
ClusterInstanceGroupDetails & WithActiveOperations(ActiveOperationsT &&value)
const Aws::Map< ActiveClusterOperationName, int > & GetActiveOperations() const
ClusterInstanceGroupDetails & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
ClusterInstanceGroupDetails & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterInstanceGroupDetails & WithThreadsPerCore(int value)
ClusterInstanceGroupDetails & WithTargetCount(int value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails()=default
ClusterInstanceGroupDetails & WithTargetStateCount(int value)
ClusterInstanceGroupDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
const ClusterKubernetesConfigDetails & GetKubernetesConfig() const
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 & WithActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT &&value)
ClusterInstanceGroupDetails & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT &&value)
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
const DeploymentConfiguration & GetActiveSoftwareUpdateConfig() const
const ScheduledUpdateConfig & GetScheduledUpdateConfig() const
ClusterInstanceGroupDetails & WithKubernetesConfig(KubernetesConfigT &&value)
const ClusterCapacityRequirements & GetCapacityRequirements() const
ClusterInstanceGroupDetails & WithDesiredImageId(DesiredImageIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue