AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/ClusterInstancePlacement.h>
15#include <aws/sagemaker/model/ClusterInstanceStorageConfig.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 ClusterNodeDetails();
43 AWS_SAGEMAKER_API ClusterNodeDetails(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetInstanceGroupName() const{ return m_instanceGroupName; }
53 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
54 inline void SetInstanceGroupName(const Aws::String& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = value; }
55 inline void SetInstanceGroupName(Aws::String&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::move(value); }
56 inline void SetInstanceGroupName(const char* value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName.assign(value); }
57 inline ClusterNodeDetails& WithInstanceGroupName(const Aws::String& value) { SetInstanceGroupName(value); return *this;}
58 inline ClusterNodeDetails& WithInstanceGroupName(Aws::String&& value) { SetInstanceGroupName(std::move(value)); return *this;}
59 inline ClusterNodeDetails& WithInstanceGroupName(const char* value) { SetInstanceGroupName(value); return *this;}
61
63
66 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
67 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
68 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
69 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
70 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
71 inline ClusterNodeDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 inline ClusterNodeDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
73 inline ClusterNodeDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
75
77
80 inline const ClusterInstanceStatusDetails& GetInstanceStatus() const{ return m_instanceStatus; }
81 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
82 inline void SetInstanceStatus(const ClusterInstanceStatusDetails& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
83 inline void SetInstanceStatus(ClusterInstanceStatusDetails&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
85 inline ClusterNodeDetails& WithInstanceStatus(ClusterInstanceStatusDetails&& value) { SetInstanceStatus(std::move(value)); return *this;}
87
89
92 inline const ClusterInstanceType& GetInstanceType() const{ return m_instanceType; }
93 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
94 inline void SetInstanceType(const ClusterInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
95 inline void SetInstanceType(ClusterInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
96 inline ClusterNodeDetails& WithInstanceType(const ClusterInstanceType& value) { SetInstanceType(value); return *this;}
97 inline ClusterNodeDetails& WithInstanceType(ClusterInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLaunchTime() const{ return m_launchTime; }
105 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
106 inline void SetLaunchTime(const Aws::Utils::DateTime& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; }
107 inline void SetLaunchTime(Aws::Utils::DateTime&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); }
108 inline ClusterNodeDetails& WithLaunchTime(const Aws::Utils::DateTime& value) { SetLaunchTime(value); return *this;}
109 inline ClusterNodeDetails& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;}
111
113
116 inline const ClusterLifeCycleConfig& GetLifeCycleConfig() const{ return m_lifeCycleConfig; }
117 inline bool LifeCycleConfigHasBeenSet() const { return m_lifeCycleConfigHasBeenSet; }
118 inline void SetLifeCycleConfig(const ClusterLifeCycleConfig& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = value; }
119 inline void SetLifeCycleConfig(ClusterLifeCycleConfig&& value) { m_lifeCycleConfigHasBeenSet = true; m_lifeCycleConfig = std::move(value); }
121 inline ClusterNodeDetails& WithLifeCycleConfig(ClusterLifeCycleConfig&& value) { SetLifeCycleConfig(std::move(value)); return *this;}
123
125
129 inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
130 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
131 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
132 inline ClusterNodeDetails& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
134
136
140 inline const Aws::Vector<ClusterInstanceStorageConfig>& GetInstanceStorageConfigs() const{ return m_instanceStorageConfigs; }
141 inline bool InstanceStorageConfigsHasBeenSet() const { return m_instanceStorageConfigsHasBeenSet; }
142 inline void SetInstanceStorageConfigs(const Aws::Vector<ClusterInstanceStorageConfig>& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = value; }
143 inline void SetInstanceStorageConfigs(Aws::Vector<ClusterInstanceStorageConfig>&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs = std::move(value); }
146 inline ClusterNodeDetails& AddInstanceStorageConfigs(const ClusterInstanceStorageConfig& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(value); return *this; }
147 inline ClusterNodeDetails& AddInstanceStorageConfigs(ClusterInstanceStorageConfig&& value) { m_instanceStorageConfigsHasBeenSet = true; m_instanceStorageConfigs.push_back(std::move(value)); return *this; }
149
151
154 inline const Aws::String& GetPrivatePrimaryIp() const{ return m_privatePrimaryIp; }
155 inline bool PrivatePrimaryIpHasBeenSet() const { return m_privatePrimaryIpHasBeenSet; }
156 inline void SetPrivatePrimaryIp(const Aws::String& value) { m_privatePrimaryIpHasBeenSet = true; m_privatePrimaryIp = value; }
157 inline void SetPrivatePrimaryIp(Aws::String&& value) { m_privatePrimaryIpHasBeenSet = true; m_privatePrimaryIp = std::move(value); }
158 inline void SetPrivatePrimaryIp(const char* value) { m_privatePrimaryIpHasBeenSet = true; m_privatePrimaryIp.assign(value); }
159 inline ClusterNodeDetails& WithPrivatePrimaryIp(const Aws::String& value) { SetPrivatePrimaryIp(value); return *this;}
160 inline ClusterNodeDetails& WithPrivatePrimaryIp(Aws::String&& value) { SetPrivatePrimaryIp(std::move(value)); return *this;}
161 inline ClusterNodeDetails& WithPrivatePrimaryIp(const char* value) { SetPrivatePrimaryIp(value); return *this;}
163
165
168 inline const Aws::String& GetPrivateDnsHostname() const{ return m_privateDnsHostname; }
169 inline bool PrivateDnsHostnameHasBeenSet() const { return m_privateDnsHostnameHasBeenSet; }
170 inline void SetPrivateDnsHostname(const Aws::String& value) { m_privateDnsHostnameHasBeenSet = true; m_privateDnsHostname = value; }
171 inline void SetPrivateDnsHostname(Aws::String&& value) { m_privateDnsHostnameHasBeenSet = true; m_privateDnsHostname = std::move(value); }
172 inline void SetPrivateDnsHostname(const char* value) { m_privateDnsHostnameHasBeenSet = true; m_privateDnsHostname.assign(value); }
173 inline ClusterNodeDetails& WithPrivateDnsHostname(const Aws::String& value) { SetPrivateDnsHostname(value); return *this;}
174 inline ClusterNodeDetails& WithPrivateDnsHostname(Aws::String&& value) { SetPrivateDnsHostname(std::move(value)); return *this;}
175 inline ClusterNodeDetails& WithPrivateDnsHostname(const char* value) { SetPrivateDnsHostname(value); return *this;}
177
179
182 inline const ClusterInstancePlacement& GetPlacement() const{ return m_placement; }
183 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
184 inline void SetPlacement(const ClusterInstancePlacement& value) { m_placementHasBeenSet = true; m_placement = value; }
185 inline void SetPlacement(ClusterInstancePlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
186 inline ClusterNodeDetails& WithPlacement(const ClusterInstancePlacement& value) { SetPlacement(value); return *this;}
187 inline ClusterNodeDetails& WithPlacement(ClusterInstancePlacement&& value) { SetPlacement(std::move(value)); return *this;}
189 private:
190
191 Aws::String m_instanceGroupName;
192 bool m_instanceGroupNameHasBeenSet = false;
193
194 Aws::String m_instanceId;
195 bool m_instanceIdHasBeenSet = false;
196
197 ClusterInstanceStatusDetails m_instanceStatus;
198 bool m_instanceStatusHasBeenSet = false;
199
200 ClusterInstanceType m_instanceType;
201 bool m_instanceTypeHasBeenSet = false;
202
203 Aws::Utils::DateTime m_launchTime;
204 bool m_launchTimeHasBeenSet = false;
205
206 ClusterLifeCycleConfig m_lifeCycleConfig;
207 bool m_lifeCycleConfigHasBeenSet = false;
208
209 int m_threadsPerCore;
210 bool m_threadsPerCoreHasBeenSet = false;
211
212 Aws::Vector<ClusterInstanceStorageConfig> m_instanceStorageConfigs;
213 bool m_instanceStorageConfigsHasBeenSet = false;
214
215 Aws::String m_privatePrimaryIp;
216 bool m_privatePrimaryIpHasBeenSet = false;
217
218 Aws::String m_privateDnsHostname;
219 bool m_privateDnsHostnameHasBeenSet = false;
220
221 ClusterInstancePlacement m_placement;
222 bool m_placementHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace SageMaker
227} // namespace Aws
const Aws::String & GetInstanceGroupName() const
ClusterNodeDetails & WithInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&value)
ClusterNodeDetails & WithThreadsPerCore(int value)
ClusterNodeDetails & WithInstanceStatus(ClusterInstanceStatusDetails &&value)
ClusterNodeDetails & WithLifeCycleConfig(const ClusterLifeCycleConfig &value)
const ClusterInstancePlacement & GetPlacement() const
ClusterNodeDetails & WithInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
ClusterNodeDetails & WithInstanceId(Aws::String &&value)
ClusterNodeDetails & WithInstanceStatus(const ClusterInstanceStatusDetails &value)
void SetInstanceStorageConfigs(Aws::Vector< ClusterInstanceStorageConfig > &&value)
void SetInstanceStatus(const ClusterInstanceStatusDetails &value)
void SetLaunchTime(Aws::Utils::DateTime &&value)
ClusterNodeDetails & WithPrivatePrimaryIp(const char *value)
void SetPlacement(const ClusterInstancePlacement &value)
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
ClusterNodeDetails & WithPlacement(ClusterInstancePlacement &&value)
void SetInstanceGroupName(const Aws::String &value)
ClusterNodeDetails & WithPrivateDnsHostname(Aws::String &&value)
ClusterNodeDetails & WithLaunchTime(Aws::Utils::DateTime &&value)
void SetInstanceId(const Aws::String &value)
void SetLifeCycleConfig(const ClusterLifeCycleConfig &value)
void SetInstanceStorageConfigs(const Aws::Vector< ClusterInstanceStorageConfig > &value)
ClusterNodeDetails & WithPrivatePrimaryIp(Aws::String &&value)
ClusterNodeDetails & WithInstanceGroupName(Aws::String &&value)
const ClusterInstanceType & GetInstanceType() const
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
ClusterNodeDetails & WithInstanceId(const char *value)
ClusterNodeDetails & WithInstanceType(ClusterInstanceType &&value)
ClusterNodeDetails & WithInstanceType(const ClusterInstanceType &value)
const Aws::String & GetPrivatePrimaryIp() const
void SetLifeCycleConfig(ClusterLifeCycleConfig &&value)
ClusterNodeDetails & WithPrivateDnsHostname(const char *value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterNodeDetails & WithInstanceId(const Aws::String &value)
void SetPrivateDnsHostname(const Aws::String &value)
const Aws::Utils::DateTime & GetLaunchTime() const
ClusterNodeDetails & WithPrivateDnsHostname(const Aws::String &value)
ClusterNodeDetails & WithLaunchTime(const Aws::Utils::DateTime &value)
ClusterNodeDetails & AddInstanceStorageConfigs(ClusterInstanceStorageConfig &&value)
void SetLaunchTime(const Aws::Utils::DateTime &value)
void SetInstanceType(const ClusterInstanceType &value)
ClusterNodeDetails & WithInstanceGroupName(const Aws::String &value)
ClusterNodeDetails & WithPlacement(const ClusterInstancePlacement &value)
ClusterNodeDetails & AddInstanceStorageConfigs(const ClusterInstanceStorageConfig &value)
AWS_SAGEMAKER_API ClusterNodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterNodeDetails(Aws::Utils::Json::JsonView jsonValue)
ClusterNodeDetails & WithInstanceGroupName(const char *value)
ClusterNodeDetails & WithPrivatePrimaryIp(const Aws::String &value)
void SetPrivatePrimaryIp(const Aws::String &value)
ClusterNodeDetails & WithLifeCycleConfig(ClusterLifeCycleConfig &&value)
const Aws::String & GetPrivateDnsHostname() const
void SetInstanceStatus(ClusterInstanceStatusDetails &&value)
void SetInstanceType(ClusterInstanceType &&value)
const ClusterInstanceStatusDetails & GetInstanceStatus() const
void SetPlacement(ClusterInstancePlacement &&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