AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ClusterRestrictedInstanceGroupSpecification.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/VpcConfig.h>
12#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
13#include <aws/sagemaker/model/EnvironmentConfig.h>
14#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
15#include <aws/sagemaker/model/DeepHealthCheckType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SAGEMAKER_API ClusterRestrictedInstanceGroupSpecification() = default;
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline int GetInstanceCount() const { return m_instanceCount; }
54 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
55 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
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) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
67 template<typename InstanceGroupNameT = Aws::String>
68 ClusterRestrictedInstanceGroupSpecification& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
70
72
75 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
76 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
77 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
80
82
86 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
87 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
88 template<typename ExecutionRoleT = Aws::String>
89 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
90 template<typename ExecutionRoleT = Aws::String>
91 ClusterRestrictedInstanceGroupSpecification& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
93
95
105 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
106 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
107 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
110
112
116 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
117 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
118 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
119 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
120 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
121 ClusterRestrictedInstanceGroupSpecification& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) { SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value)); return *this;}
122 template<typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
123 ClusterRestrictedInstanceGroupSpecification& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value)); return *this; }
125
127
131 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const { return m_onStartDeepHealthChecks; }
132 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
133 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
134 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
135 template<typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
136 ClusterRestrictedInstanceGroupSpecification& WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { SetOnStartDeepHealthChecks(std::forward<OnStartDeepHealthChecksT>(value)); return *this;}
137 inline ClusterRestrictedInstanceGroupSpecification& AddOnStartDeepHealthChecks(DeepHealthCheckType value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
139
141
148 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
149 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
150 template<typename TrainingPlanArnT = Aws::String>
151 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
152 template<typename TrainingPlanArnT = Aws::String>
153 ClusterRestrictedInstanceGroupSpecification& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
155
157
158 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
159 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
160 template<typename OverrideVpcConfigT = VpcConfig>
161 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet = true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
162 template<typename OverrideVpcConfigT = VpcConfig>
163 ClusterRestrictedInstanceGroupSpecification& WithOverrideVpcConfig(OverrideVpcConfigT&& value) { SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value)); return *this;}
165
167
168 inline const ScheduledUpdateConfig& GetScheduledUpdateConfig() const { return m_scheduledUpdateConfig; }
169 inline bool ScheduledUpdateConfigHasBeenSet() const { return m_scheduledUpdateConfigHasBeenSet; }
170 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
171 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet = true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
172 template<typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
173 ClusterRestrictedInstanceGroupSpecification& WithScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { SetScheduledUpdateConfig(std::forward<ScheduledUpdateConfigT>(value)); return *this;}
175
177
180 inline const EnvironmentConfig& GetEnvironmentConfig() const { return m_environmentConfig; }
181 inline bool EnvironmentConfigHasBeenSet() const { return m_environmentConfigHasBeenSet; }
182 template<typename EnvironmentConfigT = EnvironmentConfig>
183 void SetEnvironmentConfig(EnvironmentConfigT&& value) { m_environmentConfigHasBeenSet = true; m_environmentConfig = std::forward<EnvironmentConfigT>(value); }
184 template<typename EnvironmentConfigT = EnvironmentConfig>
185 ClusterRestrictedInstanceGroupSpecification& WithEnvironmentConfig(EnvironmentConfigT&& value) { SetEnvironmentConfig(std::forward<EnvironmentConfigT>(value)); return *this;}
187 private:
188
189 int m_instanceCount{0};
190 bool m_instanceCountHasBeenSet = false;
191
192 Aws::String m_instanceGroupName;
193 bool m_instanceGroupNameHasBeenSet = false;
194
196 bool m_instanceTypeHasBeenSet = false;
197
198 Aws::String m_executionRole;
199 bool m_executionRoleHasBeenSet = false;
200
201 int m_threadsPerCore{0};
202 bool m_threadsPerCoreHasBeenSet = false;
203
204 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
205 bool m_instanceStorageConfigsHasBeenSet = false;
206
207 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
208 bool m_onStartDeepHealthChecksHasBeenSet = false;
209
210 Aws::String m_trainingPlanArn;
211 bool m_trainingPlanArnHasBeenSet = false;
212
213 VpcConfig m_overrideVpcConfig;
214 bool m_overrideVpcConfigHasBeenSet = false;
215
216 ScheduledUpdateConfig m_scheduledUpdateConfig;
217 bool m_scheduledUpdateConfigHasBeenSet = false;
218
219 EnvironmentConfig m_environmentConfig;
220 bool m_environmentConfigHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace SageMaker
225} // 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