AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ClusterNodeDetails.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/ClusterInstanceStatusDetails.h>
10#include <aws/sagemaker/model/ClusterInstanceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
13#include <aws/sagemaker/model/VpcConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/ClusterInstancePlacement.h>
16#include <aws/sagemaker/model/UltraServerInfo.h>
17#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace SageMaker
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_SAGEMAKER_API ClusterNodeDetails() = default;
45 AWS_SAGEMAKER_API ClusterNodeDetails(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
55 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
56 template<typename InstanceGroupNameT = Aws::String>
57 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
58 template<typename InstanceGroupNameT = Aws::String>
59 ClusterNodeDetails& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
67 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
68 template<typename InstanceIdT = Aws::String>
69 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
70 template<typename InstanceIdT = Aws::String>
71 ClusterNodeDetails& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
73
75
80 inline const Aws::String& GetNodeLogicalId() const { return m_nodeLogicalId; }
81 inline bool NodeLogicalIdHasBeenSet() const { return m_nodeLogicalIdHasBeenSet; }
82 template<typename NodeLogicalIdT = Aws::String>
83 void SetNodeLogicalId(NodeLogicalIdT&& value) { m_nodeLogicalIdHasBeenSet = true; m_nodeLogicalId = std::forward<NodeLogicalIdT>(value); }
84 template<typename NodeLogicalIdT = Aws::String>
85 ClusterNodeDetails& WithNodeLogicalId(NodeLogicalIdT&& value) { SetNodeLogicalId(std::forward<NodeLogicalIdT>(value)); return *this;}
87
89
92 inline const ClusterInstanceStatusDetails& GetInstanceStatus() const { return m_instanceStatus; }
93 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
94 template<typename InstanceStatusT = ClusterInstanceStatusDetails>
95 void SetInstanceStatus(InstanceStatusT&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::forward<InstanceStatusT>(value); }
96 template<typename InstanceStatusT = ClusterInstanceStatusDetails>
97 ClusterNodeDetails& WithInstanceStatus(InstanceStatusT&& value) { SetInstanceStatus(std::forward<InstanceStatusT>(value)); return *this;}
99
101
104 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
105 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
106 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
109
111
114 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
115 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
116 template<typename LaunchTimeT = Aws::Utils::DateTime>
117 void SetLaunchTime(LaunchTimeT&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::forward<LaunchTimeT>(value); }
118 template<typename LaunchTimeT = Aws::Utils::DateTime>
119 ClusterNodeDetails& WithLaunchTime(LaunchTimeT&& value) { SetLaunchTime(std::forward<LaunchTimeT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastSoftwareUpdateTime() const { return m_lastSoftwareUpdateTime; }
127 inline bool LastSoftwareUpdateTimeHasBeenSet() const { return m_lastSoftwareUpdateTimeHasBeenSet; }
128 template<typename LastSoftwareUpdateTimeT = Aws::Utils::DateTime>
129 void SetLastSoftwareUpdateTime(LastSoftwareUpdateTimeT&& value) { m_lastSoftwareUpdateTimeHasBeenSet = true; m_lastSoftwareUpdateTime = std::forward<LastSoftwareUpdateTimeT>(value); }
130 template<typename LastSoftwareUpdateTimeT = Aws::Utils::DateTime>
131 ClusterNodeDetails& WithLastSoftwareUpdateTime(LastSoftwareUpdateTimeT&& value) { SetLastSoftwareUpdateTime(std::forward<LastSoftwareUpdateTimeT>(value)); return *this;}
133
135
138 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const { return m_lifeCycleConfig; }
139 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
140 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
141 void SetLifeCycleConfig(LifeCycleConfigT&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value); }
142 template<typename LifeCycleConfigT = ClusterLifeCycleConfig>
143 ClusterNodeDetails& WithLifeCycleConfig(LifeCycleConfigT&& value) { SetLifeCycleConfig(std::forward<LifeCycleConfigT>(value)); return *this;}
145
147
152 inline const VpcConfig& GetOverrideVpcConfig() const { return m_overrideVpcConfig; }
153 inline bool OverrideVpcConfigHasBeenSet() const { return m_overrideVpcConfigHasBeenSet; }
154 template<typename OverrideVpcConfigT = VpcConfig>
155 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet = true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
156 template<typename OverrideVpcConfigT = VpcConfig>
157 ClusterNodeDetails& WithOverrideVpcConfig(OverrideVpcConfigT&& value) { SetOverrideVpcConfig(std::forward<OverrideVpcConfigT>(value)); return *this;}
159
161
165 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
166 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
167 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
168 inline ClusterNodeDetails& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
170
172
176 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const { return m_instanceStorageConfigs; }
177 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
178 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
179 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
180 template<typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
181 ClusterNodeDetails& WithInstanceStorageConfigs(InstanceStorageConfigsT&& value) { SetInstanceStorageConfigs(std::forward<InstanceStorageConfigsT>(value)); return *this;}
182 template<typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
183 ClusterNodeDetails& AddInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value)); return *this; }
185
187
190 inline const Aws::String& GetPrivatePrimaryIp() const { return m_privatePrimaryIp; }
191 inline bool PrivatePrimaryIpHasBeenSet() const { return m_privatePrimaryIpHasBeenSet; }
192 template<typename PrivatePrimaryIpT = Aws::String>
193 void SetPrivatePrimaryIp(PrivatePrimaryIpT&& value) { m_privatePrimaryIpHasBeenSet = true; m_privatePrimaryIp = std::forward<PrivatePrimaryIpT>(value); }
194 template<typename PrivatePrimaryIpT = Aws::String>
195 ClusterNodeDetails& WithPrivatePrimaryIp(PrivatePrimaryIpT&& value) { SetPrivatePrimaryIp(std::forward<PrivatePrimaryIpT>(value)); return *this;}
197
199
205 inline const Aws::String& GetPrivatePrimaryIpv6() const { return m_privatePrimaryIpv6; }
206 inline bool PrivatePrimaryIpv6HasBeenSet() const { return m_privatePrimaryIpv6HasBeenSet; }
207 template<typename PrivatePrimaryIpv6T = Aws::String>
208 void SetPrivatePrimaryIpv6(PrivatePrimaryIpv6T&& value) { m_privatePrimaryIpv6HasBeenSet = true; m_privatePrimaryIpv6 = std::forward<PrivatePrimaryIpv6T>(value); }
209 template<typename PrivatePrimaryIpv6T = Aws::String>
210 ClusterNodeDetails& WithPrivatePrimaryIpv6(PrivatePrimaryIpv6T&& value) { SetPrivatePrimaryIpv6(std::forward<PrivatePrimaryIpv6T>(value)); return *this;}
212
214
217 inline const Aws::String& GetPrivateDnsHostname() const { return m_privateDnsHostname; }
218 inline bool PrivateDnsHostnameHasBeenSet() const { return m_privateDnsHostnameHasBeenSet; }
219 template<typename PrivateDnsHostnameT = Aws::String>
220 void SetPrivateDnsHostname(PrivateDnsHostnameT&& value) { m_privateDnsHostnameHasBeenSet = true; m_privateDnsHostname = std::forward<PrivateDnsHostnameT>(value); }
221 template<typename PrivateDnsHostnameT = Aws::String>
222 ClusterNodeDetails& WithPrivateDnsHostname(PrivateDnsHostnameT&& value) { SetPrivateDnsHostname(std::forward<PrivateDnsHostnameT>(value)); return *this;}
224
226
229 inline const ClusterInstancePlacement& GetPlacement() const { return m_placement; }
230 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
231 template<typename PlacementT = ClusterInstancePlacement>
232 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet = true; m_placement = std::forward<PlacementT>(value); }
233 template<typename PlacementT = ClusterInstancePlacement>
234 ClusterNodeDetails& WithPlacement(PlacementT&& value) { SetPlacement(std::forward<PlacementT>(value)); return *this;}
236
238
241 inline const Aws::String& GetCurrentImageId() const { return m_currentImageId; }
242 inline bool CurrentImageIdHasBeenSet() const { return m_currentImageIdHasBeenSet; }
243 template<typename CurrentImageIdT = Aws::String>
244 void SetCurrentImageId(CurrentImageIdT&& value) { m_currentImageIdHasBeenSet = true; m_currentImageId = std::forward<CurrentImageIdT>(value); }
245 template<typename CurrentImageIdT = Aws::String>
246 ClusterNodeDetails& WithCurrentImageId(CurrentImageIdT&& value) { SetCurrentImageId(std::forward<CurrentImageIdT>(value)); return *this;}
248
250
253 inline const Aws::String& GetDesiredImageId() const { return m_desiredImageId; }
254 inline bool DesiredImageIdHasBeenSet() const { return m_desiredImageIdHasBeenSet; }
255 template<typename DesiredImageIdT = Aws::String>
256 void SetDesiredImageId(DesiredImageIdT&& value) { m_desiredImageIdHasBeenSet = true; m_desiredImageId = std::forward<DesiredImageIdT>(value); }
257 template<typename DesiredImageIdT = Aws::String>
258 ClusterNodeDetails& WithDesiredImageId(DesiredImageIdT&& value) { SetDesiredImageId(std::forward<DesiredImageIdT>(value)); return *this;}
260
262
265 inline const UltraServerInfo& GetUltraServerInfo() const { return m_ultraServerInfo; }
266 inline bool UltraServerInfoHasBeenSet() const { return m_ultraServerInfoHasBeenSet; }
267 template<typename UltraServerInfoT = UltraServerInfo>
268 void SetUltraServerInfo(UltraServerInfoT&& value) { m_ultraServerInfoHasBeenSet = true; m_ultraServerInfo = std::forward<UltraServerInfoT>(value); }
269 template<typename UltraServerInfoT = UltraServerInfo>
270 ClusterNodeDetails& WithUltraServerInfo(UltraServerInfoT&& value) { SetUltraServerInfo(std::forward<UltraServerInfoT>(value)); return *this;}
272 private:
273
274 Aws::String m_instanceGroupName;
275 bool m_instanceGroupNameHasBeenSet = false;
276
277 Aws::String m_instanceId;
278 bool m_instanceIdHasBeenSet = false;
279
280 Aws::String m_nodeLogicalId;
281 bool m_nodeLogicalIdHasBeenSet = false;
282
283 ClusterInstanceStatusDetails m_instanceStatus;
284 bool m_instanceStatusHasBeenSet = false;
285
287 bool m_instanceTypeHasBeenSet = false;
288
289 Aws::Utils::DateTime m_launchTime{};
290 bool m_launchTimeHasBeenSet = false;
291
292 Aws::Utils::DateTime m_lastSoftwareUpdateTime{};
293 bool m_lastSoftwareUpdateTimeHasBeenSet = false;
294
295 ClusterLifeCycleConfig m_lifeCycleConfig;
296 bool m_lifeCycleConfigHasBeenSet = false;
297
298 VpcConfig m_overrideVpcConfig;
299 bool m_overrideVpcConfigHasBeenSet = false;
300
301 int m_threadsPerCore{0};
302 bool m_threadsPerCoreHasBeenSet = false;
303
304 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
305 bool m_instanceStorageConfigsHasBeenSet = false;
306
307 Aws::String m_privatePrimaryIp;
308 bool m_privatePrimaryIpHasBeenSet = false;
309
310 Aws::String m_privatePrimaryIpv6;
311 bool m_privatePrimaryIpv6HasBeenSet = false;
312
313 Aws::String m_privateDnsHostname;
314 bool m_privateDnsHostnameHasBeenSet = false;
315
316 ClusterInstancePlacement m_placement;
317 bool m_placementHasBeenSet = false;
318
319 Aws::String m_currentImageId;
320 bool m_currentImageIdHasBeenSet = false;
321
322 Aws::String m_desiredImageId;
323 bool m_desiredImageIdHasBeenSet = false;
324
325 UltraServerInfo m_ultraServerInfo;
326 bool m_ultraServerInfoHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace SageMaker
331} // 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 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)
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
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