AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ClusterInstanceStorageConfig.h>
13#include <aws/sagemaker/model/DeepHealthCheckType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
38 {
39 public:
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline int GetInstanceCount() const{ return m_instanceCount; }
52 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
53 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
54 inline ClusterInstanceGroupSpecification& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
56
58
61 inline const Aws::String& GetInstanceGroupName() const{ return m_instanceGroupName; }
62 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
63 inline void SetInstanceGroupName(const Aws::String& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = value; }
64 inline void SetInstanceGroupName(Aws::String&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::move(value); }
65 inline void SetInstanceGroupName(const char* value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName.assign(value); }
68 inline ClusterInstanceGroupSpecification& WithInstanceGroupName(const char* value) { SetInstanceGroupName(value); return *this;}
70
72
75 inline const ClusterInstanceType& GetInstanceType() const{ return m_instanceType; }
76 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
77 inline void SetInstanceType(const ClusterInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
78 inline void SetInstanceType(ClusterInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
82
84
87 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const{ return m_lifeCycleConfig; }
88 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
89 inline void SetLifeCycleConfig(const ClusterLifeCycleConfig& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = value; }
90 inline void SetLifeCycleConfig(ClusterLifeCycleConfig&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::move(value); }
94
96
99 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
100 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
101 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
102 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
103 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
105 inline ClusterInstanceGroupSpecification& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
106 inline ClusterInstanceGroupSpecification& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
108
110
120 inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
121 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
122 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
125
127
131 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const{ return m_instanceStorageConfigs; }
132 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
133 inline void SetInstanceStorageConfigs(const Aws::Vector<ClusterInstanceStorageConfig>& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = value; }
134 inline void SetInstanceStorageConfigs(Aws::Vector<ClusterInstanceStorageConfig>&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::move(value); }
137 inline ClusterInstanceGroupSpecification& AddInstanceStorageConfigs(const ClusterInstanceStorageConfig& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(value); return *this; }
138 inline ClusterInstanceGroupSpecification& AddInstanceStorageConfigs(ClusterInstanceStorageConfig&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(std::move(value)); return *this; }
140
142
146 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const{ return m_onStartDeepHealthChecks; }
147 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
148 inline void SetOnStartDeepHealthChecks(const Aws::Vector<DeepHealthCheckType>& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = value; }
149 inline void SetOnStartDeepHealthChecks(Aws::Vector<DeepHealthCheckType>&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::move(value); }
152 inline ClusterInstanceGroupSpecification& AddOnStartDeepHealthChecks(const DeepHealthCheckType& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
153 inline ClusterInstanceGroupSpecification& AddOnStartDeepHealthChecks(DeepHealthCheckType&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(std::move(value)); return *this; }
155 private:
156
157 int m_instanceCount;
158 bool m_instanceCountHasBeenSet = false;
159
160 Aws::String m_instanceGroupName;
161 bool m_instanceGroupNameHasBeenSet = false;
162
163 ClusterInstanceType m_instanceType;
164 bool m_instanceTypeHasBeenSet = false;
165
166 ClusterLifeCycleConfig m_lifeCycleConfig;
167 bool m_lifeCycleConfigHasBeenSet = false;
168
169 Aws::String m_executionRole;
170 bool m_executionRoleHasBeenSet = false;
171
172 int m_threadsPerCore;
173 bool m_threadsPerCoreHasBeenSet = false;
174
175 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
176 bool m_instanceStorageConfigsHasBeenSet = false;
177
178 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
179 bool m_onStartDeepHealthChecksHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace SageMaker
184} // namespace Aws
void SetInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&value)
ClusterInstanceGroupSpecification & WithInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
ClusterInstanceGroupSpecification & WithInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&value)
ClusterInstanceGroupSpecification & AddInstanceStorageConfigs(const ClusterInstanceStorageConfig &value)
void SetInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterInstanceGroupSpecification & WithInstanceGroupName(const char *value)
ClusterInstanceGroupSpecification & WithLifeCycleConfig(const ClusterLifeCycleConfig &value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceGroupSpecification & WithExecutionRole(Aws::String &&value)
ClusterInstanceGroupSpecification & WithOnStartDeepHealthChecks(Aws::Vector< DeepHealthCheckType > &&value)
void SetOnStartDeepHealthChecks(const Aws::Vector< DeepHealthCheckType > &value)
ClusterInstanceGroupSpecification & WithExecutionRole(const char *value)
ClusterInstanceGroupSpecification & AddInstanceStorageConfigs(ClusterInstanceStorageConfig &&value)
ClusterInstanceGroupSpecification & WithInstanceType(ClusterInstanceType &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceGroupSpecification & WithExecutionRole(const Aws::String &value)
ClusterInstanceGroupSpecification & WithInstanceGroupName(const Aws::String &value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupSpecification & WithInstanceType(const ClusterInstanceType &value)
ClusterInstanceGroupSpecification & WithOnStartDeepHealthChecks(const Aws::Vector< DeepHealthCheckType > &value)
ClusterInstanceGroupSpecification & WithLifeCycleConfig(ClusterLifeCycleConfig &&value)
ClusterInstanceGroupSpecification & AddOnStartDeepHealthChecks(const DeepHealthCheckType &value)
void SetOnStartDeepHealthChecks(Aws::Vector< DeepHealthCheckType > &&value)
ClusterInstanceGroupSpecification & AddOnStartDeepHealthChecks(DeepHealthCheckType &&value)
ClusterInstanceGroupSpecification & WithInstanceGroupName(Aws::String &&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