AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstancesDistribution.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_AUTOSCALING_API InstancesDistribution();
37 AWS_AUTOSCALING_API InstancesDistribution(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_AUTOSCALING_API InstancesDistribution& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
64 inline const Aws::String& GetOnDemandAllocationStrategy() const{ return m_onDemandAllocationStrategy; }
65 inline bool OnDemandAllocationStrategyHasBeenSet() const { return m_onDemandAllocationStrategyHasBeenSet; }
66 inline void SetOnDemandAllocationStrategy(const Aws::String& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = value; }
67 inline void SetOnDemandAllocationStrategy(Aws::String&& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = std::move(value); }
68 inline void SetOnDemandAllocationStrategy(const char* value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy.assign(value); }
73
75
85 inline int GetOnDemandBaseCapacity() const{ return m_onDemandBaseCapacity; }
86 inline bool OnDemandBaseCapacityHasBeenSet() const { return m_onDemandBaseCapacityHasBeenSet; }
87 inline void SetOnDemandBaseCapacity(int value) { m_onDemandBaseCapacityHasBeenSet = true; m_onDemandBaseCapacity = value; }
90
92
98 inline int GetOnDemandPercentageAboveBaseCapacity() const{ return m_onDemandPercentageAboveBaseCapacity; }
99 inline bool OnDemandPercentageAboveBaseCapacityHasBeenSet() const { return m_onDemandPercentageAboveBaseCapacityHasBeenSet; }
100 inline void SetOnDemandPercentageAboveBaseCapacity(int value) { m_onDemandPercentageAboveBaseCapacityHasBeenSet = true; m_onDemandPercentageAboveBaseCapacity = value; }
103
105
132 inline const Aws::String& GetSpotAllocationStrategy() const{ return m_spotAllocationStrategy; }
133 inline bool SpotAllocationStrategyHasBeenSet() const { return m_spotAllocationStrategyHasBeenSet; }
134 inline void SetSpotAllocationStrategy(const Aws::String& value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy = value; }
135 inline void SetSpotAllocationStrategy(Aws::String&& value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy = std::move(value); }
136 inline void SetSpotAllocationStrategy(const char* value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy.assign(value); }
139 inline InstancesDistribution& WithSpotAllocationStrategy(const char* value) { SetSpotAllocationStrategy(value); return *this;}
141
143
150 inline int GetSpotInstancePools() const{ return m_spotInstancePools; }
151 inline bool SpotInstancePoolsHasBeenSet() const { return m_spotInstancePoolsHasBeenSet; }
152 inline void SetSpotInstancePools(int value) { m_spotInstancePoolsHasBeenSet = true; m_spotInstancePools = value; }
153 inline InstancesDistribution& WithSpotInstancePools(int value) { SetSpotInstancePools(value); return *this;}
155
157
168 inline const Aws::String& GetSpotMaxPrice() const{ return m_spotMaxPrice; }
169 inline bool SpotMaxPriceHasBeenSet() const { return m_spotMaxPriceHasBeenSet; }
170 inline void SetSpotMaxPrice(const Aws::String& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = value; }
171 inline void SetSpotMaxPrice(Aws::String&& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = std::move(value); }
172 inline void SetSpotMaxPrice(const char* value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice.assign(value); }
173 inline InstancesDistribution& WithSpotMaxPrice(const Aws::String& value) { SetSpotMaxPrice(value); return *this;}
174 inline InstancesDistribution& WithSpotMaxPrice(Aws::String&& value) { SetSpotMaxPrice(std::move(value)); return *this;}
175 inline InstancesDistribution& WithSpotMaxPrice(const char* value) { SetSpotMaxPrice(value); return *this;}
177 private:
178
179 Aws::String m_onDemandAllocationStrategy;
180 bool m_onDemandAllocationStrategyHasBeenSet = false;
181
182 int m_onDemandBaseCapacity;
183 bool m_onDemandBaseCapacityHasBeenSet = false;
184
185 int m_onDemandPercentageAboveBaseCapacity;
186 bool m_onDemandPercentageAboveBaseCapacityHasBeenSet = false;
187
188 Aws::String m_spotAllocationStrategy;
189 bool m_spotAllocationStrategyHasBeenSet = false;
190
191 int m_spotInstancePools;
192 bool m_spotInstancePoolsHasBeenSet = false;
193
194 Aws::String m_spotMaxPrice;
195 bool m_spotMaxPriceHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace AutoScaling
200} // namespace Aws
InstancesDistribution & WithSpotAllocationStrategy(Aws::String &&value)
AWS_AUTOSCALING_API InstancesDistribution(const Aws::Utils::Xml::XmlNode &xmlNode)
InstancesDistribution & WithOnDemandBaseCapacity(int value)
InstancesDistribution & WithSpotInstancePools(int value)
InstancesDistribution & WithOnDemandAllocationStrategy(const 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 SetSpotAllocationStrategy(const Aws::String &value)
InstancesDistribution & WithSpotMaxPrice(const Aws::String &value)
InstancesDistribution & WithOnDemandAllocationStrategy(const char *value)
InstancesDistribution & WithOnDemandPercentageAboveBaseCapacity(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstancesDistribution & WithSpotAllocationStrategy(const Aws::String &value)
AWS_AUTOSCALING_API InstancesDistribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstancesDistribution & WithSpotMaxPrice(const char *value)
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