AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterNodeDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ClusterCapacityType.h>
12#include <aws/sagemaker/model/ClusterInstancePlacement.h>
13#include <aws/sagemaker/model/ClusterInstanceStatusDetails.h>
14#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
15#include <aws/sagemaker/model/ClusterInstanceType.h>
16#include <aws/sagemaker/model/ClusterKubernetesConfigNodeDetails.h>
17#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
18#include <aws/sagemaker/model/UltraServerInfo.h>
19#include <aws/sagemaker/model/VpcConfig.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace SageMaker {
31namespace Model {
32
40 public:
41 AWS_SAGEMAKER_API ClusterNodeDetails() = default;
42 AWS_SAGEMAKER_API ClusterNodeDetails(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
51 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
52 template <typename InstanceGroupNameT = Aws::String>
53 void SetInstanceGroupName(InstanceGroupNameT&& value) {
54 m_instanceGroupNameHasBeenSet = true;
55 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
56 }
57 template <typename InstanceGroupNameT = Aws::String>
58 ClusterNodeDetails& WithInstanceGroupName(InstanceGroupNameT&& value) {
59 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
69 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
70 template <typename InstanceIdT = Aws::String>
71 void SetInstanceId(InstanceIdT&& value) {
72 m_instanceIdHasBeenSet = true;
73 m_instanceId = std::forward<InstanceIdT>(value);
74 }
75 template <typename InstanceIdT = Aws::String>
76 ClusterNodeDetails& WithInstanceId(InstanceIdT&& value) {
77 SetInstanceId(std::forward<InstanceIdT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetNodeLogicalId() const { return m_nodeLogicalId; }
89 inline bool NodeLogicalIdHasBeenSet() const { return m_nodeLogicalIdHasBeenSet; }
90 template <typename NodeLogicalIdT = Aws::String>
91 void SetNodeLogicalId(NodeLogicalIdT&& value) {
92 m_nodeLogicalIdHasBeenSet = true;
93 m_nodeLogicalId = std::forward<NodeLogicalIdT>(value);
94 }
95 template <typename NodeLogicalIdT = Aws::String>
96 ClusterNodeDetails& WithNodeLogicalId(NodeLogicalIdT&& value) {
97 SetNodeLogicalId(std::forward<NodeLogicalIdT>(value));
98 return *this;
99 }
101
103
106 inline const ClusterInstanceStatusDetails& GetInstanceStatus() const { return m_instanceStatus; }
107 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
108 template <typename InstanceStatusT = ClusterInstanceStatusDetails>
109 void SetInstanceStatus(InstanceStatusT&& value) {
110 m_instanceStatusHasBeenSet = true;
111 m_instanceStatus = std::forward<InstanceStatusT>(value);
112 }
113 template <typename InstanceStatusT = ClusterInstanceStatusDetails>
114 ClusterNodeDetails& WithInstanceStatus(InstanceStatusT&& value) {
115 SetInstanceStatus(std::forward<InstanceStatusT>(value));
116 return *this;
117 }
119
121
124 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
125 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
127 m_instanceTypeHasBeenSet = true;
128 m_instanceType = value;
129 }
131 SetInstanceType(value);
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
141 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
142 template <typename LaunchTimeT = Aws::Utils::DateTime>
143 void SetLaunchTime(LaunchTimeT&& value) {
144 m_launchTimeHasBeenSet = true;
145 m_launchTime = std::forward<LaunchTimeT>(value);
146 }
147 template <typename LaunchTimeT = Aws::Utils::DateTime>
148 ClusterNodeDetails& WithLaunchTime(LaunchTimeT&& value) {
149 SetLaunchTime(std::forward<LaunchTimeT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetLastSoftwareUpdateTime() const { return m_lastSoftwareUpdateTime; }
159 inline bool LastSoftwareUpdateTimeHasBeenSet() const { return m_lastSoftwareUpdateTimeHasBeenSet; }
160 template <typename LastSoftwareUpdateTimeT = Aws::Utils::DateTime>
161 void SetLastSoftwareUpdateTime(LastSoftwareUpdateTimeT&& value) {
162 m_lastSoftwareUpdateTimeHasBeenSet = true;
163 m_lastSoftwareUpdateTime = std::forward<LastSoftwareUpdateTimeT>(value);
164 }
165 template <typename LastSoftwareUpdateTimeT = Aws::Utils::DateTime>
166 ClusterNodeDetails& WithLastSoftwareUpdateTime(LastSoftwareUpdateTimeT&& value) {
167 SetLastSoftwareUpdateTime(std::forward<LastSoftwareUpdateTimeT>(value));
168 return *this;
169 }
171
173
176 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
177 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
178 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
179 void SetLifeCycleConfig(LifeCycleConfigT&& value) {
180 m_lifeCycleConfigHasBeenSet = true;
181 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
182 }
183 template <typename LifeCycleConfigT = ClusterLifeCycleConfig>
184 ClusterNodeDetails& WithLifeCycleConfig(LifeCycleConfigT&& value) {
185 SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value));
186 return *this;
187 }
189
191
196 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
197 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
198 template <typename OverrideVpcConfigT = VpcConfig>
199 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) {
200 m_overrideVpcConfigHasBeenSet = true;
201 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
202 }
203 template <typename OverrideVpcConfigT = VpcConfig>
204 ClusterNodeDetails& WithOverrideVpcConfig(OverrideVpcConfigT&& value) {
205 SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value));
206 return *this;
207 }
209
211
215 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
216 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
217 inline void SetThreadsPerCore(int value) {
218 m_threadsPerCoreHasBeenSet = true;
219 m_threadsPerCore = value;
220 }
222 SetThreadsPerCore(value);
223 return *this;
224 }
226
228
232 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
233 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
234 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
235 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
236 m_instanceStorageConfigsHasBeenSet = true;
237 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
238 }
239 template <typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
240 ClusterNodeDetails& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
241 SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value));
242 return *this;
243 }
244 template <typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
245 ClusterNodeDetails& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) {
246 m_instanceStorageConfigsHasBeenSet = true;
247 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetPrivatePrimaryIp() const { return m_privatePrimaryIp; }
257 inline bool PrivatePrimaryIpHasBeenSet() const { return m_privatePrimaryIpHasBeenSet; }
258 template <typename PrivatePrimaryIpT = Aws::String>
259 void SetPrivatePrimaryIp(PrivatePrimaryIpT&& value) {
260 m_privatePrimaryIpHasBeenSet = true;
261 m_privatePrimaryIp = std::forward<PrivatePrimaryIpT>(value);
262 }
263 template <typename PrivatePrimaryIpT = Aws::String>
264 ClusterNodeDetails& WithPrivatePrimaryIp(PrivatePrimaryIpT&& value) {
265 SetPrivatePrimaryIp(std::forward<PrivatePrimaryIpT>(value));
266 return *this;
267 }
269
271
277 inline const Aws::String& GetPrivatePrimaryIpv6() const { return m_privatePrimaryIpv6; }
278 inline bool PrivatePrimaryIpv6HasBeenSet() const { return m_privatePrimaryIpv6HasBeenSet; }
279 template <typename PrivatePrimaryIpv6T = Aws::String>
280 void SetPrivatePrimaryIpv6(PrivatePrimaryIpv6T&& value) {
281 m_privatePrimaryIpv6HasBeenSet = true;
282 m_privatePrimaryIpv6 = std::forward<PrivatePrimaryIpv6T>(value);
283 }
284 template <typename PrivatePrimaryIpv6T = Aws::String>
285 ClusterNodeDetails& WithPrivatePrimaryIpv6(PrivatePrimaryIpv6T&& value) {
286 SetPrivatePrimaryIpv6(std::forward<PrivatePrimaryIpv6T>(value));
287 return *this;
288 }
290
292
295 inline const Aws::String& GetPrivateDnsHostname() const { return m_privateDnsHostname; }
296 inline bool PrivateDnsHostnameHasBeenSet() const { return m_privateDnsHostnameHasBeenSet; }
297 template <typename PrivateDnsHostnameT = Aws::String>
298 void SetPrivateDnsHostname(PrivateDnsHostnameT&& value) {
299 m_privateDnsHostnameHasBeenSet = true;
300 m_privateDnsHostname = std::forward<PrivateDnsHostnameT>(value);
301 }
302 template <typename PrivateDnsHostnameT = Aws::String>
303 ClusterNodeDetails& WithPrivateDnsHostname(PrivateDnsHostnameT&& value) {
304 SetPrivateDnsHostname(std::forward<PrivateDnsHostnameT>(value));
305 return *this;
306 }
308
310
313 inline const ClusterInstancePlacement& GetPlacement() const { return m_placement; }
314 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
315 template <typename PlacementT = ClusterInstancePlacement>
316 void SetPlacement(PlacementT&& value) {
317 m_placementHasBeenSet = true;
318 m_placement = std::forward<PlacementT>(value);
319 }
320 template <typename PlacementT = ClusterInstancePlacement>
321 ClusterNodeDetails& WithPlacement(PlacementT&& value) {
322 SetPlacement(std::forward<PlacementT>(value));
323 return *this;
324 }
326
328
331 inline const Aws::String& GetCurrentImageId() const { return m_currentImageId; }
332 inline bool CurrentImageIdHasBeenSet() const { return m_currentImageIdHasBeenSet; }
333 template <typename CurrentImageIdT = Aws::String>
334 void SetCurrentImageId(CurrentImageIdT&& value) {
335 m_currentImageIdHasBeenSet = true;
336 m_currentImageId = std::forward<CurrentImageIdT>(value);
337 }
338 template <typename CurrentImageIdT = Aws::String>
339 ClusterNodeDetails& WithCurrentImageId(CurrentImageIdT&& value) {
340 SetCurrentImageId(std::forward<CurrentImageIdT>(value));
341 return *this;
342 }
344
346
349 inline const Aws::String& GetDesiredImageId() const { return m_desiredImageId; }
350 inline bool DesiredImageIdHasBeenSet() const { return m_desiredImageIdHasBeenSet; }
351 template <typename DesiredImageIdT = Aws::String>
352 void SetDesiredImageId(DesiredImageIdT&& value) {
353 m_desiredImageIdHasBeenSet = true;
354 m_desiredImageId = std::forward<DesiredImageIdT>(value);
355 }
356 template <typename DesiredImageIdT = Aws::String>
357 ClusterNodeDetails& WithDesiredImageId(DesiredImageIdT&& value) {
358 SetDesiredImageId(std::forward<DesiredImageIdT>(value));
359 return *this;
360 }
362
364
367 inline const UltraServerInfo& GetUltraServerInfo() const { return m_ultraServerInfo; }
368 inline bool UltraServerInfoHasBeenSet() const { return m_ultraServerInfoHasBeenSet; }
369 template <typename UltraServerInfoT = UltraServerInfo>
370 void SetUltraServerInfo(UltraServerInfoT&& value) {
371 m_ultraServerInfoHasBeenSet = true;
372 m_ultraServerInfo = std::forward<UltraServerInfoT>(value);
373 }
374 template <typename UltraServerInfoT = UltraServerInfo>
375 ClusterNodeDetails& WithUltraServerInfo(UltraServerInfoT&& value) {
376 SetUltraServerInfo(std::forward<UltraServerInfoT>(value));
377 return *this;
378 }
380
382
387 inline const ClusterKubernetesConfigNodeDetails& GetKubernetesConfig() const { return m_kubernetesConfig; }
388 inline bool KubernetesConfigHasBeenSet() const { return m_kubernetesConfigHasBeenSet; }
389 template <typename KubernetesConfigT = ClusterKubernetesConfigNodeDetails>
390 void SetKubernetesConfig(KubernetesConfigT&& value) {
391 m_kubernetesConfigHasBeenSet = true;
392 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
393 }
394 template <typename KubernetesConfigT = ClusterKubernetesConfigNodeDetails>
395 ClusterNodeDetails& WithKubernetesConfig(KubernetesConfigT&& value) {
396 SetKubernetesConfig(std::forward<KubernetesConfigT>(value));
397 return *this;
398 }
400
402
408 inline ClusterCapacityType GetCapacityType() const { return m_capacityType; }
409 inline bool CapacityTypeHasBeenSet() const { return m_capacityTypeHasBeenSet; }
411 m_capacityTypeHasBeenSet = true;
412 m_capacityType = value;
413 }
415 SetCapacityType(value);
416 return *this;
417 }
419 private:
420 Aws::String m_instanceGroupName;
421
422 Aws::String m_instanceId;
423
424 Aws::String m_nodeLogicalId;
425
426 ClusterInstanceStatusDetails m_instanceStatus;
427
429
430 Aws::Utils::DateTime m_launchTime{};
431
432 Aws::Utils::DateTime m_lastSoftwareUpdateTime{};
433
434 ClusterLifeCycleConfig m_lifeCycleConfig;
435
436 VpcConfig m_overrideVpcConfig;
437
438 int m_threadsPerCore{0};
439
440 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
441
442 Aws::String m_privatePrimaryIp;
443
444 Aws::String m_privatePrimaryIpv6;
445
446 Aws::String m_privateDnsHostname;
447
448 ClusterInstancePlacement m_placement;
449
450 Aws::String m_currentImageId;
451
452 Aws::String m_desiredImageId;
453
454 UltraServerInfo m_ultraServerInfo;
455
456 ClusterKubernetesConfigNodeDetails m_kubernetesConfig;
457
459 bool m_instanceGroupNameHasBeenSet = false;
460 bool m_instanceIdHasBeenSet = false;
461 bool m_nodeLogicalIdHasBeenSet = false;
462 bool m_instanceStatusHasBeenSet = false;
463 bool m_instanceTypeHasBeenSet = false;
464 bool m_launchTimeHasBeenSet = false;
465 bool m_lastSoftwareUpdateTimeHasBeenSet = false;
466 bool m_lifeCycleConfigHasBeenSet = false;
467 bool m_overrideVpcConfigHasBeenSet = false;
468 bool m_threadsPerCoreHasBeenSet = false;
469 bool m_instanceStorageConfigsHasBeenSet = false;
470 bool m_privatePrimaryIpHasBeenSet = false;
471 bool m_privatePrimaryIpv6HasBeenSet = false;
472 bool m_privateDnsHostnameHasBeenSet = false;
473 bool m_placementHasBeenSet = false;
474 bool m_currentImageIdHasBeenSet = false;
475 bool m_desiredImageIdHasBeenSet = false;
476 bool m_ultraServerInfoHasBeenSet = false;
477 bool m_kubernetesConfigHasBeenSet = false;
478 bool m_capacityTypeHasBeenSet = false;
479};
480
481} // namespace Model
482} // namespace SageMaker
483} // namespace Aws
void SetLastSoftwareUpdateTime(LastSoftwareUpdateTimeT &&value)
const Aws::String & GetInstanceGroupName() const
ClusterNodeDetails & WithThreadsPerCore(int value)
void SetCurrentImageId(CurrentImageIdT &&value)
const ClusterInstancePlacement & GetPlacement() const
ClusterNodeDetails & WithNodeLogicalId(NodeLogicalIdT &&value)
void SetPrivateDnsHostname(PrivateDnsHostnameT &&value)
ClusterNodeDetails & WithPrivatePrimaryIpv6(PrivatePrimaryIpv6T &&value)
ClusterNodeDetails & WithDesiredImageId(DesiredImageIdT &&value)
void SetCapacityType(ClusterCapacityType value)
const ClusterKubernetesConfigNodeDetails & GetKubernetesConfig() const
ClusterNodeDetails & WithCapacityType(ClusterCapacityType value)
void SetUltraServerInfo(UltraServerInfoT &&value)
const Aws::String & GetNodeLogicalId() const
void SetLifeCycleConfig(LifeCycleConfigT &&value)
ClusterNodeDetails & WithInstanceType(ClusterInstanceType value)
ClusterNodeDetails & WithPrivateDnsHostname(PrivateDnsHostnameT &&value)
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
ClusterNodeDetails & WithLifeCycleConfig(LifeCycleConfigT &&value)
const Aws::String & GetPrivatePrimaryIpv6() const
ClusterNodeDetails & WithLaunchTime(LaunchTimeT &&value)
ClusterNodeDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetKubernetesConfig(KubernetesConfigT &&value)
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
const Aws::String & GetDesiredImageId() const
void SetPrivatePrimaryIp(PrivatePrimaryIpT &&value)
const Aws::String & GetPrivatePrimaryIp() const
ClusterNodeDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
void SetInstanceStatus(InstanceStatusT &&value)
void SetInstanceGroupName(InstanceGroupNameT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterNodeDetails & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
void SetPrivatePrimaryIpv6(PrivatePrimaryIpv6T &&value)
ClusterNodeDetails & WithLastSoftwareUpdateTime(LastSoftwareUpdateTimeT &&value)
ClusterNodeDetails & WithPlacement(PlacementT &&value)
const Aws::Utils::DateTime & GetLaunchTime() const
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
ClusterNodeDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
void SetNodeLogicalId(NodeLogicalIdT &&value)
AWS_SAGEMAKER_API ClusterNodeDetails()=default
ClusterNodeDetails & WithKubernetesConfig(KubernetesConfigT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
AWS_SAGEMAKER_API ClusterNodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterNodeDetails(Aws::Utils::Json::JsonView jsonValue)
void SetDesiredImageId(DesiredImageIdT &&value)
ClusterNodeDetails & WithCurrentImageId(CurrentImageIdT &&value)
ClusterNodeDetails & WithInstanceId(InstanceIdT &&value)
const Aws::Utils::DateTime & GetLastSoftwareUpdateTime() const
ClusterNodeDetails & WithPrivatePrimaryIp(PrivatePrimaryIpT &&value)
ClusterNodeDetails & WithUltraServerInfo(UltraServerInfoT &&value)
const Aws::String & GetPrivateDnsHostname() const
void SetInstanceType(ClusterInstanceType value)
const Aws::String & GetCurrentImageId() const
ClusterNodeDetails & WithInstanceStatus(InstanceStatusT &&value)
const ClusterInstanceStatusDetails & GetInstanceStatus() const
const UltraServerInfo & GetUltraServerInfo() 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