AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ClusterRestrictedInstanceGroupDetails.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/EnvironmentConfigDetails.h>
14#include <aws/sagemaker/model/InstanceGroupStatus.h>
15#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
16#include <aws/sagemaker/model/VpcConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
29
37 public:
38 AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupDetails() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline int GetCurrentCount() const { return m_currentCount; }
49 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
50 inline void SetCurrentCount(int value) {
51 m_currentCountHasBeenSet = true;
52 m_currentCount = value;
53 }
55 SetCurrentCount(value);
56 return *this;
57 }
59
61
65 inline int GetTargetCount() const { return m_targetCount; }
66 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
67 inline void SetTargetCount(int value) {
68 m_targetCountHasBeenSet = true;
69 m_targetCount = value;
70 }
72 SetTargetCount(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
83 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
84 template <typename InstanceGroupNameT = Aws::String>
85 void SetInstanceGroupName(InstanceGroupNameT&& value) {
86 m_instanceGroupNameHasBeenSet = true;
87 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
88 }
89 template <typename InstanceGroupNameT = Aws::String>
91 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
92 return *this;
93 }
95
97
101 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
102 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
104 m_instanceTypeHasBeenSet = true;
105 m_instanceType = value;
106 }
108 SetInstanceType(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
118 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
119 template <typename ExecutionRoleT = Aws::String>
120 void SetExecutionRole(ExecutionRoleT&& value) {
121 m_executionRoleHasBeenSet = true;
122 m_executionRole = std::forward<ExecutionRoleT>(value);
123 }
124 template <typename ExecutionRoleT = Aws::String>
126 SetExecutionRole(std::forward<ExecutionRoleT>(value));
127 return *this;
128 }
130
132
142 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
143 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
144 inline void SetThreadsPerCore(int value) {
145 m_threadsPerCoreHasBeenSet = true;
146 m_threadsPerCore = value;
147 }
149 SetThreadsPerCore(value);
150 return *this;
151 }
153
155
159 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
160 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
161 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
162 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
163 m_instanceStorageConfigsHasBeenSet = true;
164 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
165 }
166 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
168 SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value));
169 return *this;
170 }
171 template <typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
173 m_instanceStorageConfigsHasBeenSet = true;
174 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
185 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
186 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
187 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) {
188 m_onStartDeepHealthChecksHasBeenSet = true;
189 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
190 }
191 template <typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
193 SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value));
194 return *this;
195 }
197 m_onStartDeepHealthChecksHasBeenSet = true;
198 m_onStartDeepHealthChecks.push_back(value);
199 return *this;
200 }
202
204
216 inline InstanceGroupStatus GetStatus() const { return m_status; }
217 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
218 inline void SetStatus(InstanceGroupStatus value) {
219 m_statusHasBeenSet = true;
220 m_status = value;
221 }
223 SetStatus(value);
224 return *this;
225 }
227
229
236 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
237 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
238 template <typename TrainingPlanArnT = Aws::String>
239 void SetTrainingPlanArn(TrainingPlanArnT&& value) {
240 m_trainingPlanArnHasBeenSet = true;
241 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
242 }
243 template <typename TrainingPlanArnT = Aws::String>
245 SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value));
246 return *this;
247 }
249
251
255 inline const Aws::String& GetTrainingPlanStatus() const { return m_trainingPlanStatus; }
256 inline bool TrainingPlanStatusHasBeenSet() const { return m_trainingPlanStatusHasBeenSet; }
257 template <typename TrainingPlanStatusT = Aws::String>
258 void SetTrainingPlanStatus(TrainingPlanStatusT&& value) {
259 m_trainingPlanStatusHasBeenSet = true;
260 m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value);
261 }
262 template <typename TrainingPlanStatusT = Aws::String>
264 SetTrainingPlanStatus(std::forward<TrainingPlanStatusT>(value));
265 return *this;
266 }
268
270
271 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
272 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
273 template <typename OverrideVpcConfigT = VpcConfig>
274 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) {
275 m_overrideVpcConfigHasBeenSet = true;
276 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
277 }
278 template <typename OverrideVpcConfigT = VpcConfig>
280 SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value));
281 return *this;
282 }
284
286
287 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
288 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
289 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
290 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) {
291 m_scheduledUpdateConfigHasBeenSet = true;
292 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
293 }
294 template <typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
296 SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value));
297 return *this;
298 }
300
302
305 inline const EnvironmentConfigDetails& GetEnvironmentConfig() const { return m_environmentConfig; }
306 inline bool EnvironmentConfigHasBeenSet() const { return m_environmentConfigHasBeenSet; }
307 template <typename EnvironmentConfigT = EnvironmentConfigDetails>
308 void SetEnvironmentConfig(EnvironmentConfigT&& value) {
309 m_environmentConfigHasBeenSet = true;
310 m_environmentConfig = std::forward<EnvironmentConfigT>(value);
311 }
312 template <typename EnvironmentConfigT = EnvironmentConfigDetails>
314 SetEnvironmentConfig(std::forward<EnvironmentConfigT>(value));
315 return *this;
316 }
318 private:
319 int m_currentCount{0};
320
321 int m_targetCount{0};
322
323 Aws::String m_instanceGroupName;
324
326
327 Aws::String m_executionRole;
328
329 int m_threadsPerCore{0};
330
331 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
332
333 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
334
336
337 Aws::String m_trainingPlanArn;
338
339 Aws::String m_trainingPlanStatus;
340
341 VpcConfig m_overrideVpcConfig;
342
343 ScheduledUpdateConfig m_scheduledUpdateConfig;
344
345 EnvironmentConfigDetails m_environmentConfig;
346 bool m_currentCountHasBeenSet = false;
347 bool m_targetCountHasBeenSet = false;
348 bool m_instanceGroupNameHasBeenSet = false;
349 bool m_instanceTypeHasBeenSet = false;
350 bool m_executionRoleHasBeenSet = false;
351 bool m_threadsPerCoreHasBeenSet = false;
352 bool m_instanceStorageConfigsHasBeenSet = false;
353 bool m_onStartDeepHealthChecksHasBeenSet = false;
354 bool m_statusHasBeenSet = false;
355 bool m_trainingPlanArnHasBeenSet = false;
356 bool m_trainingPlanStatusHasBeenSet = false;
357 bool m_overrideVpcConfigHasBeenSet = false;
358 bool m_scheduledUpdateConfigHasBeenSet = false;
359 bool m_environmentConfigHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace SageMaker
364} // namespace Aws
ClusterRestrictedInstanceGroupDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
ClusterRestrictedInstanceGroupDetails & WithExecutionRole(ExecutionRoleT &&value)
ClusterRestrictedInstanceGroupDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
ClusterRestrictedInstanceGroupDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterRestrictedInstanceGroupDetails & WithStatus(InstanceGroupStatus value)
AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupDetails(Aws::Utils::Json::JsonView jsonValue)
ClusterRestrictedInstanceGroupDetails & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
ClusterRestrictedInstanceGroupDetails & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterRestrictedInstanceGroupDetails & WithTrainingPlanStatus(TrainingPlanStatusT &&value)
ClusterRestrictedInstanceGroupDetails & WithInstanceType(ClusterInstanceType value)
ClusterRestrictedInstanceGroupDetails & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterRestrictedInstanceGroupDetails & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterRestrictedInstanceGroupDetails & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterRestrictedInstanceGroupDetails & WithEnvironmentConfig(EnvironmentConfigT &&value)
AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue