7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FleetSpotMaintenanceStrategiesRequest.h>
11#include <aws/ec2/model/SpotAllocationStrategy.h>
12#include <aws/ec2/model/SpotInstanceInterruptionBehavior.h>
84 m_allocationStrategyHasBeenSet =
true;
85 m_allocationStrategy = value;
100 template <
typename Ma
intenanceStrategiesT = FleetSpotMa
intenanceStrategiesRequest>
102 m_maintenanceStrategiesHasBeenSet =
true;
103 m_maintenanceStrategies = std::forward<MaintenanceStrategiesT>(value);
105 template <
typename Ma
intenanceStrategiesT = FleetSpotMa
intenanceStrategiesRequest>
120 m_instanceInterruptionBehaviorHasBeenSet =
true;
121 m_instanceInterruptionBehavior = value;
147 m_instancePoolsToUseCountHasBeenSet =
true;
148 m_instancePoolsToUseCount = value;
165 m_singleInstanceTypeHasBeenSet =
true;
166 m_singleInstanceType = value;
183 m_singleAvailabilityZoneHasBeenSet =
true;
184 m_singleAvailabilityZone = value;
203 m_minTargetCapacityHasBeenSet =
true;
204 m_minTargetCapacity = value;
230 template <
typename MaxTotalPriceT = Aws::String>
232 m_maxTotalPriceHasBeenSet =
true;
233 m_maxTotalPrice = std::forward<MaxTotalPriceT>(value);
235 template <
typename MaxTotalPriceT = Aws::String>
244 FleetSpotMaintenanceStrategiesRequest m_maintenanceStrategies;
248 int m_instancePoolsToUseCount{0};
250 bool m_singleInstanceType{
false};
252 bool m_singleAvailabilityZone{
false};
254 int m_minTargetCapacity{0};
257 bool m_allocationStrategyHasBeenSet =
false;
258 bool m_maintenanceStrategiesHasBeenSet =
false;
259 bool m_instanceInterruptionBehaviorHasBeenSet =
false;
260 bool m_instancePoolsToUseCountHasBeenSet =
false;
261 bool m_singleInstanceTypeHasBeenSet =
false;
262 bool m_singleAvailabilityZoneHasBeenSet =
false;
263 bool m_minTargetCapacityHasBeenSet =
false;
264 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