AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeReservedCapacityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
12#include <aws/sagemaker/model/ReservedCapacityStatus.h>
13#include <aws/sagemaker/model/ReservedCapacityType.h>
14#include <aws/sagemaker/model/UltraServerSummary.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
30 public:
31 AWS_SAGEMAKER_API DescribeReservedCapacityResult() = default;
34
36
39 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
40 template <typename ReservedCapacityArnT = Aws::String>
41 void SetReservedCapacityArn(ReservedCapacityArnT&& value) {
42 m_reservedCapacityArnHasBeenSet = true;
43 m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value);
44 }
45 template <typename ReservedCapacityArnT = Aws::String>
47 SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value));
48 return *this;
49 }
51
53
56 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
58 m_reservedCapacityTypeHasBeenSet = true;
59 m_reservedCapacityType = value;
60 }
63 return *this;
64 }
66
68
71 inline ReservedCapacityStatus GetStatus() const { return m_status; }
72 inline void SetStatus(ReservedCapacityStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
87 template <typename AvailabilityZoneT = Aws::String>
88 void SetAvailabilityZone(AvailabilityZoneT&& value) {
89 m_availabilityZoneHasBeenSet = true;
90 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
91 }
92 template <typename AvailabilityZoneT = Aws::String>
94 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
95 return *this;
96 }
98
100
103 inline long long GetDurationHours() const { return m_durationHours; }
104 inline void SetDurationHours(long long value) {
105 m_durationHoursHasBeenSet = true;
106 m_durationHours = value;
107 }
109 SetDurationHours(value);
110 return *this;
111 }
113
115
120 inline long long GetDurationMinutes() const { return m_durationMinutes; }
121 inline void SetDurationMinutes(long long value) {
122 m_durationMinutesHasBeenSet = true;
123 m_durationMinutes = value;
124 }
126 SetDurationMinutes(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
136 template <typename StartTimeT = Aws::Utils::DateTime>
137 void SetStartTime(StartTimeT&& value) {
138 m_startTimeHasBeenSet = true;
139 m_startTime = std::forward<StartTimeT>(value);
140 }
141 template <typename StartTimeT = Aws::Utils::DateTime>
143 SetStartTime(std::forward<StartTimeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
153 template <typename EndTimeT = Aws::Utils::DateTime>
154 void SetEndTime(EndTimeT&& value) {
155 m_endTimeHasBeenSet = true;
156 m_endTime = std::forward<EndTimeT>(value);
157 }
158 template <typename EndTimeT = Aws::Utils::DateTime>
160 SetEndTime(std::forward<EndTimeT>(value));
161 return *this;
162 }
164
166
169 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
171 m_instanceTypeHasBeenSet = true;
172 m_instanceType = value;
173 }
175 SetInstanceType(value);
176 return *this;
177 }
179
181
184 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
185 inline void SetTotalInstanceCount(int value) {
186 m_totalInstanceCountHasBeenSet = true;
187 m_totalInstanceCount = value;
188 }
191 return *this;
192 }
194
196
200 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
201 inline void SetAvailableInstanceCount(int value) {
202 m_availableInstanceCountHasBeenSet = true;
203 m_availableInstanceCount = value;
204 }
207 return *this;
208 }
210
212
215 inline int GetInUseInstanceCount() const { return m_inUseInstanceCount; }
216 inline void SetInUseInstanceCount(int value) {
217 m_inUseInstanceCountHasBeenSet = true;
218 m_inUseInstanceCount = value;
219 }
222 return *this;
223 }
225
227
230 inline const UltraServerSummary& GetUltraServerSummary() const { return m_ultraServerSummary; }
231 template <typename UltraServerSummaryT = UltraServerSummary>
232 void SetUltraServerSummary(UltraServerSummaryT&& value) {
233 m_ultraServerSummaryHasBeenSet = true;
234 m_ultraServerSummary = std::forward<UltraServerSummaryT>(value);
235 }
236 template <typename UltraServerSummaryT = UltraServerSummary>
238 SetUltraServerSummary(std::forward<UltraServerSummaryT>(value));
239 return *this;
240 }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template <typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) {
248 m_requestIdHasBeenSet = true;
249 m_requestId = std::forward<RequestIdT>(value);
250 }
251 template <typename RequestIdT = Aws::String>
253 SetRequestId(std::forward<RequestIdT>(value));
254 return *this;
255 }
257 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
258
259 private:
260 Aws::String m_reservedCapacityArn;
261
263
265
266 Aws::String m_availabilityZone;
267
268 long long m_durationHours{0};
269
270 long long m_durationMinutes{0};
271
272 Aws::Utils::DateTime m_startTime{};
273
274 Aws::Utils::DateTime m_endTime{};
275
277
278 int m_totalInstanceCount{0};
279
280 int m_availableInstanceCount{0};
281
282 int m_inUseInstanceCount{0};
283
284 UltraServerSummary m_ultraServerSummary;
285
286 Aws::String m_requestId;
287 Aws::Http::HttpResponseCode m_HttpResponseCode;
288 bool m_reservedCapacityArnHasBeenSet = false;
289 bool m_reservedCapacityTypeHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_availabilityZoneHasBeenSet = false;
292 bool m_durationHoursHasBeenSet = false;
293 bool m_durationMinutesHasBeenSet = false;
294 bool m_startTimeHasBeenSet = false;
295 bool m_endTimeHasBeenSet = false;
296 bool m_instanceTypeHasBeenSet = false;
297 bool m_totalInstanceCountHasBeenSet = false;
298 bool m_availableInstanceCountHasBeenSet = false;
299 bool m_inUseInstanceCountHasBeenSet = false;
300 bool m_ultraServerSummaryHasBeenSet = false;
301 bool m_requestIdHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace SageMaker
306} // 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