AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UltraServer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
10#include <aws/sagemaker/model/UltraServerHealthStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
32 public:
33 AWS_SAGEMAKER_API UltraServer() = default;
34 AWS_SAGEMAKER_API UltraServer(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API UltraServer& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetUltraServerId() const { return m_ultraServerId; }
43 inline bool UltraServerIdHasBeenSet() const { return m_ultraServerIdHasBeenSet; }
44 template <typename UltraServerIdT = Aws::String>
45 void SetUltraServerId(UltraServerIdT&& value) {
46 m_ultraServerIdHasBeenSet = true;
47 m_ultraServerId = std::forward<UltraServerIdT>(value);
48 }
49 template <typename UltraServerIdT = Aws::String>
50 UltraServer& WithUltraServerId(UltraServerIdT&& value) {
51 SetUltraServerId(std::forward<UltraServerIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
61 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
62 template <typename UltraServerTypeT = Aws::String>
63 void SetUltraServerType(UltraServerTypeT&& value) {
64 m_ultraServerTypeHasBeenSet = true;
65 m_ultraServerType = std::forward<UltraServerTypeT>(value);
66 }
67 template <typename UltraServerTypeT = Aws::String>
68 UltraServer& WithUltraServerType(UltraServerTypeT&& value) {
69 SetUltraServerType(std::forward<UltraServerTypeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
79 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
80 template <typename AvailabilityZoneT = Aws::String>
81 void SetAvailabilityZone(AvailabilityZoneT&& value) {
82 m_availabilityZoneHasBeenSet = true;
83 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
84 }
85 template <typename AvailabilityZoneT = Aws::String>
86 UltraServer& WithAvailabilityZone(AvailabilityZoneT&& value) {
87 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
88 return *this;
89 }
91
93
96 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
97 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
99 m_instanceTypeHasBeenSet = true;
100 m_instanceType = value;
101 }
103 SetInstanceType(value);
104 return *this;
105 }
107
109
112 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
113 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
114 inline void SetTotalInstanceCount(int value) {
115 m_totalInstanceCountHasBeenSet = true;
116 m_totalInstanceCount = value;
117 }
120 return *this;
121 }
123
125
129 inline int GetConfiguredSpareInstanceCount() const { return m_configuredSpareInstanceCount; }
130 inline bool ConfiguredSpareInstanceCountHasBeenSet() const { return m_configuredSpareInstanceCountHasBeenSet; }
131 inline void SetConfiguredSpareInstanceCount(int value) {
132 m_configuredSpareInstanceCountHasBeenSet = true;
133 m_configuredSpareInstanceCount = value;
134 }
137 return *this;
138 }
140
142
145 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
146 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
147 inline void SetAvailableInstanceCount(int value) {
148 m_availableInstanceCountHasBeenSet = true;
149 m_availableInstanceCount = value;
150 }
153 return *this;
154 }
156
158
161 inline int GetInUseInstanceCount() const { return m_inUseInstanceCount; }
162 inline bool InUseInstanceCountHasBeenSet() const { return m_inUseInstanceCountHasBeenSet; }
163 inline void SetInUseInstanceCount(int value) {
164 m_inUseInstanceCountHasBeenSet = true;
165 m_inUseInstanceCount = value;
166 }
169 return *this;
170 }
172
174
177 inline int GetAvailableSpareInstanceCount() const { return m_availableSpareInstanceCount; }
178 inline bool AvailableSpareInstanceCountHasBeenSet() const { return m_availableSpareInstanceCountHasBeenSet; }
179 inline void SetAvailableSpareInstanceCount(int value) {
180 m_availableSpareInstanceCountHasBeenSet = true;
181 m_availableSpareInstanceCount = value;
182 }
185 return *this;
186 }
188
190
194 inline int GetUnhealthyInstanceCount() const { return m_unhealthyInstanceCount; }
195 inline bool UnhealthyInstanceCountHasBeenSet() const { return m_unhealthyInstanceCountHasBeenSet; }
196 inline void SetUnhealthyInstanceCount(int value) {
197 m_unhealthyInstanceCountHasBeenSet = true;
198 m_unhealthyInstanceCount = value;
199 }
202 return *this;
203 }
205
207
210 inline UltraServerHealthStatus GetHealthStatus() const { return m_healthStatus; }
211 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
213 m_healthStatusHasBeenSet = true;
214 m_healthStatus = value;
215 }
217 SetHealthStatus(value);
218 return *this;
219 }
221 private:
222 Aws::String m_ultraServerId;
223
224 Aws::String m_ultraServerType;
225
226 Aws::String m_availabilityZone;
227
229
230 int m_totalInstanceCount{0};
231
232 int m_configuredSpareInstanceCount{0};
233
234 int m_availableInstanceCount{0};
235
236 int m_inUseInstanceCount{0};
237
238 int m_availableSpareInstanceCount{0};
239
240 int m_unhealthyInstanceCount{0};
241
243 bool m_ultraServerIdHasBeenSet = false;
244 bool m_ultraServerTypeHasBeenSet = false;
245 bool m_availabilityZoneHasBeenSet = false;
246 bool m_instanceTypeHasBeenSet = false;
247 bool m_totalInstanceCountHasBeenSet = false;
248 bool m_configuredSpareInstanceCountHasBeenSet = false;
249 bool m_availableInstanceCountHasBeenSet = false;
250 bool m_inUseInstanceCountHasBeenSet = false;
251 bool m_availableSpareInstanceCountHasBeenSet = false;
252 bool m_unhealthyInstanceCountHasBeenSet = false;
253 bool m_healthStatusHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace SageMaker
258} // namespace Aws
UltraServer & WithUltraServerType(UltraServerTypeT &&value)
Definition UltraServer.h:68
UltraServer & WithInstanceType(ReservedCapacityInstanceType value)
UltraServer & WithInUseInstanceCount(int value)
const Aws::String & GetUltraServerId() const
Definition UltraServer.h:42
void SetAvailableInstanceCount(int value)
bool ConfiguredSpareInstanceCountHasBeenSet() const
void SetUltraServerId(UltraServerIdT &&value)
Definition UltraServer.h:45
UltraServer & WithAvailableInstanceCount(int value)
const Aws::String & GetUltraServerType() const
Definition UltraServer.h:60
UltraServer & WithUnhealthyInstanceCount(int value)
bool AvailableSpareInstanceCountHasBeenSet() const
AWS_SAGEMAKER_API UltraServer()=default
AWS_SAGEMAKER_API UltraServer(Aws::Utils::Json::JsonView jsonValue)
UltraServer & WithUltraServerId(UltraServerIdT &&value)
Definition UltraServer.h:50
void SetUnhealthyInstanceCount(int value)
const Aws::String & GetAvailabilityZone() const
Definition UltraServer.h:78
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
UltraServerHealthStatus GetHealthStatus() const
void SetUltraServerType(UltraServerTypeT &&value)
Definition UltraServer.h:63
UltraServer & WithConfiguredSpareInstanceCount(int value)
UltraServer & WithHealthStatus(UltraServerHealthStatus value)
AWS_SAGEMAKER_API UltraServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition UltraServer.h:81
void SetInstanceType(ReservedCapacityInstanceType value)
Definition UltraServer.h:98
ReservedCapacityInstanceType GetInstanceType() const
Definition UltraServer.h:96
void SetAvailableSpareInstanceCount(int value)
UltraServer & WithAvailableSpareInstanceCount(int value)
UltraServer & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition UltraServer.h:86
void SetHealthStatus(UltraServerHealthStatus value)
UltraServer & WithTotalInstanceCount(int value)
void SetConfiguredSpareInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue