AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WarmPoolConfiguration.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/WarmPoolState.h>
10#include <aws/autoscaling/model/WarmPoolStatus.h>
11#include <aws/autoscaling/model/InstanceReusePolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AUTOSCALING_API WarmPoolConfiguration();
37 AWS_AUTOSCALING_API WarmPoolConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_AUTOSCALING_API WarmPoolConfiguration& 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
49 inline int GetMaxGroupPreparedCapacity() const{ return m_maxGroupPreparedCapacity; }
50 inline bool MaxGroupPreparedCapacityHasBeenSet() const { return m_maxGroupPreparedCapacityHasBeenSet; }
51 inline void SetMaxGroupPreparedCapacity(int value) { m_maxGroupPreparedCapacityHasBeenSet = true; m_maxGroupPreparedCapacity = value; }
54
56
59 inline int GetMinSize() const{ return m_minSize; }
60 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
61 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
62 inline WarmPoolConfiguration& WithMinSize(int value) { SetMinSize(value); return *this;}
64
66
70 inline const WarmPoolState& GetPoolState() const{ return m_poolState; }
71 inline bool PoolStateHasBeenSet() const { return m_poolStateHasBeenSet; }
72 inline void SetPoolState(const WarmPoolState& value) { m_poolStateHasBeenSet = true; m_poolState = value; }
73 inline void SetPoolState(WarmPoolState&& value) { m_poolStateHasBeenSet = true; m_poolState = std::move(value); }
74 inline WarmPoolConfiguration& WithPoolState(const WarmPoolState& value) { SetPoolState(value); return *this;}
75 inline WarmPoolConfiguration& WithPoolState(WarmPoolState&& value) { SetPoolState(std::move(value)); return *this;}
77
79
82 inline const WarmPoolStatus& GetStatus() const{ return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(const WarmPoolStatus& value) { m_statusHasBeenSet = true; m_status = value; }
85 inline void SetStatus(WarmPoolStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
86 inline WarmPoolConfiguration& WithStatus(const WarmPoolStatus& value) { SetStatus(value); return *this;}
87 inline WarmPoolConfiguration& WithStatus(WarmPoolStatus&& value) { SetStatus(std::move(value)); return *this;}
89
91
94 inline const InstanceReusePolicy& GetInstanceReusePolicy() const{ return m_instanceReusePolicy; }
95 inline bool InstanceReusePolicyHasBeenSet() const { return m_instanceReusePolicyHasBeenSet; }
96 inline void SetInstanceReusePolicy(const InstanceReusePolicy& value) { m_instanceReusePolicyHasBeenSet = true; m_instanceReusePolicy = value; }
97 inline void SetInstanceReusePolicy(InstanceReusePolicy&& value) { m_instanceReusePolicyHasBeenSet = true; m_instanceReusePolicy = std::move(value); }
101 private:
102
103 int m_maxGroupPreparedCapacity;
104 bool m_maxGroupPreparedCapacityHasBeenSet = false;
105
106 int m_minSize;
107 bool m_minSizeHasBeenSet = false;
108
109 WarmPoolState m_poolState;
110 bool m_poolStateHasBeenSet = false;
111
112 WarmPoolStatus m_status;
113 bool m_statusHasBeenSet = false;
114
115 InstanceReusePolicy m_instanceReusePolicy;
116 bool m_instanceReusePolicyHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace AutoScaling
121} // namespace Aws
WarmPoolConfiguration & WithPoolState(WarmPoolState &&value)
WarmPoolConfiguration & WithInstanceReusePolicy(InstanceReusePolicy &&value)
void SetInstanceReusePolicy(InstanceReusePolicy &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
WarmPoolConfiguration & WithMinSize(int value)
const InstanceReusePolicy & GetInstanceReusePolicy() const
WarmPoolConfiguration & WithPoolState(const WarmPoolState &value)
WarmPoolConfiguration & WithMaxGroupPreparedCapacity(int value)
AWS_AUTOSCALING_API WarmPoolConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API WarmPoolConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
WarmPoolConfiguration & WithInstanceReusePolicy(const InstanceReusePolicy &value)
void SetInstanceReusePolicy(const InstanceReusePolicy &value)
WarmPoolConfiguration & WithStatus(const WarmPoolStatus &value)
WarmPoolConfiguration & WithStatus(WarmPoolStatus &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream