AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterRestrictedInstanceGroupSpecification.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/ClusterInstanceStorageConfig.h>
11#include <aws/sagemaker/model/ClusterInstanceType.h>
12#include <aws/sagemaker/model/DeepHealthCheckType.h>
13#include <aws/sagemaker/model/EnvironmentConfig.h>
14#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
15#include <aws/sagemaker/model/VpcConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
36 public:
37 AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupSpecification() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline int GetInstanceCount() const { return m_instanceCount; }
48 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
49 inline void SetInstanceCount(int value) {
50 m_instanceCountHasBeenSet = true;
51 m_instanceCount = value;
52 }
54 SetInstanceCount(value);
55 return *this;
56 }
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) {
67 m_instanceGroupNameHasBeenSet = true;
68 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
69 }
70 template <typename InstanceGroupNameT = Aws::String>
72 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
73 return *this;
74 }
76
78
81 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
82 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
84 m_instanceTypeHasBeenSet = true;
85 m_instanceType = value;
86 }
88 SetInstanceType(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
99 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
100 template <typename ExecutionRoleT = Aws::String>
101 void SetExecutionRole(ExecutionRoleT&& value) {
102 m_executionRoleHasBeenSet = true;
103 m_executionRole = std::forward<ExecutionRoleT>(value);
104 }
105 template <typename ExecutionRoleT = Aws::String>
107 SetExecutionRole(std::forward<ExecutionRoleT>(value));
108 return *this;
109 }
111
113
123 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
124 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
125 inline void SetThreadsPerCore(int value) {
126 m_threadsPerCoreHasBeenSet = true;
127 m_threadsPerCore = value;
128 }
130 SetThreadsPerCore(value);
131 return *this;
132 }
134
136
140 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
141 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
142 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
143 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
144 m_instanceStorageConfigsHasBeenSet = true;
145 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
146 }
147 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
149 SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value));
150 return *this;
151 }
152 template <typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
154 m_instanceStorageConfigsHasBeenSet = true;
155 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
166 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
167 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
168 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) {
169 m_onStartDeepHealthChecksHasBeenSet = true;
170 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
171 }
172 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
174 SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value));
175 return *this;
176 }
178 m_onStartDeepHealthChecksHasBeenSet = true;
179 m_onStartDeepHealthChecks.push_back(value);
180 return *this;
181 }
183
185
192 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
193 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
194 template <typename TrainingPlanArnT = Aws::String>
195 void SetTrainingPlanArn(TrainingPlanArnT&& value) {
196 m_trainingPlanArnHasBeenSet = true;
197 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
198 }
199 template <typename TrainingPlanArnT = Aws::String>
201 SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value));
202 return *this;
203 }
205
207
208 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
209 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
210 template <typename OverrideVpcConfigT = VpcConfig>
211 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) {
212 m_overrideVpcConfigHasBeenSet = true;
213 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
214 }
215 template <typename OverrideVpcConfigT = VpcConfig>
217 SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value));
218 return *this;
219 }
221
223
224 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
225 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
226 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
227 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) {
228 m_scheduledUpdateConfigHasBeenSet = true;
229 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
230 }
231 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
233 SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value));
234 return *this;
235 }
237
239
242 inline const EnvironmentConfig& GetEnvironmentConfig() const { return m_environmentConfig; }
243 inline bool EnvironmentConfigHasBeenSet() const { return m_environmentConfigHasBeenSet; }
244 template <typename EnvironmentConfigT = EnvironmentConfig>
245 void SetEnvironmentConfig(EnvironmentConfigT&& value) {
246 m_environmentConfigHasBeenSet = true;
247 m_environmentConfig = std::forward<EnvironmentConfigT>(value);
248 }
249 template <typename EnvironmentConfigT = EnvironmentConfig>
251 SetEnvironmentConfig(std::forward<EnvironmentConfigT>(value));
252 return *this;
253 }
255 private:
256 int m_instanceCount{0};
257
258 Aws::String m_instanceGroupName;
259
261
262 Aws::String m_executionRole;
263
264 int m_threadsPerCore{0};
265
266 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
267
268 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
269
270 Aws::String m_trainingPlanArn;
271
272 VpcConfig m_overrideVpcConfig;
273
274 ScheduledUpdateConfig m_scheduledUpdateConfig;
275
276 EnvironmentConfig m_environmentConfig;
277 bool m_instanceCountHasBeenSet = false;
278 bool m_instanceGroupNameHasBeenSet = false;
279 bool m_instanceTypeHasBeenSet = false;
280 bool m_executionRoleHasBeenSet = false;
281 bool m_threadsPerCoreHasBeenSet = false;
282 bool m_instanceStorageConfigsHasBeenSet = false;
283 bool m_onStartDeepHealthChecksHasBeenSet = false;
284 bool m_trainingPlanArnHasBeenSet = false;
285 bool m_overrideVpcConfigHasBeenSet = false;
286 bool m_scheduledUpdateConfigHasBeenSet = false;
287 bool m_environmentConfigHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace SageMaker
292} // namespace Aws
AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterRestrictedInstanceGroupSpecification & WithInstanceType(ClusterInstanceType value)
ClusterRestrictedInstanceGroupSpecification & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterRestrictedInstanceGroupSpecification & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterRestrictedInstanceGroupSpecification & WithEnvironmentConfig(EnvironmentConfigT &&value)
ClusterRestrictedInstanceGroupSpecification & WithInstanceGroupName(InstanceGroupNameT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterRestrictedInstanceGroupSpecification & WithExecutionRole(ExecutionRoleT &&value)
ClusterRestrictedInstanceGroupSpecification & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupSpecification(Aws::Utils::Json::JsonView jsonValue)
ClusterRestrictedInstanceGroupSpecification & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterRestrictedInstanceGroupSpecification & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterRestrictedInstanceGroupSpecification & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
ClusterRestrictedInstanceGroupSpecification & WithInstanceStorageConfigs(InstanceStorageConfigsT &&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