7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
45 template <
typename CapacityBlockOfferingIdT = Aws::String>
47 m_capacityBlockOfferingIdHasBeenSet =
true;
48 m_capacityBlockOfferingId = std::forward<CapacityBlockOfferingIdT>(value);
50 template <
typename CapacityBlockOfferingIdT = Aws::String>
63 template <
typename InstanceTypeT = Aws::String>
65 m_instanceTypeHasBeenSet =
true;
66 m_instanceType = std::forward<InstanceTypeT>(value);
68 template <
typename InstanceTypeT = Aws::String>
81 template <
typename AvailabilityZoneT = Aws::String>
83 m_availabilityZoneHasBeenSet =
true;
84 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
86 template <
typename AvailabilityZoneT = Aws::String>
100 m_instanceCountHasBeenSet =
true;
101 m_instanceCount = value;
115 template <
typename StartDateT = Aws::Utils::DateTime>
117 m_startDateHasBeenSet =
true;
118 m_startDate = std::forward<StartDateT>(value);
120 template <
typename StartDateT = Aws::Utils::DateTime>
133 template <
typename EndDateT = Aws::Utils::DateTime>
135 m_endDateHasBeenSet =
true;
136 m_endDate = std::forward<EndDateT>(value);
138 template <
typename EndDateT = Aws::Utils::DateTime>
155 m_capacityBlockDurationHoursHasBeenSet =
true;
156 m_capacityBlockDurationHours = value;
170 template <
typename UpfrontFeeT = Aws::String>
172 m_upfrontFeeHasBeenSet =
true;
173 m_upfrontFee = std::forward<UpfrontFeeT>(value);
175 template <
typename UpfrontFeeT = Aws::String>
188 template <
typename CurrencyCodeT = Aws::String>
190 m_currencyCodeHasBeenSet =
true;
191 m_currencyCode = std::forward<CurrencyCodeT>(value);
193 template <
typename CurrencyCodeT = Aws::String>
207 m_tenancyHasBeenSet =
true;
222 template <
typename UltraserverTypeT = Aws::String>
224 m_ultraserverTypeHasBeenSet =
true;
225 m_ultraserverType = std::forward<UltraserverTypeT>(value);
227 template <
typename UltraserverTypeT = Aws::String>
241 m_ultraserverCountHasBeenSet =
true;
242 m_ultraserverCount = value;
260 m_capacityBlockDurationMinutesHasBeenSet =
true;
261 m_capacityBlockDurationMinutes = value;
275 int m_instanceCount{0};
281 int m_capacityBlockDurationHours{0};
291 int m_ultraserverCount{0};
293 int m_capacityBlockDurationMinutes{0};
294 bool m_capacityBlockOfferingIdHasBeenSet =
false;
295 bool m_instanceTypeHasBeenSet =
false;
296 bool m_availabilityZoneHasBeenSet =
false;
297 bool m_instanceCountHasBeenSet =
false;
298 bool m_startDateHasBeenSet =
false;
299 bool m_endDateHasBeenSet =
false;
300 bool m_capacityBlockDurationHoursHasBeenSet =
false;
301 bool m_upfrontFeeHasBeenSet =
false;
302 bool m_currencyCodeHasBeenSet =
false;
303 bool m_tenancyHasBeenSet =
false;
304 bool m_ultraserverTypeHasBeenSet =
false;
305 bool m_ultraserverCountHasBeenSet =
false;
306 bool m_capacityBlockDurationMinutesHasBeenSet =
false;
void SetCapacityBlockDurationHours(int value)
void SetUltraserverType(UltraserverTypeT &&value)
void SetTenancy(CapacityReservationTenancy value)
bool UltraserverTypeHasBeenSet() const
void SetInstanceType(InstanceTypeT &&value)
CapacityBlockOffering & WithCapacityBlockDurationMinutes(int value)
bool StartDateHasBeenSet() const
const Aws::String & GetInstanceType() const
CapacityBlockOffering & WithEndDate(EndDateT &&value)
CapacityBlockOffering & WithUpfrontFee(UpfrontFeeT &&value)
int GetUltraserverCount() const
CapacityBlockOffering & WithStartDate(StartDateT &&value)
int GetInstanceCount() const
CapacityBlockOffering & WithCurrencyCode(CurrencyCodeT &&value)
void SetUltraserverCount(int value)
void SetCurrencyCode(CurrencyCodeT &&value)
const Aws::String & GetCapacityBlockOfferingId() const
const Aws::Utils::DateTime & GetStartDate() const
bool InstanceTypeHasBeenSet() const
void SetUpfrontFee(UpfrontFeeT &&value)
void SetCapacityBlockDurationMinutes(int value)
AWS_EC2_API CapacityBlockOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetCapacityBlockDurationHours() const
CapacityReservationTenancy GetTenancy() const
bool CapacityBlockDurationHoursHasBeenSet() const
const Aws::Utils::DateTime & GetEndDate() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityBlockOffering & WithInstanceType(InstanceTypeT &&value)
CapacityBlockOffering & WithCapacityBlockOfferingId(CapacityBlockOfferingIdT &&value)
CapacityBlockOffering & WithUltraserverCount(int value)
bool UltraserverCountHasBeenSet() const
void SetEndDate(EndDateT &&value)
bool CurrencyCodeHasBeenSet() const
bool InstanceCountHasBeenSet() const
bool TenancyHasBeenSet() const
AWS_EC2_API CapacityBlockOffering()=default
void SetCapacityBlockOfferingId(CapacityBlockOfferingIdT &&value)
CapacityBlockOffering & WithInstanceCount(int value)
bool UpfrontFeeHasBeenSet() const
void SetStartDate(StartDateT &&value)
bool CapacityBlockDurationMinutesHasBeenSet() const
CapacityBlockOffering & WithUltraserverType(UltraserverTypeT &&value)
const Aws::String & GetAvailabilityZone() const
CapacityBlockOffering & WithCapacityBlockDurationHours(int value)
const Aws::String & GetUpfrontFee() const
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetUltraserverType() const
CapacityBlockOffering & WithAvailabilityZone(AvailabilityZoneT &&value)
bool EndDateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetCapacityBlockDurationMinutes() const
void SetInstanceCount(int value)
CapacityBlockOffering & WithTenancy(CapacityReservationTenancy value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API CapacityBlockOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCurrencyCode() const
bool CapacityBlockOfferingIdHasBeenSet() const
CapacityReservationTenancy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream