7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
51 template<
typename CapacityBlockOfferingIdT = Aws::String>
52 void SetCapacityBlockOfferingId(CapacityBlockOfferingIdT&& value) { m_capacityBlockOfferingIdHasBeenSet =
true; m_capacityBlockOfferingId = std::forward<CapacityBlockOfferingIdT>(value); }
53 template<
typename CapacityBlockOfferingIdT = Aws::String>
63 template<
typename InstanceTypeT = Aws::String>
64 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
65 template<
typename InstanceTypeT = Aws::String>
75 template<
typename AvailabilityZoneT = Aws::String>
76 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
77 template<
typename AvailabilityZoneT = Aws::String>
87 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
97 template<
typename StartDateT = Aws::Utils::DateTime>
98 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet =
true; m_startDate = std::forward<StartDateT>(value); }
99 template<
typename StartDateT = Aws::Utils::DateTime>
109 template<
typename EndDateT = Aws::Utils::DateTime>
110 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet =
true; m_endDate = std::forward<EndDateT>(value); }
111 template<
typename EndDateT = Aws::Utils::DateTime>
134 template<
typename UpfrontFeeT = Aws::String>
135 void SetUpfrontFee(UpfrontFeeT&& value) { m_upfrontFeeHasBeenSet =
true; m_upfrontFee = std::forward<UpfrontFeeT>(value); }
136 template<
typename UpfrontFeeT = Aws::String>
146 template<
typename CurrencyCodeT = Aws::String>
147 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet =
true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
148 template<
typename CurrencyCodeT = Aws::String>
168 template<
typename UltraserverTypeT = Aws::String>
169 void SetUltraserverType(UltraserverTypeT&& value) { m_ultraserverTypeHasBeenSet =
true; m_ultraserverType = std::forward<UltraserverTypeT>(value); }
170 template<
typename UltraserverTypeT = Aws::String>
180 inline void SetUltraserverCount(
int value) { m_ultraserverCountHasBeenSet =
true; m_ultraserverCount = value; }
199 bool m_capacityBlockOfferingIdHasBeenSet =
false;
202 bool m_instanceTypeHasBeenSet =
false;
205 bool m_availabilityZoneHasBeenSet =
false;
207 int m_instanceCount{0};
208 bool m_instanceCountHasBeenSet =
false;
211 bool m_startDateHasBeenSet =
false;
214 bool m_endDateHasBeenSet =
false;
216 int m_capacityBlockDurationHours{0};
217 bool m_capacityBlockDurationHoursHasBeenSet =
false;
220 bool m_upfrontFeeHasBeenSet =
false;
223 bool m_currencyCodeHasBeenSet =
false;
226 bool m_tenancyHasBeenSet =
false;
229 bool m_ultraserverTypeHasBeenSet =
false;
231 int m_ultraserverCount{0};
232 bool m_ultraserverCountHasBeenSet =
false;
234 int m_capacityBlockDurationMinutes{0};
235 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