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>
68 inline void SetOnDemandAllocationStrategy(
const char* value) { m_onDemandAllocationStrategyHasBeenSet =
true; m_onDemandAllocationStrategy.assign(value); }
87 inline void SetOnDemandBaseCapacity(
int value) { m_onDemandBaseCapacityHasBeenSet =
true; m_onDemandBaseCapacity = value; }
136 inline void SetSpotAllocationStrategy(
const char* value) { m_spotAllocationStrategyHasBeenSet =
true; m_spotAllocationStrategy.assign(value); }
152 inline void SetSpotInstancePools(
int value) { m_spotInstancePoolsHasBeenSet =
true; m_spotInstancePools = value; }
172 inline void SetSpotMaxPrice(
const char* value) { m_spotMaxPriceHasBeenSet =
true; m_spotMaxPrice.assign(value); }
180 bool m_onDemandAllocationStrategyHasBeenSet =
false;
182 int m_onDemandBaseCapacity;
183 bool m_onDemandBaseCapacityHasBeenSet =
false;
185 int m_onDemandPercentageAboveBaseCapacity;
186 bool m_onDemandPercentageAboveBaseCapacityHasBeenSet =
false;
189 bool m_spotAllocationStrategyHasBeenSet =
false;
191 int m_spotInstancePools;
192 bool m_spotInstancePoolsHasBeenSet =
false;
195 bool m_spotMaxPriceHasBeenSet =
false;
void SetSpotInstancePools(int value)
InstancesDistribution & WithSpotAllocationStrategy(Aws::String &&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)
AWS_AUTOSCALING_API InstancesDistribution()
int GetOnDemandBaseCapacity() const
const Aws::String & GetSpotMaxPrice() const
bool OnDemandAllocationStrategyHasBeenSet() const
const Aws::String & GetSpotAllocationStrategy() const
bool SpotMaxPriceHasBeenSet() const
InstancesDistribution & WithOnDemandAllocationStrategy(const Aws::String &value)
void SetSpotAllocationStrategy(const char *value)
void SetSpotAllocationStrategy(Aws::String &&value)
InstancesDistribution & WithOnDemandAllocationStrategy(Aws::String &&value)
InstancesDistribution & WithSpotMaxPrice(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOnDemandAllocationStrategy(const char *value)
void SetSpotAllocationStrategy(const Aws::String &value)
InstancesDistribution & WithSpotMaxPrice(const Aws::String &value)
InstancesDistribution & WithOnDemandAllocationStrategy(const char *value)
void SetOnDemandBaseCapacity(int value)
bool SpotInstancePoolsHasBeenSet() const
InstancesDistribution & WithOnDemandPercentageAboveBaseCapacity(int value)
void SetSpotMaxPrice(const char *value)
void SetOnDemandAllocationStrategy(Aws::String &&value)
void SetSpotMaxPrice(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OnDemandBaseCapacityHasBeenSet() const
int GetOnDemandPercentageAboveBaseCapacity() const
InstancesDistribution & WithSpotAllocationStrategy(const Aws::String &value)
AWS_AUTOSCALING_API InstancesDistribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstancesDistribution & WithSpotMaxPrice(const char *value)
void SetSpotMaxPrice(Aws::String &&value)
bool SpotAllocationStrategyHasBeenSet() const
int GetSpotInstancePools() const
bool OnDemandPercentageAboveBaseCapacityHasBeenSet() const
InstancesDistribution & WithSpotAllocationStrategy(const char *value)
void SetOnDemandAllocationStrategy(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream