AWS SDK for C++  1.9.106
AWS SDK for C++
InstancesDistribution.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace AutoScaling
22 {
23 namespace Model
24 {
25 
44  {
45  public:
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
53 
64  inline const Aws::String& GetOnDemandAllocationStrategy() const{ return m_onDemandAllocationStrategy; }
65 
76  inline bool OnDemandAllocationStrategyHasBeenSet() const { return m_onDemandAllocationStrategyHasBeenSet; }
77 
88  inline void SetOnDemandAllocationStrategy(const Aws::String& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = value; }
89 
100  inline void SetOnDemandAllocationStrategy(Aws::String&& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = std::move(value); }
101 
112  inline void SetOnDemandAllocationStrategy(const char* value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy.assign(value); }
113 
124  inline InstancesDistribution& WithOnDemandAllocationStrategy(const Aws::String& value) { SetOnDemandAllocationStrategy(value); return *this;}
125 
136  inline InstancesDistribution& WithOnDemandAllocationStrategy(Aws::String&& value) { SetOnDemandAllocationStrategy(std::move(value)); return *this;}
137 
148  inline InstancesDistribution& WithOnDemandAllocationStrategy(const char* value) { SetOnDemandAllocationStrategy(value); return *this;}
149 
150 
159  inline int GetOnDemandBaseCapacity() const{ return m_onDemandBaseCapacity; }
160 
169  inline bool OnDemandBaseCapacityHasBeenSet() const { return m_onDemandBaseCapacityHasBeenSet; }
170 
179  inline void SetOnDemandBaseCapacity(int value) { m_onDemandBaseCapacityHasBeenSet = true; m_onDemandBaseCapacity = value; }
180 
189  inline InstancesDistribution& WithOnDemandBaseCapacity(int value) { SetOnDemandBaseCapacity(value); return *this;}
190 
191 
199  inline int GetOnDemandPercentageAboveBaseCapacity() const{ return m_onDemandPercentageAboveBaseCapacity; }
200 
208  inline bool OnDemandPercentageAboveBaseCapacityHasBeenSet() const { return m_onDemandPercentageAboveBaseCapacityHasBeenSet; }
209 
217  inline void SetOnDemandPercentageAboveBaseCapacity(int value) { m_onDemandPercentageAboveBaseCapacityHasBeenSet = true; m_onDemandPercentageAboveBaseCapacity = value; }
218 
226  inline InstancesDistribution& WithOnDemandPercentageAboveBaseCapacity(int value) { SetOnDemandPercentageAboveBaseCapacity(value); return *this;}
227 
228 
243  inline const Aws::String& GetSpotAllocationStrategy() const{ return m_spotAllocationStrategy; }
244 
259  inline bool SpotAllocationStrategyHasBeenSet() const { return m_spotAllocationStrategyHasBeenSet; }
260 
275  inline void SetSpotAllocationStrategy(const Aws::String& value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy = value; }
276 
291  inline void SetSpotAllocationStrategy(Aws::String&& value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy = std::move(value); }
292 
307  inline void SetSpotAllocationStrategy(const char* value) { m_spotAllocationStrategyHasBeenSet = true; m_spotAllocationStrategy.assign(value); }
308 
323  inline InstancesDistribution& WithSpotAllocationStrategy(const Aws::String& value) { SetSpotAllocationStrategy(value); return *this;}
324 
339  inline InstancesDistribution& WithSpotAllocationStrategy(Aws::String&& value) { SetSpotAllocationStrategy(std::move(value)); return *this;}
340 
355  inline InstancesDistribution& WithSpotAllocationStrategy(const char* value) { SetSpotAllocationStrategy(value); return *this;}
356 
357 
365  inline int GetSpotInstancePools() const{ return m_spotInstancePools; }
366 
374  inline bool SpotInstancePoolsHasBeenSet() const { return m_spotInstancePoolsHasBeenSet; }
375 
383  inline void SetSpotInstancePools(int value) { m_spotInstancePoolsHasBeenSet = true; m_spotInstancePools = value; }
384 
392  inline InstancesDistribution& WithSpotInstancePools(int value) { SetSpotInstancePools(value); return *this;}
393 
394 
402  inline const Aws::String& GetSpotMaxPrice() const{ return m_spotMaxPrice; }
403 
411  inline bool SpotMaxPriceHasBeenSet() const { return m_spotMaxPriceHasBeenSet; }
412 
420  inline void SetSpotMaxPrice(const Aws::String& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = value; }
421 
429  inline void SetSpotMaxPrice(Aws::String&& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = std::move(value); }
430 
438  inline void SetSpotMaxPrice(const char* value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice.assign(value); }
439 
447  inline InstancesDistribution& WithSpotMaxPrice(const Aws::String& value) { SetSpotMaxPrice(value); return *this;}
448 
456  inline InstancesDistribution& WithSpotMaxPrice(Aws::String&& value) { SetSpotMaxPrice(std::move(value)); return *this;}
457 
465  inline InstancesDistribution& WithSpotMaxPrice(const char* value) { SetSpotMaxPrice(value); return *this;}
466 
467  private:
468 
469  Aws::String m_onDemandAllocationStrategy;
470  bool m_onDemandAllocationStrategyHasBeenSet;
471 
472  int m_onDemandBaseCapacity;
473  bool m_onDemandBaseCapacityHasBeenSet;
474 
475  int m_onDemandPercentageAboveBaseCapacity;
476  bool m_onDemandPercentageAboveBaseCapacityHasBeenSet;
477 
478  Aws::String m_spotAllocationStrategy;
479  bool m_spotAllocationStrategyHasBeenSet;
480 
481  int m_spotInstancePools;
482  bool m_spotInstancePoolsHasBeenSet;
483 
484  Aws::String m_spotMaxPrice;
485  bool m_spotMaxPriceHasBeenSet;
486  };
487 
488 } // namespace Model
489 } // namespace AutoScaling
490 } // namespace Aws
Aws::AutoScaling::Model::InstancesDistribution::operator=
InstancesDistribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy
void SetSpotAllocationStrategy(Aws::String &&value)
Definition: InstancesDistribution.h:291
Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandBaseCapacity
InstancesDistribution & WithOnDemandBaseCapacity(int value)
Definition: InstancesDistribution.h:189
Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice
InstancesDistribution & WithSpotMaxPrice(const Aws::String &value)
Definition: InstancesDistribution.h:447
Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy
InstancesDistribution & WithSpotAllocationStrategy(const Aws::String &value)
Definition: InstancesDistribution.h:323
Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice
void SetSpotMaxPrice(Aws::String &&value)
Definition: InstancesDistribution.h:429
Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy
InstancesDistribution & WithSpotAllocationStrategy(const char *value)
Definition: InstancesDistribution.h:355
Aws::AutoScaling::Model::InstancesDistribution::SpotAllocationStrategyHasBeenSet
bool SpotAllocationStrategyHasBeenSet() const
Definition: InstancesDistribution.h:259
Aws::AutoScaling::Model::InstancesDistribution
Definition: InstancesDistribution.h:44
Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy
InstancesDistribution & WithOnDemandAllocationStrategy(Aws::String &&value)
Definition: InstancesDistribution.h:136
Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandBaseCapacity
void SetOnDemandBaseCapacity(int value)
Definition: InstancesDistribution.h:179
Aws::AutoScaling::Model::InstancesDistribution::SpotMaxPriceHasBeenSet
bool SpotMaxPriceHasBeenSet() const
Definition: InstancesDistribution.h:411
Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice
InstancesDistribution & WithSpotMaxPrice(const char *value)
Definition: InstancesDistribution.h:465
Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy
void SetSpotAllocationStrategy(const Aws::String &value)
Definition: InstancesDistribution.h:275
Aws::AutoScaling::Model::InstancesDistribution::OnDemandAllocationStrategyHasBeenSet
bool OnDemandAllocationStrategyHasBeenSet() const
Definition: InstancesDistribution.h:76
Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice
void SetSpotMaxPrice(const char *value)
Definition: InstancesDistribution.h:438
AWSStreamFwd.h
Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy
void SetOnDemandAllocationStrategy(const Aws::String &value)
Definition: InstancesDistribution.h:88
Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandPercentageAboveBaseCapacity
InstancesDistribution & WithOnDemandPercentageAboveBaseCapacity(int value)
Definition: InstancesDistribution.h:226
Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice
InstancesDistribution & WithSpotMaxPrice(Aws::String &&value)
Definition: InstancesDistribution.h:456
Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandAllocationStrategy
const Aws::String & GetOnDemandAllocationStrategy() const
Definition: InstancesDistribution.h:64
Aws::AutoScaling::Model::InstancesDistribution::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::InstancesDistribution::GetSpotMaxPrice
const Aws::String & GetSpotMaxPrice() const
Definition: InstancesDistribution.h:402
Aws::AutoScaling::Model::InstancesDistribution::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandPercentageAboveBaseCapacity
void SetOnDemandPercentageAboveBaseCapacity(int value)
Definition: InstancesDistribution.h:217
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::InstancesDistribution::OnDemandBaseCapacityHasBeenSet
bool OnDemandBaseCapacityHasBeenSet() const
Definition: InstancesDistribution.h:169
Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy
InstancesDistribution & WithOnDemandAllocationStrategy(const char *value)
Definition: InstancesDistribution.h:148
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::InstancesDistribution::SpotInstancePoolsHasBeenSet
bool SpotInstancePoolsHasBeenSet() const
Definition: InstancesDistribution.h:374
Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandBaseCapacity
int GetOnDemandBaseCapacity() const
Definition: InstancesDistribution.h:159
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy
void SetOnDemandAllocationStrategy(const char *value)
Definition: InstancesDistribution.h:112
Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy
InstancesDistribution & WithOnDemandAllocationStrategy(const Aws::String &value)
Definition: InstancesDistribution.h:124
Aws::AutoScaling::Model::InstancesDistribution::InstancesDistribution
InstancesDistribution()
AWSString.h
Aws::AutoScaling::Model::InstancesDistribution::OnDemandPercentageAboveBaseCapacityHasBeenSet
bool OnDemandPercentageAboveBaseCapacityHasBeenSet() const
Definition: InstancesDistribution.h:208
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy
InstancesDistribution & WithSpotAllocationStrategy(Aws::String &&value)
Definition: InstancesDistribution.h:339
Aws::AutoScaling::Model::InstancesDistribution::SetSpotInstancePools
void SetSpotInstancePools(int value)
Definition: InstancesDistribution.h:383
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::InstancesDistribution::GetSpotInstancePools
int GetSpotInstancePools() const
Definition: InstancesDistribution.h:365
Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy
void SetOnDemandAllocationStrategy(Aws::String &&value)
Definition: InstancesDistribution.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy
void SetSpotAllocationStrategy(const char *value)
Definition: InstancesDistribution.h:307
Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice
void SetSpotMaxPrice(const Aws::String &value)
Definition: InstancesDistribution.h:420
Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandPercentageAboveBaseCapacity
int GetOnDemandPercentageAboveBaseCapacity() const
Definition: InstancesDistribution.h:199
Aws::AutoScaling::Model::InstancesDistribution::WithSpotInstancePools
InstancesDistribution & WithSpotInstancePools(int value)
Definition: InstancesDistribution.h:392
Aws::AutoScaling::Model::InstancesDistribution::GetSpotAllocationStrategy
const Aws::String & GetSpotAllocationStrategy() const
Definition: InstancesDistribution.h:243
Aws::AutoScaling::Model::InstancesDistribution::InstancesDistribution
InstancesDistribution(const Aws::Utils::Xml::XmlNode &xmlNode)