7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
19namespace AutoScaling {
60 template <
typename OnDemandAllocationStrategyT = Aws::String>
62 m_onDemandAllocationStrategyHasBeenSet =
true;
63 m_onDemandAllocationStrategy = std::forward<OnDemandAllocationStrategyT>(value);
65 template <
typename OnDemandAllocationStrategyT = Aws::String>
86 m_onDemandBaseCapacityHasBeenSet =
true;
87 m_onDemandBaseCapacity = value;
105 m_onDemandPercentageAboveBaseCapacityHasBeenSet =
true;
106 m_onDemandPercentageAboveBaseCapacity = value;
144 template <
typename SpotAllocationStrategyT = Aws::String>
146 m_spotAllocationStrategyHasBeenSet =
true;
147 m_spotAllocationStrategy = std::forward<SpotAllocationStrategyT>(value);
149 template <
typename SpotAllocationStrategyT = Aws::String>
167 m_spotInstancePoolsHasBeenSet =
true;
168 m_spotInstancePools = value;
190 template <
typename SpotMaxPriceT = Aws::String>
192 m_spotMaxPriceHasBeenSet =
true;
193 m_spotMaxPrice = std::forward<SpotMaxPriceT>(value);
195 template <
typename SpotMaxPriceT = Aws::String>
204 int m_onDemandBaseCapacity{0};
206 int m_onDemandPercentageAboveBaseCapacity{0};
210 int m_spotInstancePools{0};
213 bool m_onDemandAllocationStrategyHasBeenSet =
false;
214 bool m_onDemandBaseCapacityHasBeenSet =
false;
215 bool m_onDemandPercentageAboveBaseCapacityHasBeenSet =
false;
216 bool m_spotAllocationStrategyHasBeenSet =
false;
217 bool m_spotInstancePoolsHasBeenSet =
false;
218 bool m_spotMaxPriceHasBeenSet =
false;
void SetSpotInstancePools(int value)
AWS_AUTOSCALING_API InstancesDistribution(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOnDemandAllocationStrategy() const
InstancesDistribution & WithOnDemandBaseCapacity(int value)
void SetOnDemandPercentageAboveBaseCapacity(int value)
InstancesDistribution & WithSpotInstancePools(int value)
void SetOnDemandAllocationStrategy(OnDemandAllocationStrategyT &&value)
int GetOnDemandBaseCapacity() const
void SetSpotAllocationStrategy(SpotAllocationStrategyT &&value)
const Aws::String & GetSpotMaxPrice() const
bool OnDemandAllocationStrategyHasBeenSet() const
const Aws::String & GetSpotAllocationStrategy() const
void SetSpotMaxPrice(SpotMaxPriceT &&value)
bool SpotMaxPriceHasBeenSet() const
InstancesDistribution & WithSpotMaxPrice(SpotMaxPriceT &&value)
AWS_AUTOSCALING_API InstancesDistribution()=default
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOnDemandBaseCapacity(int value)
bool SpotInstancePoolsHasBeenSet() const
InstancesDistribution & WithOnDemandPercentageAboveBaseCapacity(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OnDemandBaseCapacityHasBeenSet() const
int GetOnDemandPercentageAboveBaseCapacity() const
InstancesDistribution & WithSpotAllocationStrategy(SpotAllocationStrategyT &&value)
InstancesDistribution & WithOnDemandAllocationStrategy(OnDemandAllocationStrategyT &&value)
AWS_AUTOSCALING_API InstancesDistribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SpotAllocationStrategyHasBeenSet() const
int GetSpotInstancePools() const
bool OnDemandPercentageAboveBaseCapacityHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream