7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
10#include <aws/sagemaker/model/ReservedCapacityStatus.h>
11#include <aws/core/utils/DateTime.h>
53 template<
typename ReservedCapacityArnT = Aws::String>
54 void SetReservedCapacityArn(ReservedCapacityArnT&& value) { m_reservedCapacityArnHasBeenSet =
true; m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value); }
55 template<
typename ReservedCapacityArnT = Aws::String>
75 inline void SetTotalInstanceCount(
int value) { m_totalInstanceCountHasBeenSet =
true; m_totalInstanceCount = value; }
95 template<
typename AvailabilityZoneT = Aws::String>
96 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
97 template<
typename AvailabilityZoneT = Aws::String>
108 inline void SetDurationHours(
long long value) { m_durationHoursHasBeenSet =
true; m_durationHours = value; }
119 inline void SetDurationMinutes(
long long value) { m_durationMinutesHasBeenSet =
true; m_durationMinutes = value; }
129 template<
typename StartTimeT = Aws::Utils::DateTime>
130 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
131 template<
typename StartTimeT = Aws::Utils::DateTime>
141 template<
typename EndTimeT = Aws::Utils::DateTime>
142 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
143 template<
typename EndTimeT = Aws::Utils::DateTime>
149 bool m_reservedCapacityArnHasBeenSet =
false;
152 bool m_instanceTypeHasBeenSet =
false;
154 int m_totalInstanceCount{0};
155 bool m_totalInstanceCountHasBeenSet =
false;
158 bool m_statusHasBeenSet =
false;
161 bool m_availabilityZoneHasBeenSet =
false;
163 long long m_durationHours{0};
164 bool m_durationHoursHasBeenSet =
false;
166 long long m_durationMinutes{0};
167 bool m_durationMinutesHasBeenSet =
false;
170 bool m_startTimeHasBeenSet =
false;
173 bool m_endTimeHasBeenSet =
false;
ReservedCapacitySummary & WithDurationHours(long long value)
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)
const Aws::Utils::DateTime & GetStartTime() const
ReservedCapacitySummary & WithTotalInstanceCount(int value)
ReservedCapacitySummary & WithInstanceType(ReservedCapacityInstanceType value)
void SetDurationMinutes(long long value)
long long GetDurationHours() const
void SetInstanceType(ReservedCapacityInstanceType value)
const Aws::Utils::DateTime & GetEndTime() const
bool StartTimeHasBeenSet() const
bool DurationHoursHasBeenSet() const
ReservedCapacitySummary & WithDurationMinutes(long long 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
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
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)
ReservedCapacityInstanceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue