AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeReservedCapacityResult.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#include <aws/sagemaker/model/UltraServerSummary.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
29 public:
30 AWS_SAGEMAKER_API DescribeReservedCapacityResult() = default;
33
35
38 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
39 template <typename ReservedCapacityArnT = Aws::String>
40 void SetReservedCapacityArn(ReservedCapacityArnT&& value) {
41 m_reservedCapacityArnHasBeenSet = true;
42 m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value);
43 }
44 template <typename ReservedCapacityArnT = Aws::String>
46 SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value));
47 return *this;
48 }
50
52
55 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
57 m_reservedCapacityTypeHasBeenSet = true;
58 m_reservedCapacityType = value;
59 }
62 return *this;
63 }
65
67
70 inline ReservedCapacityStatus GetStatus() const { return m_status; }
71 inline void SetStatus(ReservedCapacityStatus value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
86 template <typename AvailabilityZoneT = Aws::String>
87 void SetAvailabilityZone(AvailabilityZoneT&& value) {
88 m_availabilityZoneHasBeenSet = true;
89 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
90 }
91 template <typename AvailabilityZoneT = Aws::String>
93 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
94 return *this;
95 }
97
99
102 inline long long GetDurationHours() const { return m_durationHours; }
103 inline void SetDurationHours(long long value) {
104 m_durationHoursHasBeenSet = true;
105 m_durationHours = value;
106 }
108 SetDurationHours(value);
109 return *this;
110 }
112
114
119 inline long long GetDurationMinutes() const { return m_durationMinutes; }
120 inline void SetDurationMinutes(long long value) {
121 m_durationMinutesHasBeenSet = true;
122 m_durationMinutes = value;
123 }
125 SetDurationMinutes(value);
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
135 template <typename StartTimeT = Aws::Utils::DateTime>
136 void SetStartTime(StartTimeT&& value) {
137 m_startTimeHasBeenSet = true;
138 m_startTime = std::forward<StartTimeT>(value);
139 }
140 template <typename StartTimeT = Aws::Utils::DateTime>
142 SetStartTime(std::forward<StartTimeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
152 template <typename EndTimeT = Aws::Utils::DateTime>
153 void SetEndTime(EndTimeT&& value) {
154 m_endTimeHasBeenSet = true;
155 m_endTime = std::forward<EndTimeT>(value);
156 }
157 template <typename EndTimeT = Aws::Utils::DateTime>
159 SetEndTime(std::forward<EndTimeT>(value));
160 return *this;
161 }
163
165
168 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
170 m_instanceTypeHasBeenSet = true;
171 m_instanceType = value;
172 }
174 SetInstanceType(value);
175 return *this;
176 }
178
180
183 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
184 inline void SetTotalInstanceCount(int value) {
185 m_totalInstanceCountHasBeenSet = true;
186 m_totalInstanceCount = value;
187 }
190 return *this;
191 }
193
195
199 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
200 inline void SetAvailableInstanceCount(int value) {
201 m_availableInstanceCountHasBeenSet = true;
202 m_availableInstanceCount = value;
203 }
206 return *this;
207 }
209
211
214 inline int GetInUseInstanceCount() const { return m_inUseInstanceCount; }
215 inline void SetInUseInstanceCount(int value) {
216 m_inUseInstanceCountHasBeenSet = true;
217 m_inUseInstanceCount = value;
218 }
221 return *this;
222 }
224
226
229 inline const UltraServerSummary& GetUltraServerSummary() const { return m_ultraServerSummary; }
230 template <typename UltraServerSummaryT = UltraServerSummary>
231 void SetUltraServerSummary(UltraServerSummaryT&& value) {
232 m_ultraServerSummaryHasBeenSet = true;
233 m_ultraServerSummary = std::forward<UltraServerSummaryT>(value);
234 }
235 template <typename UltraServerSummaryT = UltraServerSummary>
237 SetUltraServerSummary(std::forward<UltraServerSummaryT>(value));
238 return *this;
239 }
241
243
244 inline const Aws::String& GetRequestId() const { return m_requestId; }
245 template <typename RequestIdT = Aws::String>
246 void SetRequestId(RequestIdT&& value) {
247 m_requestIdHasBeenSet = true;
248 m_requestId = std::forward<RequestIdT>(value);
249 }
250 template <typename RequestIdT = Aws::String>
252 SetRequestId(std::forward<RequestIdT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_reservedCapacityArn;
258
260
262
263 Aws::String m_availabilityZone;
264
265 long long m_durationHours{0};
266
267 long long m_durationMinutes{0};
268
269 Aws::Utils::DateTime m_startTime{};
270
271 Aws::Utils::DateTime m_endTime{};
272
274
275 int m_totalInstanceCount{0};
276
277 int m_availableInstanceCount{0};
278
279 int m_inUseInstanceCount{0};
280
281 UltraServerSummary m_ultraServerSummary;
282
283 Aws::String m_requestId;
284 bool m_reservedCapacityArnHasBeenSet = false;
285 bool m_reservedCapacityTypeHasBeenSet = false;
286 bool m_statusHasBeenSet = false;
287 bool m_availabilityZoneHasBeenSet = false;
288 bool m_durationHoursHasBeenSet = false;
289 bool m_durationMinutesHasBeenSet = false;
290 bool m_startTimeHasBeenSet = false;
291 bool m_endTimeHasBeenSet = false;
292 bool m_instanceTypeHasBeenSet = false;
293 bool m_totalInstanceCountHasBeenSet = false;
294 bool m_availableInstanceCountHasBeenSet = false;
295 bool m_inUseInstanceCountHasBeenSet = false;
296 bool m_ultraServerSummaryHasBeenSet = false;
297 bool m_requestIdHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace SageMaker
302} // namespace Aws
DescribeReservedCapacityResult & WithRequestId(RequestIdT &&value)
DescribeReservedCapacityResult & WithInUseInstanceCount(int value)
DescribeReservedCapacityResult & WithStatus(ReservedCapacityStatus value)
DescribeReservedCapacityResult & WithTotalInstanceCount(int value)
DescribeReservedCapacityResult & WithUltraServerSummary(UltraServerSummaryT &&value)
DescribeReservedCapacityResult & WithInstanceType(ReservedCapacityInstanceType value)
AWS_SAGEMAKER_API DescribeReservedCapacityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeReservedCapacityResult & WithAvailabilityZone(AvailabilityZoneT &&value)
DescribeReservedCapacityResult & WithStartTime(StartTimeT &&value)
AWS_SAGEMAKER_API DescribeReservedCapacityResult()=default
DescribeReservedCapacityResult & WithDurationMinutes(long long value)
DescribeReservedCapacityResult & WithAvailableInstanceCount(int value)
DescribeReservedCapacityResult & WithEndTime(EndTimeT &&value)
DescribeReservedCapacityResult & WithDurationHours(long long value)
DescribeReservedCapacityResult & WithReservedCapacityType(ReservedCapacityType value)
DescribeReservedCapacityResult & WithReservedCapacityArn(ReservedCapacityArnT &&value)
AWS_SAGEMAKER_API DescribeReservedCapacityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue