7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetOnDemandAllocationStrategy.h>
10#include <aws/ec2/model/CapacityReservationOptionsRequest.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
67 template<
typename CapacityReservationOptionsT = CapacityReservationOptionsRequest>
68 void SetCapacityReservationOptions(CapacityReservationOptionsT&& value) { m_capacityReservationOptionsHasBeenSet =
true; m_capacityReservationOptions = std::forward<CapacityReservationOptionsT>(value); }
69 template<
typename CapacityReservationOptionsT = CapacityReservationOptionsRequest>
81 inline void SetSingleInstanceType(
bool value) { m_singleInstanceTypeHasBeenSet =
true; m_singleInstanceType = value; }
107 inline void SetMinTargetCapacity(
int value) { m_minTargetCapacityHasBeenSet =
true; m_minTargetCapacity = value; }
125 template<
typename MaxTotalPriceT = Aws::String>
126 void SetMaxTotalPrice(MaxTotalPriceT&& value) { m_maxTotalPriceHasBeenSet =
true; m_maxTotalPrice = std::forward<MaxTotalPriceT>(value); }
127 template<
typename MaxTotalPriceT = Aws::String>
133 bool m_allocationStrategyHasBeenSet =
false;
135 CapacityReservationOptionsRequest m_capacityReservationOptions;
136 bool m_capacityReservationOptionsHasBeenSet =
false;
138 bool m_singleInstanceType{
false};
139 bool m_singleInstanceTypeHasBeenSet =
false;
141 bool m_singleAvailabilityZone{
false};
142 bool m_singleAvailabilityZoneHasBeenSet =
false;
144 int m_minTargetCapacity{0};
145 bool m_minTargetCapacityHasBeenSet =
false;
148 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