AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ReservedCapacitySummary.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/ReservedCapacityInstanceType.h>
11#include <aws/sagemaker/model/ReservedCapacityStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_SAGEMAKER_API ReservedCapacitySummary() = default;
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
53 inline bool ReservedCapacityArnHasBeenSet() const { return m_reservedCapacityArnHasBeenSet; }
54 template<typename ReservedCapacityArnT = Aws::String>
55 void SetReservedCapacityArn(ReservedCapacityArnT&& value) { m_reservedCapacityArnHasBeenSet = true; m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value); }
56 template<typename ReservedCapacityArnT = Aws::String>
57 ReservedCapacitySummary& WithReservedCapacityArn(ReservedCapacityArnT&& value) { SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value)); return *this;}
59
61
64 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
65 inline bool ReservedCapacityTypeHasBeenSet() const { return m_reservedCapacityTypeHasBeenSet; }
66 inline void SetReservedCapacityType(ReservedCapacityType value) { m_reservedCapacityTypeHasBeenSet = true; m_reservedCapacityType = value; }
69
71
75 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
76 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
77 template<typename UltraServerTypeT = Aws::String>
78 void SetUltraServerType(UltraServerTypeT&& value) { m_ultraServerTypeHasBeenSet = true; m_ultraServerType = std::forward<UltraServerTypeT>(value); }
79 template<typename UltraServerTypeT = Aws::String>
80 ReservedCapacitySummary& WithUltraServerType(UltraServerTypeT&& value) { SetUltraServerType(std::forward<UltraServerTypeT>(value)); return *this;}
82
84
87 inline int GetUltraServerCount() const { return m_ultraServerCount; }
88 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
89 inline void SetUltraServerCount(int value) { m_ultraServerCountHasBeenSet = true; m_ultraServerCount = value; }
90 inline ReservedCapacitySummary& WithUltraServerCount(int value) { SetUltraServerCount(value); return *this;}
92
94
97 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
98 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
99 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
102
104
107 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
108 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
109 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
110 inline ReservedCapacitySummary& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
112
114
117 inline ReservedCapacityStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(ReservedCapacityStatus value) { m_statusHasBeenSet = true; m_status = value; }
122
124
127 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
128 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
129 template<typename AvailabilityZoneT = Aws::String>
130 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
131 template<typename AvailabilityZoneT = Aws::String>
132 ReservedCapacitySummary& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
134
136
140 inline long long GetDurationHours() const { return m_durationHours; }
141 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
142 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
143 inline ReservedCapacitySummary& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
145
147
151 inline long long GetDurationMinutes() const { return m_durationMinutes; }
152 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
153 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
154 inline ReservedCapacitySummary& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
162 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
163 template<typename StartTimeT = Aws::Utils::DateTime>
164 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
165 template<typename StartTimeT = Aws::Utils::DateTime>
166 ReservedCapacitySummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
168
170
173 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
174 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
175 template<typename EndTimeT = Aws::Utils::DateTime>
176 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
177 template<typename EndTimeT = Aws::Utils::DateTime>
178 ReservedCapacitySummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
180 private:
181
182 Aws::String m_reservedCapacityArn;
183 bool m_reservedCapacityArnHasBeenSet = false;
184
186 bool m_reservedCapacityTypeHasBeenSet = false;
187
188 Aws::String m_ultraServerType;
189 bool m_ultraServerTypeHasBeenSet = false;
190
191 int m_ultraServerCount{0};
192 bool m_ultraServerCountHasBeenSet = false;
193
195 bool m_instanceTypeHasBeenSet = false;
196
197 int m_totalInstanceCount{0};
198 bool m_totalInstanceCountHasBeenSet = false;
199
201 bool m_statusHasBeenSet = false;
202
203 Aws::String m_availabilityZone;
204 bool m_availabilityZoneHasBeenSet = false;
205
206 long long m_durationHours{0};
207 bool m_durationHoursHasBeenSet = false;
208
209 long long m_durationMinutes{0};
210 bool m_durationMinutesHasBeenSet = false;
211
212 Aws::Utils::DateTime m_startTime{};
213 bool m_startTimeHasBeenSet = false;
214
215 Aws::Utils::DateTime m_endTime{};
216 bool m_endTimeHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace SageMaker
221} // 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