AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ClusterRestrictedInstanceGroupDetails.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/InstanceGroupStatus.h>
12#include <aws/sagemaker/model/VpcConfig.h>
13#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
14#include <aws/sagemaker/model/EnvironmentConfigDetails.h>
15#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
16#include <aws/sagemaker/model/DeepHealthCheckType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SageMaker
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupDetails() = default;
46 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline int GetCurrentCount() const { return m_currentCount; }
55 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
56 inline void SetCurrentCount(int value) { m_currentCountHasBeenSet = true; m_currentCount = value; }
59
61
65 inline int GetTargetCount() const { return m_targetCount; }
66 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
67 inline void SetTargetCount(int value) { m_targetCountHasBeenSet = true; m_targetCount = value; }
68 inline ClusterRestrictedInstanceGroupDetails& WithTargetCount(int value) { SetTargetCount(value); return *this;}
70
72
76 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
77 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
78 template<typename InstanceGroupNameT = Aws::String>
79 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
80 template<typename InstanceGroupNameT = Aws::String>
81 ClusterRestrictedInstanceGroupDetails& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
83
85
89 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
90 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
91 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
94
96
99 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
100 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
101 template<typename ExecutionRoleT = Aws::String>
102 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
103 template<typename ExecutionRoleT = Aws::String>
104 ClusterRestrictedInstanceGroupDetails& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
106
108
118 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
119 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
120 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
123
125
129 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
130 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
131 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
132 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
133 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
134 ClusterRestrictedInstanceGroupDetails& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) { SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value)); return *this;}
135 template<typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
136 ClusterRestrictedInstanceGroupDetails& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value)); return *this; }
138
140
144 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
145 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
146 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
147 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
148 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
149 ClusterRestrictedInstanceGroupDetails& WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value)); return *this;}
150 inline ClusterRestrictedInstanceGroupDetails& AddOnStartDeepHealthChecks(DeepHealthCheckType value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
152
154
166 inline InstanceGroupStatus GetStatus() const { return m_status; }
167 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
168 inline void SetStatus(InstanceGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
171
173
180 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
181 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
182 template<typename TrainingPlanArnT = Aws::String>
183 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
184 template<typename TrainingPlanArnT = Aws::String>
185 ClusterRestrictedInstanceGroupDetails& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
187
189
193 inline const Aws::String& GetTrainingPlanStatus() const { return m_trainingPlanStatus; }
194 inline bool TrainingPlanStatusHasBeenSet() const { return m_trainingPlanStatusHasBeenSet; }
195 template<typename TrainingPlanStatusT = Aws::String>
196 void SetTrainingPlanStatus(TrainingPlanStatusT&& value) { m_trainingPlanStatusHasBeenSet = true; m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value); }
197 template<typename TrainingPlanStatusT = Aws::String>
198 ClusterRestrictedInstanceGroupDetails& WithTrainingPlanStatus(TrainingPlanStatusT&& value) { SetTrainingPlanStatus(std::forward<TrainingPlanStatusT>(value)); return *this;}
200
202
203 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
204 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
205 template<typename OverrideVpcConfigT = VpcConfig>
206 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet = true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
207 template<typename OverrideVpcConfigT = VpcConfig>
208 ClusterRestrictedInstanceGroupDetails& WithOverrideVpcConfig(OverrideVpcConfigT&& value) { SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value)); return *this;}
210
212
213 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
214 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
215 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
216 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet = true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
217 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
218 ClusterRestrictedInstanceGroupDetails& WithScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value)); return *this;}
220
222
225 inline const EnvironmentConfigDetails& GetEnvironmentConfig() const { return m_environmentConfig; }
226 inline bool EnvironmentConfigHasBeenSet() const { return m_environmentConfigHasBeenSet; }
227 template<typename EnvironmentConfigT = EnvironmentConfigDetails>
228 void SetEnvironmentConfig(EnvironmentConfigT&& value) { m_environmentConfigHasBeenSet = true; m_environmentConfig = std::forward<EnvironmentConfigT>(value); }
229 template<typename EnvironmentConfigT = EnvironmentConfigDetails>
230 ClusterRestrictedInstanceGroupDetails& WithEnvironmentConfig(EnvironmentConfigT&& value) { SetEnvironmentConfig(std::forward<EnvironmentConfigT>(value)); return *this;}
232 private:
233
234 int m_currentCount{0};
235 bool m_currentCountHasBeenSet = false;
236
237 int m_targetCount{0};
238 bool m_targetCountHasBeenSet = false;
239
240 Aws::String m_instanceGroupName;
241 bool m_instanceGroupNameHasBeenSet = false;
242
244 bool m_instanceTypeHasBeenSet = false;
245
246 Aws::String m_executionRole;
247 bool m_executionRoleHasBeenSet = false;
248
249 int m_threadsPerCore{0};
250 bool m_threadsPerCoreHasBeenSet = false;
251
252 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
253 bool m_instanceStorageConfigsHasBeenSet = false;
254
255 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
256 bool m_onStartDeepHealthChecksHasBeenSet = false;
257
259 bool m_statusHasBeenSet = false;
260
261 Aws::String m_trainingPlanArn;
262 bool m_trainingPlanArnHasBeenSet = false;
263
264 Aws::String m_trainingPlanStatus;
265 bool m_trainingPlanStatusHasBeenSet = false;
266
267 VpcConfig m_overrideVpcConfig;
268 bool m_overrideVpcConfigHasBeenSet = false;
269
270 ScheduledUpdateConfig m_scheduledUpdateConfig;
271 bool m_scheduledUpdateConfigHasBeenSet = false;
272
273 EnvironmentConfigDetails m_environmentConfig;
274 bool m_environmentConfigHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace SageMaker
279} // 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