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>
53 inline void SetCapacityBlockOfferingId(
const char* value) { m_capacityBlockOfferingIdHasBeenSet =
true; m_capacityBlockOfferingId.assign(value); }
67 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
81 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
93 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
139 inline void SetUpfrontFee(
const char* value) { m_upfrontFeeHasBeenSet =
true; m_upfrontFee.assign(value); }
153 inline void SetCurrencyCode(
const char* value) { m_currencyCodeHasBeenSet =
true; m_currencyCode.assign(value); }
173 bool m_capacityBlockOfferingIdHasBeenSet =
false;
176 bool m_instanceTypeHasBeenSet =
false;
179 bool m_availabilityZoneHasBeenSet =
false;
182 bool m_instanceCountHasBeenSet =
false;
185 bool m_startDateHasBeenSet =
false;
188 bool m_endDateHasBeenSet =
false;
190 int m_capacityBlockDurationHours;
191 bool m_capacityBlockDurationHoursHasBeenSet =
false;
194 bool m_upfrontFeeHasBeenSet =
false;
197 bool m_currencyCodeHasBeenSet =
false;
200 bool m_tenancyHasBeenSet =
false;
void SetCapacityBlockDurationHours(int value)
CapacityBlockOffering & WithUpfrontFee(const Aws::String &value)
CapacityBlockOffering & WithCurrencyCode(const Aws::String &value)
bool StartDateHasBeenSet() const
const Aws::String & GetInstanceType() const
CapacityBlockOffering & WithAvailabilityZone(const char *value)
void SetStartDate(const Aws::Utils::DateTime &value)
int GetInstanceCount() const
AWS_EC2_API CapacityBlockOffering()
void SetCapacityBlockOfferingId(const Aws::String &value)
void SetUpfrontFee(Aws::String &&value)
CapacityBlockOffering & WithUpfrontFee(Aws::String &&value)
const Aws::String & GetCapacityBlockOfferingId() const
CapacityBlockOffering & WithCurrencyCode(Aws::String &&value)
void SetEndDate(const Aws::Utils::DateTime &value)
CapacityBlockOffering & WithInstanceType(Aws::String &&value)
CapacityBlockOffering & WithStartDate(Aws::Utils::DateTime &&value)
CapacityBlockOffering & WithCapacityBlockOfferingId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartDate() const
bool InstanceTypeHasBeenSet() const
void SetCapacityBlockOfferingId(Aws::String &&value)
void SetInstanceType(const char *value)
CapacityBlockOffering & WithCurrencyCode(const char *value)
AWS_EC2_API CapacityBlockOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetCapacityBlockDurationHours() const
CapacityBlockOffering & WithEndDate(const Aws::Utils::DateTime &value)
void SetStartDate(Aws::Utils::DateTime &&value)
const CapacityReservationTenancy & GetTenancy() const
bool CapacityBlockDurationHoursHasBeenSet() const
void SetCurrencyCode(Aws::String &&value)
const Aws::Utils::DateTime & GetEndDate() const
CapacityBlockOffering & WithCapacityBlockOfferingId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceType(Aws::String &&value)
CapacityBlockOffering & WithStartDate(const Aws::Utils::DateTime &value)
void SetUpfrontFee(const char *value)
bool CurrencyCodeHasBeenSet() const
bool InstanceCountHasBeenSet() const
bool TenancyHasBeenSet() const
void SetTenancy(CapacityReservationTenancy &&value)
CapacityBlockOffering & WithUpfrontFee(const char *value)
CapacityBlockOffering & WithInstanceCount(int value)
bool UpfrontFeeHasBeenSet() const
void SetTenancy(const CapacityReservationTenancy &value)
void SetCurrencyCode(const Aws::String &value)
CapacityBlockOffering & WithEndDate(Aws::Utils::DateTime &&value)
CapacityBlockOffering & WithTenancy(const CapacityReservationTenancy &value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
CapacityBlockOffering & WithCapacityBlockDurationHours(int value)
void SetCapacityBlockOfferingId(const char *value)
CapacityBlockOffering & WithAvailabilityZone(const Aws::String &value)
const Aws::String & GetUpfrontFee() const
CapacityBlockOffering & WithTenancy(CapacityReservationTenancy &&value)
void SetAvailabilityZone(const char *value)
void SetAvailabilityZone(const Aws::String &value)
bool AvailabilityZoneHasBeenSet() const
CapacityBlockOffering & WithInstanceType(const Aws::String &value)
void SetCurrencyCode(const char *value)
CapacityBlockOffering & WithCapacityBlockOfferingId(const Aws::String &value)
void SetInstanceType(const Aws::String &value)
bool EndDateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEndDate(Aws::Utils::DateTime &&value)
void SetUpfrontFee(const Aws::String &value)
void SetInstanceCount(int value)
AWS_EC2_API CapacityBlockOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCurrencyCode() const
bool CapacityBlockOfferingIdHasBeenSet() const
CapacityBlockOffering & WithAvailabilityZone(Aws::String &&value)
CapacityBlockOffering & WithInstanceType(const char *value)
CapacityReservationTenancy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream