AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterInstanceGroupDetails.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:
40 AWS_SAGEMAKER_API ClusterInstanceGroupDetails();
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline int GetCurrentCount() const{ return m_currentCount; }
52 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
53 inline void SetCurrentCount(int value) { m_currentCountHasBeenSet = true; m_currentCount = value; }
54 inline ClusterInstanceGroupDetails& WithCurrentCount(int value) { SetCurrentCount(value); return *this;}
56
58
62 inline int GetTargetCount() const{ return m_targetCount; }
63 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
64 inline void SetTargetCount(int value) { m_targetCountHasBeenSet = true; m_targetCount = value; }
65 inline ClusterInstanceGroupDetails& WithTargetCount(int value) { SetTargetCount(value); return *this;}
67
69
72 inline const Aws::String& GetInstanceGroupName() const{ return m_instanceGroupName; }
73 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
74 inline void SetInstanceGroupName(const Aws::String& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = value; }
75 inline void SetInstanceGroupName(Aws::String&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::move(value); }
76 inline void SetInstanceGroupName(const char* value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName.assign(value); }
78 inline ClusterInstanceGroupDetails& WithInstanceGroupName(Aws::String&& value) { SetInstanceGroupName(std::move(value)); return *this;}
79 inline ClusterInstanceGroupDetails& WithInstanceGroupName(const char* value) { SetInstanceGroupName(value); return *this;}
81
83
86 inline const ClusterInstanceType& GetInstanceType() const{ return m_instanceType; }
87 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
88 inline void SetInstanceType(const ClusterInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
89 inline void SetInstanceType(ClusterInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
91 inline ClusterInstanceGroupDetails& WithInstanceType(ClusterInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
93
95
98 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const{ return m_lifeCycleConfig; }
99 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
100 inline void SetLifeCycleConfig(const ClusterLifeCycleConfig& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = value; }
101 inline void SetLifeCycleConfig(ClusterLifeCycleConfig&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::move(value); }
105
107
110 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
111 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
112 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
113 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
114 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
115 inline ClusterInstanceGroupDetails& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
116 inline ClusterInstanceGroupDetails& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
117 inline ClusterInstanceGroupDetails& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
119
121
131 inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
132 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
133 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
134 inline ClusterInstanceGroupDetails& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
136
138
142 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const{ return m_instanceStorageConfigs; }
143 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
144 inline void SetInstanceStorageConfigs(const Aws::Vector<ClusterInstanceStorageConfig>& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = value; }
145 inline void SetInstanceStorageConfigs(Aws::Vector<ClusterInstanceStorageConfig>&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::move(value); }
148 inline ClusterInstanceGroupDetails& AddInstanceStorageConfigs(const ClusterInstanceStorageConfig& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(value); return *this; }
149 inline ClusterInstanceGroupDetails& AddInstanceStorageConfigs(ClusterInstanceStorageConfig&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(std::move(value)); return *this; }
151
153
157 inline const Aws::Vector<DeepHealthCheckType>& GetOnStartDeepHealthChecks() const{ return m_onStartDeepHealthChecks; }
158 inline bool OnStartDeepHealthChecksHasBeenSet() const { return m_onStartDeepHealthChecksHasBeenSet; }
159 inline void SetOnStartDeepHealthChecks(const Aws::Vector<DeepHealthCheckType>& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = value; }
160 inline void SetOnStartDeepHealthChecks(Aws::Vector<DeepHealthCheckType>&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks = std::move(value); }
163 inline ClusterInstanceGroupDetails& AddOnStartDeepHealthChecks(const DeepHealthCheckType& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(value); return *this; }
164 inline ClusterInstanceGroupDetails& AddOnStartDeepHealthChecks(DeepHealthCheckType&& value) { m_onStartDeepHealthChecksHasBeenSet = true; m_onStartDeepHealthChecks.push_back(std::move(value)); return *this; }
166 private:
167
168 int m_currentCount;
169 bool m_currentCountHasBeenSet = false;
170
171 int m_targetCount;
172 bool m_targetCountHasBeenSet = false;
173
174 Aws::String m_instanceGroupName;
175 bool m_instanceGroupNameHasBeenSet = false;
176
177 ClusterInstanceType m_instanceType;
178 bool m_instanceTypeHasBeenSet = false;
179
180 ClusterLifeCycleConfig m_lifeCycleConfig;
181 bool m_lifeCycleConfigHasBeenSet = false;
182
183 Aws::String m_executionRole;
184 bool m_executionRoleHasBeenSet = false;
185
186 int m_threadsPerCore;
187 bool m_threadsPerCoreHasBeenSet = false;
188
189 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
190 bool m_instanceStorageConfigsHasBeenSet = false;
191
192 Aws::Vector<DeepHealthCheckType> m_onStartDeepHealthChecks;
193 bool m_onStartDeepHealthChecksHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace SageMaker
198} // namespace Aws
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
void SetInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
ClusterInstanceGroupDetails & WithLifeCycleConfig(ClusterLifeCycleConfig &&value)
ClusterInstanceGroupDetails & WithOnStartDeepHealthChecks(const Aws::Vector< DeepHealthCheckType > &value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&value)
ClusterInstanceGroupDetails & WithThreadsPerCore(int value)
ClusterInstanceGroupDetails & AddOnStartDeepHealthChecks(DeepHealthCheckType &&value)
ClusterInstanceGroupDetails & WithTargetCount(int value)
ClusterInstanceGroupDetails & WithLifeCycleConfig(const ClusterLifeCycleConfig &value)
ClusterInstanceGroupDetails & WithExecutionRole(const char *value)
ClusterInstanceGroupDetails & WithOnStartDeepHealthChecks(Aws::Vector< DeepHealthCheckType > &&value)
ClusterInstanceGroupDetails & AddOnStartDeepHealthChecks(const DeepHealthCheckType &value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifeCycleConfig(const ClusterLifeCycleConfig &value)
ClusterInstanceGroupDetails & WithCurrentCount(int value)
ClusterInstanceGroupDetails & AddInstanceStorageConfigs(ClusterInstanceStorageConfig &&value)
ClusterInstanceGroupDetails & WithInstanceGroupName(Aws::String &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterInstanceGroupDetails & WithInstanceGroupName(const Aws::String &value)
ClusterInstanceGroupDetails & WithInstanceType(ClusterInstanceType &&value)
ClusterInstanceGroupDetails & WithExecutionRole(const Aws::String &value)
void SetOnStartDeepHealthChecks(const Aws::Vector< DeepHealthCheckType > &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceGroupDetails & WithExecutionRole(Aws::String &&value)
ClusterInstanceGroupDetails & WithInstanceGroupName(const char *value)
void SetOnStartDeepHealthChecks(Aws::Vector< DeepHealthCheckType > &&value)
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
ClusterInstanceGroupDetails & WithInstanceType(const ClusterInstanceType &value)
ClusterInstanceGroupDetails & AddInstanceStorageConfigs(const ClusterInstanceStorageConfig &value)
void SetInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&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