7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/SpotAllocationStrategy.h>
10#include <aws/ec2/model/FleetSpotMaintenanceStrategies.h>
11#include <aws/ec2/model/SpotInstanceInterruptionBehavior.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
150 inline void SetSingleInstanceType(
bool value) { m_singleInstanceTypeHasBeenSet =
true; m_singleInstanceType = value; }
176 inline void SetMinTargetCapacity(
int value) { m_minTargetCapacityHasBeenSet =
true; m_minTargetCapacity = value; }
200 inline void SetMaxTotalPrice(
const char* value) { m_maxTotalPriceHasBeenSet =
true; m_maxTotalPrice.assign(value); }
208 bool m_allocationStrategyHasBeenSet =
false;
211 bool m_maintenanceStrategiesHasBeenSet =
false;
214 bool m_instanceInterruptionBehaviorHasBeenSet =
false;
216 int m_instancePoolsToUseCount;
217 bool m_instancePoolsToUseCountHasBeenSet =
false;
219 bool m_singleInstanceType;
220 bool m_singleInstanceTypeHasBeenSet =
false;
222 bool m_singleAvailabilityZone;
223 bool m_singleAvailabilityZoneHasBeenSet =
false;
225 int m_minTargetCapacity;
226 bool m_minTargetCapacityHasBeenSet =
false;
229 bool m_maxTotalPriceHasBeenSet =
false;
SpotOptions & WithAllocationStrategy(SpotAllocationStrategy &&value)
bool MaintenanceStrategiesHasBeenSet() const
SpotOptions & WithInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior &&value)
void SetSingleInstanceType(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotOptions & WithAllocationStrategy(const SpotAllocationStrategy &value)
SpotOptions & WithMaintenanceStrategies(const FleetSpotMaintenanceStrategies &value)
void SetAllocationStrategy(SpotAllocationStrategy &&value)
void SetMaxTotalPrice(Aws::String &&value)
AWS_EC2_API SpotOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMaintenanceStrategies(FleetSpotMaintenanceStrategies &&value)
SpotOptions & WithInstanceInterruptionBehavior(const SpotInstanceInterruptionBehavior &value)
bool MinTargetCapacityHasBeenSet() const
void SetInstanceInterruptionBehavior(const SpotInstanceInterruptionBehavior &value)
const FleetSpotMaintenanceStrategies & GetMaintenanceStrategies() const
bool SingleAvailabilityZoneHasBeenSet() const
bool AllocationStrategyHasBeenSet() const
bool InstanceInterruptionBehaviorHasBeenSet() const
const SpotInstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
bool GetSingleAvailabilityZone() const
AWS_EC2_API SpotOptions()
AWS_EC2_API SpotOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMaxTotalPrice(const char *value)
void SetMinTargetCapacity(int value)
bool MaxTotalPriceHasBeenSet() const
SpotOptions & WithMaxTotalPrice(Aws::String &&value)
void SetMaxTotalPrice(const Aws::String &value)
SpotOptions & WithInstancePoolsToUseCount(int value)
void SetInstancePoolsToUseCount(int value)
void SetMaintenanceStrategies(const FleetSpotMaintenanceStrategies &value)
void SetSingleAvailabilityZone(bool value)
void SetInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior &&value)
const SpotAllocationStrategy & GetAllocationStrategy() const
SpotOptions & WithSingleAvailabilityZone(bool value)
bool GetSingleInstanceType() const
const Aws::String & GetMaxTotalPrice() const
int GetMinTargetCapacity() const
SpotOptions & WithMaxTotalPrice(const Aws::String &value)
SpotOptions & WithSingleInstanceType(bool value)
int GetInstancePoolsToUseCount() const
bool InstancePoolsToUseCountHasBeenSet() const
SpotOptions & WithMaintenanceStrategies(FleetSpotMaintenanceStrategies &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool SingleInstanceTypeHasBeenSet() const
SpotOptions & WithMaxTotalPrice(const char *value)
void SetAllocationStrategy(const SpotAllocationStrategy &value)
SpotOptions & WithMinTargetCapacity(int value)
SpotInstanceInterruptionBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream