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>
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>
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>
89 inline void SetUltraServerCount(
int value) { m_ultraServerCountHasBeenSet =
true; m_ultraServerCount = value; }
109 inline void SetTotalInstanceCount(
int value) { m_totalInstanceCountHasBeenSet =
true; m_totalInstanceCount = value; }
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>
142 inline void SetDurationHours(
long long value) { m_durationHoursHasBeenSet =
true; m_durationHours = value; }
153 inline void SetDurationMinutes(
long long value) { m_durationMinutesHasBeenSet =
true; m_durationMinutes = value; }
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>
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>
183 bool m_reservedCapacityArnHasBeenSet =
false;
186 bool m_reservedCapacityTypeHasBeenSet =
false;
189 bool m_ultraServerTypeHasBeenSet =
false;
191 int m_ultraServerCount{0};
192 bool m_ultraServerCountHasBeenSet =
false;
195 bool m_instanceTypeHasBeenSet =
false;
197 int m_totalInstanceCount{0};
198 bool m_totalInstanceCountHasBeenSet =
false;
201 bool m_statusHasBeenSet =
false;
204 bool m_availabilityZoneHasBeenSet =
false;
206 long long m_durationHours{0};
207 bool m_durationHoursHasBeenSet =
false;
209 long long m_durationMinutes{0};
210 bool m_durationMinutesHasBeenSet =
false;
213 bool m_startTimeHasBeenSet =
false;
216 bool m_endTimeHasBeenSet =
false;
ReservedCapacitySummary & WithDurationHours(long long value)
ReservedCapacitySummary & WithReservedCapacityType(ReservedCapacityType value)
const Aws::String & GetUltraServerType() const
bool TotalInstanceCountHasBeenSet() const
bool DurationMinutesHasBeenSet() const
void SetDurationHours(long long value)
bool EndTimeHasBeenSet() const
AWS_SAGEMAKER_API ReservedCapacitySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ReservedCapacitySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedCapacitySummary & WithAvailabilityZone(AvailabilityZoneT &&value)
bool ReservedCapacityTypeHasBeenSet() const
const Aws::Utils::DateTime & GetStartTime() const
ReservedCapacitySummary & WithUltraServerType(UltraServerTypeT &&value)
bool UltraServerCountHasBeenSet() const
ReservedCapacitySummary & WithTotalInstanceCount(int value)
ReservedCapacitySummary & WithInstanceType(ReservedCapacityInstanceType value)
void SetDurationMinutes(long long value)
bool UltraServerTypeHasBeenSet() const
long long GetDurationHours() const
int GetUltraServerCount() const
void SetInstanceType(ReservedCapacityInstanceType value)
void SetReservedCapacityType(ReservedCapacityType value)
const Aws::Utils::DateTime & GetEndTime() const
bool StartTimeHasBeenSet() const
bool DurationHoursHasBeenSet() const
ReservedCapacitySummary & WithDurationMinutes(long long value)
ReservedCapacitySummary & WithUltraServerCount(int value)
ReservedCapacityStatus GetStatus() const
ReservedCapacitySummary & WithStatus(ReservedCapacityStatus value)
bool InstanceTypeHasBeenSet() const
AWS_SAGEMAKER_API ReservedCapacitySummary()=default
ReservedCapacitySummary & WithEndTime(EndTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUltraServerType(UltraServerTypeT &&value)
const Aws::String & GetReservedCapacityArn() const
bool StatusHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
ReservedCapacityInstanceType GetInstanceType() const
const Aws::String & GetAvailabilityZone() const
bool ReservedCapacityArnHasBeenSet() const
void SetUltraServerCount(int value)
long long GetDurationMinutes() const
ReservedCapacitySummary & WithStartTime(StartTimeT &&value)
void SetEndTime(EndTimeT &&value)
int GetTotalInstanceCount() const
void SetStatus(ReservedCapacityStatus value)
ReservedCapacitySummary & WithReservedCapacityArn(ReservedCapacityArnT &&value)
void SetReservedCapacityArn(ReservedCapacityArnT &&value)
void SetStartTime(StartTimeT &&value)
void SetTotalInstanceCount(int value)
ReservedCapacityType GetReservedCapacityType() const
ReservedCapacityInstanceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue