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/FleetSpotMaintenanceStrategiesRequest.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;
SpotOptionsRequest & WithInstanceInterruptionBehavior(const SpotInstanceInterruptionBehavior &value)
bool MaxTotalPriceHasBeenSet() const
void SetMaxTotalPrice(const char *value)
void SetInstancePoolsToUseCount(int value)
SpotOptionsRequest & WithMaintenanceStrategies(const FleetSpotMaintenanceStrategiesRequest &value)
void SetMaxTotalPrice(Aws::String &&value)
const SpotInstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
AWS_EC2_API SpotOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotOptionsRequest & WithSingleInstanceType(bool value)
void SetMinTargetCapacity(int value)
bool SingleAvailabilityZoneHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SpotOptionsRequest & WithAllocationStrategy(SpotAllocationStrategy &&value)
SpotOptionsRequest & WithAllocationStrategy(const SpotAllocationStrategy &value)
void SetInstanceInterruptionBehavior(const SpotInstanceInterruptionBehavior &value)
void SetMaxTotalPrice(const Aws::String &value)
bool GetSingleAvailabilityZone() const
const SpotAllocationStrategy & GetAllocationStrategy() const
bool SingleInstanceTypeHasBeenSet() const
bool InstanceInterruptionBehaviorHasBeenSet() const
void SetSingleInstanceType(bool value)
void SetMaintenanceStrategies(const FleetSpotMaintenanceStrategiesRequest &value)
void SetInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior &&value)
void SetSingleAvailabilityZone(bool value)
int GetMinTargetCapacity() const
void SetAllocationStrategy(SpotAllocationStrategy &&value)
SpotOptionsRequest & WithInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior &&value)
bool GetSingleInstanceType() const
AWS_EC2_API SpotOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
bool MinTargetCapacityHasBeenSet() const
int GetInstancePoolsToUseCount() const
const Aws::String & GetMaxTotalPrice() const
SpotOptionsRequest & WithMinTargetCapacity(int value)
bool AllocationStrategyHasBeenSet() const
SpotOptionsRequest & WithInstancePoolsToUseCount(int value)
bool MaintenanceStrategiesHasBeenSet() const
void SetMaintenanceStrategies(FleetSpotMaintenanceStrategiesRequest &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAllocationStrategy(const SpotAllocationStrategy &value)
SpotOptionsRequest & WithMaintenanceStrategies(FleetSpotMaintenanceStrategiesRequest &&value)
bool InstancePoolsToUseCountHasBeenSet() const
AWS_EC2_API SpotOptionsRequest()
const FleetSpotMaintenanceStrategiesRequest & GetMaintenanceStrategies() const
SpotOptionsRequest & WithMaxTotalPrice(const char *value)
SpotOptionsRequest & WithSingleAvailabilityZone(bool value)
SpotOptionsRequest & WithMaxTotalPrice(Aws::String &&value)
SpotOptionsRequest & WithMaxTotalPrice(const Aws::String &value)
SpotInstanceInterruptionBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream