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>
100 template<
typename Ma
intenanceStrategiesT = FleetSpotMa
intenanceStrategiesRequest>
101 void SetMaintenanceStrategies(MaintenanceStrategiesT&& value) { m_maintenanceStrategiesHasBeenSet =
true; m_maintenanceStrategies = std::forward<MaintenanceStrategiesT>(value); }
102 template<
typename Ma
intenanceStrategiesT = FleetSpotMa
intenanceStrategiesRequest>
146 inline void SetSingleInstanceType(
bool value) { m_singleInstanceTypeHasBeenSet =
true; m_singleInstanceType = value; }
172 inline void SetMinTargetCapacity(
int value) { m_minTargetCapacityHasBeenSet =
true; m_minTargetCapacity = value; }
194 template<
typename MaxTotalPriceT = Aws::String>
195 void SetMaxTotalPrice(MaxTotalPriceT&& value) { m_maxTotalPriceHasBeenSet =
true; m_maxTotalPrice = std::forward<MaxTotalPriceT>(value); }
196 template<
typename MaxTotalPriceT = Aws::String>
202 bool m_allocationStrategyHasBeenSet =
false;
204 FleetSpotMaintenanceStrategiesRequest m_maintenanceStrategies;
205 bool m_maintenanceStrategiesHasBeenSet =
false;
208 bool m_instanceInterruptionBehaviorHasBeenSet =
false;
210 int m_instancePoolsToUseCount{0};
211 bool m_instancePoolsToUseCountHasBeenSet =
false;
213 bool m_singleInstanceType{
false};
214 bool m_singleInstanceTypeHasBeenSet =
false;
216 bool m_singleAvailabilityZone{
false};
217 bool m_singleAvailabilityZoneHasBeenSet =
false;
219 int m_minTargetCapacity{0};
220 bool m_minTargetCapacityHasBeenSet =
false;
223 bool m_maxTotalPriceHasBeenSet =
false;
SpotOptionsRequest & WithMaxTotalPrice(MaxTotalPriceT &&value)
void SetMaintenanceStrategies(MaintenanceStrategiesT &&value)
SpotOptionsRequest & WithAllocationStrategy(SpotAllocationStrategy value)
SpotInstanceInterruptionBehavior GetInstanceInterruptionBehavior() const
bool MaxTotalPriceHasBeenSet() const
void SetInstancePoolsToUseCount(int value)
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
void SetMaxTotalPrice(MaxTotalPriceT &&value)
bool GetSingleAvailabilityZone() const
SpotAllocationStrategy GetAllocationStrategy() const
bool SingleInstanceTypeHasBeenSet() const
bool InstanceInterruptionBehaviorHasBeenSet() const
void SetSingleInstanceType(bool value)
void SetSingleAvailabilityZone(bool value)
void SetAllocationStrategy(SpotAllocationStrategy value)
int GetMinTargetCapacity() const
SpotOptionsRequest & WithMaintenanceStrategies(MaintenanceStrategiesT &&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 & WithInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior value)
SpotOptionsRequest & WithInstancePoolsToUseCount(int value)
bool MaintenanceStrategiesHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool InstancePoolsToUseCountHasBeenSet() const
AWS_EC2_API SpotOptionsRequest()=default
const FleetSpotMaintenanceStrategiesRequest & GetMaintenanceStrategies() const
SpotOptionsRequest & WithSingleAvailabilityZone(bool value)
void SetInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior value)
SpotInstanceInterruptionBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream