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/CapacityReservationOptionsRequest.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;
OnDemandOptionsRequest & WithMaxTotalPrice(const Aws::String &value)
AWS_EC2_API OnDemandOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OnDemandOptionsRequest & WithMaxTotalPrice(Aws::String &&value)
bool SingleInstanceTypeHasBeenSet() const
const FleetOnDemandAllocationStrategy & GetAllocationStrategy() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OnDemandOptionsRequest & WithSingleAvailabilityZone(bool value)
bool SingleAvailabilityZoneHasBeenSet() const
OnDemandOptionsRequest & WithAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
AWS_EC2_API OnDemandOptionsRequest()
OnDemandOptionsRequest & WithSingleInstanceType(bool value)
void SetAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
bool MaxTotalPriceHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GetSingleInstanceType() const
void SetMinTargetCapacity(int value)
bool CapacityReservationOptionsHasBeenSet() const
void SetSingleAvailabilityZone(bool value)
void SetCapacityReservationOptions(CapacityReservationOptionsRequest &&value)
OnDemandOptionsRequest & WithMaxTotalPrice(const char *value)
const CapacityReservationOptionsRequest & GetCapacityReservationOptions() const
bool MinTargetCapacityHasBeenSet() const
OnDemandOptionsRequest & WithMinTargetCapacity(int value)
void SetSingleInstanceType(bool value)
void SetMaxTotalPrice(const char *value)
const Aws::String & GetMaxTotalPrice() const
OnDemandOptionsRequest & WithCapacityReservationOptions(CapacityReservationOptionsRequest &&value)
void SetAllocationStrategy(FleetOnDemandAllocationStrategy &&value)
bool GetSingleAvailabilityZone() const
void SetCapacityReservationOptions(const CapacityReservationOptionsRequest &value)
bool AllocationStrategyHasBeenSet() const
OnDemandOptionsRequest & WithCapacityReservationOptions(const CapacityReservationOptionsRequest &value)
AWS_EC2_API OnDemandOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
OnDemandOptionsRequest & WithAllocationStrategy(const FleetOnDemandAllocationStrategy &value)
void SetMaxTotalPrice(const Aws::String &value)
void SetMaxTotalPrice(Aws::String &&value)
int GetMinTargetCapacity() const
FleetOnDemandAllocationStrategy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream