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/CapacityReservationOptionsRequest.h>
11#include <aws/ec2/model/FleetOnDemandAllocationStrategy.h>
51 m_allocationStrategyHasBeenSet =
true;
52 m_allocationStrategy = value;
67 template <
typename CapacityReservationOptionsT = CapacityReservationOptionsRequest>
69 m_capacityReservationOptionsHasBeenSet =
true;
70 m_capacityReservationOptions = std::forward<CapacityReservationOptionsT>(value);
72 template <
typename CapacityReservationOptionsT = CapacityReservationOptionsRequest>
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 CapacityReservationOptionsRequest 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;
AWS_EC2_API OnDemandOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SingleInstanceTypeHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetMaxTotalPrice(MaxTotalPriceT &&value)
OnDemandOptionsRequest & WithMaxTotalPrice(MaxTotalPriceT &&value)
void SetAllocationStrategy(FleetOnDemandAllocationStrategy value)
OnDemandOptionsRequest & WithSingleAvailabilityZone(bool value)
OnDemandOptionsRequest & WithAllocationStrategy(FleetOnDemandAllocationStrategy value)
bool SingleAvailabilityZoneHasBeenSet() const
OnDemandOptionsRequest & WithSingleInstanceType(bool value)
FleetOnDemandAllocationStrategy GetAllocationStrategy() const
void SetCapacityReservationOptions(CapacityReservationOptionsT &&value)
bool MaxTotalPriceHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GetSingleInstanceType() const
void SetMinTargetCapacity(int value)
bool CapacityReservationOptionsHasBeenSet() const
void SetSingleAvailabilityZone(bool value)
const CapacityReservationOptionsRequest & GetCapacityReservationOptions() const
bool MinTargetCapacityHasBeenSet() const
OnDemandOptionsRequest & WithMinTargetCapacity(int value)
void SetSingleInstanceType(bool value)
const Aws::String & GetMaxTotalPrice() const
AWS_EC2_API OnDemandOptionsRequest()=default
OnDemandOptionsRequest & WithCapacityReservationOptions(CapacityReservationOptionsT &&value)
bool GetSingleAvailabilityZone() const
bool AllocationStrategyHasBeenSet() const
AWS_EC2_API OnDemandOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetMinTargetCapacity() const
FleetOnDemandAllocationStrategy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream