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/CapacityReservationOptions.h>
11#include <aws/ec2/model/FleetOnDemandAllocationStrategy.h>
51 m_allocationStrategyHasBeenSet =
true;
52 m_allocationStrategy = value;
67 template <
typename CapacityReservationOptionsT = CapacityReservationOptions>
69 m_capacityReservationOptionsHasBeenSet =
true;
70 m_capacityReservationOptions = std::forward<CapacityReservationOptionsT>(value);
72 template <
typename CapacityReservationOptionsT = CapacityReservationOptions>
88 m_singleInstanceTypeHasBeenSet =
true;
89 m_singleInstanceType = value;
106 m_singleAvailabilityZoneHasBeenSet =
true;
107 m_singleAvailabilityZone = value;
126 m_minTargetCapacityHasBeenSet =
true;
127 m_minTargetCapacity = value;
149 template <
typename MaxTotalPriceT = Aws::String>
151 m_maxTotalPriceHasBeenSet =
true;
152 m_maxTotalPrice = std::forward<MaxTotalPriceT>(value);
154 template <
typename MaxTotalPriceT = Aws::String>
163 CapacityReservationOptions m_capacityReservationOptions;
165 bool m_singleInstanceType{
false};
167 bool m_singleAvailabilityZone{
false};
169 int m_minTargetCapacity{0};
172 bool m_allocationStrategyHasBeenSet =
false;
173 bool m_capacityReservationOptionsHasBeenSet =
false;
174 bool m_singleInstanceTypeHasBeenSet =
false;
175 bool m_singleAvailabilityZoneHasBeenSet =
false;
176 bool m_minTargetCapacityHasBeenSet =
false;
177 bool m_maxTotalPriceHasBeenSet =
false;
FleetOnDemandAllocationStrategy GetAllocationStrategy() const
bool GetSingleInstanceType() const
const Aws::String & GetMaxTotalPrice() const
AWS_EC2_API OnDemandOptions()=default
const CapacityReservationOptions & GetCapacityReservationOptions() const
void SetSingleAvailabilityZone(bool value)
bool GetSingleAvailabilityZone() const
OnDemandOptions & WithAllocationStrategy(FleetOnDemandAllocationStrategy value)
bool MinTargetCapacityHasBeenSet() const
OnDemandOptions & WithMinTargetCapacity(int value)
void SetAllocationStrategy(FleetOnDemandAllocationStrategy value)
OnDemandOptions & WithSingleAvailabilityZone(bool value)
bool AllocationStrategyHasBeenSet() const
OnDemandOptions & WithMaxTotalPrice(MaxTotalPriceT &&value)
OnDemandOptions & WithCapacityReservationOptions(CapacityReservationOptionsT &&value)
int GetMinTargetCapacity() const
bool SingleInstanceTypeHasBeenSet() const
OnDemandOptions & WithSingleInstanceType(bool value)
AWS_EC2_API OnDemandOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMinTargetCapacity(int value)
bool MaxTotalPriceHasBeenSet() const
bool SingleAvailabilityZoneHasBeenSet() const
void SetSingleInstanceType(bool value)
bool CapacityReservationOptionsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMaxTotalPrice(MaxTotalPriceT &&value)
void SetCapacityReservationOptions(CapacityReservationOptionsT &&value)
AWS_EC2_API OnDemandOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetOnDemandAllocationStrategy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream