AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
DescribeReservedCapacityResult.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/ReservedCapacityType.h>
10#include <aws/sagemaker/model/ReservedCapacityStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
13#include <aws/sagemaker/model/UltraServerSummary.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
33 {
34 public:
35 AWS_SAGEMAKER_API DescribeReservedCapacityResult() = default;
38
39
41
44 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
45 template<typename ReservedCapacityArnT = Aws::String>
46 void SetReservedCapacityArn(ReservedCapacityArnT&& value) { m_reservedCapacityArnHasBeenSet = true; m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value); }
47 template<typename ReservedCapacityArnT = Aws::String>
48 DescribeReservedCapacityResult& WithReservedCapacityArn(ReservedCapacityArnT&& value) { SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value)); return *this;}
50
52
55 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
56 inline void SetReservedCapacityType(ReservedCapacityType value) { m_reservedCapacityTypeHasBeenSet = true; m_reservedCapacityType = value; }
59
61
64 inline ReservedCapacityStatus GetStatus() const { return m_status; }
65 inline void SetStatus(ReservedCapacityStatus value) { m_statusHasBeenSet = true; m_status = value; }
68
70
73 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
74 template<typename AvailabilityZoneT = Aws::String>
75 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
76 template<typename AvailabilityZoneT = Aws::String>
77 DescribeReservedCapacityResult& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
79
81
84 inline long long GetDurationHours() const { return m_durationHours; }
85 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
86 inline DescribeReservedCapacityResult& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
88
90
95 inline long long GetDurationMinutes() const { return m_durationMinutes; }
96 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
97 inline DescribeReservedCapacityResult& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
105 template<typename StartTimeT = Aws::Utils::DateTime>
106 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
107 template<typename StartTimeT = Aws::Utils::DateTime>
108 DescribeReservedCapacityResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
116 template<typename EndTimeT = Aws::Utils::DateTime>
117 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
118 template<typename EndTimeT = Aws::Utils::DateTime>
119 DescribeReservedCapacityResult& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
121
123
126 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
127 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
130
132
135 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
136 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
139
141
145 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
146 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
149
151
154 inline int GetInUseInstanceCount() const { return m_inUseInstanceCount; }
155 inline void SetInUseInstanceCount(int value) { m_inUseInstanceCountHasBeenSet = true; m_inUseInstanceCount = value; }
158
160
163 inline const UltraServerSummary& GetUltraServerSummary() const { return m_ultraServerSummary; }
164 template<typename UltraServerSummaryT = UltraServerSummary>
165 void SetUltraServerSummary(UltraServerSummaryT&& value) { m_ultraServerSummaryHasBeenSet = true; m_ultraServerSummary = std::forward<UltraServerSummaryT>(value); }
166 template<typename UltraServerSummaryT = UltraServerSummary>
167 DescribeReservedCapacityResult& WithUltraServerSummary(UltraServerSummaryT&& value) { SetUltraServerSummary(std::forward<UltraServerSummaryT>(value)); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template<typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
175 template<typename RequestIdT = Aws::String>
176 DescribeReservedCapacityResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
178 private:
179
180 Aws::String m_reservedCapacityArn;
181 bool m_reservedCapacityArnHasBeenSet = false;
182
184 bool m_reservedCapacityTypeHasBeenSet = false;
185
187 bool m_statusHasBeenSet = false;
188
189 Aws::String m_availabilityZone;
190 bool m_availabilityZoneHasBeenSet = false;
191
192 long long m_durationHours{0};
193 bool m_durationHoursHasBeenSet = false;
194
195 long long m_durationMinutes{0};
196 bool m_durationMinutesHasBeenSet = false;
197
198 Aws::Utils::DateTime m_startTime{};
199 bool m_startTimeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_endTime{};
202 bool m_endTimeHasBeenSet = false;
203
205 bool m_instanceTypeHasBeenSet = false;
206
207 int m_totalInstanceCount{0};
208 bool m_totalInstanceCountHasBeenSet = false;
209
210 int m_availableInstanceCount{0};
211 bool m_availableInstanceCountHasBeenSet = false;
212
213 int m_inUseInstanceCount{0};
214 bool m_inUseInstanceCountHasBeenSet = false;
215
216 UltraServerSummary m_ultraServerSummary;
217 bool m_ultraServerSummaryHasBeenSet = false;
218
219 Aws::String m_requestId;
220 bool m_requestIdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace SageMaker
225} // 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