7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetOnDemandAllocationStrategy.h>
10#include <aws/ec2/model/CapacityReservationOptions.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
83 inline void SetSingleInstanceType(
bool value) { m_singleInstanceTypeHasBeenSet =
true; m_singleInstanceType = value; }
109 inline void SetMinTargetCapacity(
int value) { m_minTargetCapacityHasBeenSet =
true; m_minTargetCapacity = value; }
129 inline void SetMaxTotalPrice(
const char* value) { m_maxTotalPriceHasBeenSet =
true; m_maxTotalPrice.assign(value); }
137 bool m_allocationStrategyHasBeenSet =
false;
140 bool m_capacityReservationOptionsHasBeenSet =
false;
142 bool m_singleInstanceType;
143 bool m_singleInstanceTypeHasBeenSet =
false;
145 bool m_singleAvailabilityZone;
146 bool m_singleAvailabilityZoneHasBeenSet =
false;
148 int m_minTargetCapacity;
149 bool m_minTargetCapacityHasBeenSet =
false;
152 bool m_maxTotalPriceHasBeenSet =
false;
OnDemandOptions & WithAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
bool GetSingleInstanceType() const
const Aws::String & GetMaxTotalPrice() const
const CapacityReservationOptions & GetCapacityReservationOptions() const
void SetSingleAvailabilityZone(bool value)
bool GetSingleAvailabilityZone() const
bool MinTargetCapacityHasBeenSet() const
void SetMaxTotalPrice(const char *value)
OnDemandOptions & WithMinTargetCapacity(int value)
OnDemandOptions & WithMaxTotalPrice(Aws::String &&value)
OnDemandOptions & WithSingleAvailabilityZone(bool value)
bool AllocationStrategyHasBeenSet() const
AWS_EC2_API OnDemandOptions()
int GetMinTargetCapacity() const
bool SingleInstanceTypeHasBeenSet() const
OnDemandOptions & WithSingleInstanceType(bool value)
AWS_EC2_API OnDemandOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
OnDemandOptions & WithMaxTotalPrice(const char *value)
void SetMinTargetCapacity(int value)
OnDemandOptions & WithMaxTotalPrice(const Aws::String &value)
OnDemandOptions & WithCapacityReservationOptions(CapacityReservationOptions &&value)
bool MaxTotalPriceHasBeenSet() const
bool SingleAvailabilityZoneHasBeenSet() const
void SetSingleInstanceType(bool value)
void SetAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
void SetAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
bool CapacityReservationOptionsHasBeenSet() const
const FleetOnDemandAllocationStrategy & GetAllocationStrategy() const
OnDemandOptions & WithAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OnDemandOptions & WithCapacityReservationOptions(const CapacityReservationOptions &value)
void SetMaxTotalPrice(const Aws::String &value)
void SetCapacityReservationOptions(const CapacityReservationOptions &value)
void SetCapacityReservationOptions(CapacityReservationOptions &&value)
void SetMaxTotalPrice(Aws::String &&value)
AWS_EC2_API OnDemandOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetOnDemandAllocationStrategy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream