AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReservedCapacitySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
11#include <aws/sagemaker/model/ReservedCapacityStatus.h>
12#include <aws/sagemaker/model/ReservedCapacityType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
36 public:
37 AWS_SAGEMAKER_API ReservedCapacitySummary() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
47 inline bool ReservedCapacityArnHasBeenSet() const { return m_reservedCapacityArnHasBeenSet; }
48 template <typename ReservedCapacityArnT = Aws::String>
49 void SetReservedCapacityArn(ReservedCapacityArnT&& value) {
50 m_reservedCapacityArnHasBeenSet = true;
51 m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value);
52 }
53 template <typename ReservedCapacityArnT = Aws::String>
54 ReservedCapacitySummary& WithReservedCapacityArn(ReservedCapacityArnT&& value) {
55 SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value));
56 return *this;
57 }
59
61
64 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
65 inline bool ReservedCapacityTypeHasBeenSet() const { return m_reservedCapacityTypeHasBeenSet; }
67 m_reservedCapacityTypeHasBeenSet = true;
68 m_reservedCapacityType = value;
69 }
72 return *this;
73 }
75
77
81 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
82 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
83 template <typename UltraServerTypeT = Aws::String>
84 void SetUltraServerType(UltraServerTypeT&& value) {
85 m_ultraServerTypeHasBeenSet = true;
86 m_ultraServerType = std::forward<UltraServerTypeT>(value);
87 }
88 template <typename UltraServerTypeT = Aws::String>
89 ReservedCapacitySummary& WithUltraServerType(UltraServerTypeT&& value) {
90 SetUltraServerType(std::forward<UltraServerTypeT>(value));
91 return *this;
92 }
94
96
99 inline int GetUltraServerCount() const { return m_ultraServerCount; }
100 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
101 inline void SetUltraServerCount(int value) {
102 m_ultraServerCountHasBeenSet = true;
103 m_ultraServerCount = value;
104 }
106 SetUltraServerCount(value);
107 return *this;
108 }
110
112
115 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
116 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
118 m_instanceTypeHasBeenSet = true;
119 m_instanceType = value;
120 }
122 SetInstanceType(value);
123 return *this;
124 }
126
128
131 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
132 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
133 inline void SetTotalInstanceCount(int value) {
134 m_totalInstanceCountHasBeenSet = true;
135 m_totalInstanceCount = value;
136 }
139 return *this;
140 }
142
144
147 inline ReservedCapacityStatus GetStatus() const { return m_status; }
148 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 m_statusHasBeenSet = true;
151 m_status = value;
152 }
154 SetStatus(value);
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
164 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
165 template <typename AvailabilityZoneT = Aws::String>
166 void SetAvailabilityZone(AvailabilityZoneT&& value) {
167 m_availabilityZoneHasBeenSet = true;
168 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
169 }
170 template <typename AvailabilityZoneT = Aws::String>
171 ReservedCapacitySummary& WithAvailabilityZone(AvailabilityZoneT&& value) {
172 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
173 return *this;
174 }
176
178
182 inline long long GetDurationHours() const { return m_durationHours; }
183 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
184 inline void SetDurationHours(long long value) {
185 m_durationHoursHasBeenSet = true;
186 m_durationHours = value;
187 }
189 SetDurationHours(value);
190 return *this;
191 }
193
195
199 inline long long GetDurationMinutes() const { return m_durationMinutes; }
200 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
201 inline void SetDurationMinutes(long long value) {
202 m_durationMinutesHasBeenSet = true;
203 m_durationMinutes = value;
204 }
206 SetDurationMinutes(value);
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
216 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
217 template <typename StartTimeT = Aws::Utils::DateTime>
218 void SetStartTime(StartTimeT&& value) {
219 m_startTimeHasBeenSet = true;
220 m_startTime = std::forward<StartTimeT>(value);
221 }
222 template <typename StartTimeT = Aws::Utils::DateTime>
224 SetStartTime(std::forward<StartTimeT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
234 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
235 template <typename EndTimeT = Aws::Utils::DateTime>
236 void SetEndTime(EndTimeT&& value) {
237 m_endTimeHasBeenSet = true;
238 m_endTime = std::forward<EndTimeT>(value);
239 }
240 template <typename EndTimeT = Aws::Utils::DateTime>
242 SetEndTime(std::forward<EndTimeT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_reservedCapacityArn;
248
250
251 Aws::String m_ultraServerType;
252
253 int m_ultraServerCount{0};
254
256
257 int m_totalInstanceCount{0};
258
260
261 Aws::String m_availabilityZone;
262
263 long long m_durationHours{0};
264
265 long long m_durationMinutes{0};
266
267 Aws::Utils::DateTime m_startTime{};
268
269 Aws::Utils::DateTime m_endTime{};
270 bool m_reservedCapacityArnHasBeenSet = false;
271 bool m_reservedCapacityTypeHasBeenSet = false;
272 bool m_ultraServerTypeHasBeenSet = false;
273 bool m_ultraServerCountHasBeenSet = false;
274 bool m_instanceTypeHasBeenSet = false;
275 bool m_totalInstanceCountHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_availabilityZoneHasBeenSet = false;
278 bool m_durationHoursHasBeenSet = false;
279 bool m_durationMinutesHasBeenSet = false;
280 bool m_startTimeHasBeenSet = false;
281 bool m_endTimeHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace SageMaker
286} // namespace Aws
ReservedCapacitySummary & WithDurationHours(long long value)
ReservedCapacitySummary & WithReservedCapacityType(ReservedCapacityType value)
AWS_SAGEMAKER_API ReservedCapacitySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ReservedCapacitySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedCapacitySummary & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedCapacitySummary & WithUltraServerType(UltraServerTypeT &&value)
ReservedCapacitySummary & WithTotalInstanceCount(int value)
ReservedCapacitySummary & WithInstanceType(ReservedCapacityInstanceType value)
void SetInstanceType(ReservedCapacityInstanceType value)
void SetReservedCapacityType(ReservedCapacityType value)
const Aws::Utils::DateTime & GetEndTime() const
ReservedCapacitySummary & WithDurationMinutes(long long value)
ReservedCapacitySummary & WithUltraServerCount(int value)
ReservedCapacitySummary & WithStatus(ReservedCapacityStatus value)
AWS_SAGEMAKER_API ReservedCapacitySummary()=default
ReservedCapacitySummary & WithEndTime(EndTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedCapacityInstanceType GetInstanceType() const
ReservedCapacitySummary & WithStartTime(StartTimeT &&value)
ReservedCapacitySummary & WithReservedCapacityArn(ReservedCapacityArnT &&value)
void SetReservedCapacityArn(ReservedCapacityArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue