AWS SDK for C++  1.9.104
AWS SDK for C++
WarmPoolConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace AutoScaling
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline int GetMaxGroupPreparedCapacity() const{ return m_maxGroupPreparedCapacity; }
48 
53  inline bool MaxGroupPreparedCapacityHasBeenSet() const { return m_maxGroupPreparedCapacityHasBeenSet; }
54 
59  inline void SetMaxGroupPreparedCapacity(int value) { m_maxGroupPreparedCapacityHasBeenSet = true; m_maxGroupPreparedCapacity = value; }
60 
65  inline WarmPoolConfiguration& WithMaxGroupPreparedCapacity(int value) { SetMaxGroupPreparedCapacity(value); return *this;}
66 
67 
71  inline int GetMinSize() const{ return m_minSize; }
72 
76  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
77 
81  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
82 
86  inline WarmPoolConfiguration& WithMinSize(int value) { SetMinSize(value); return *this;}
87 
88 
93  inline const WarmPoolState& GetPoolState() const{ return m_poolState; }
94 
99  inline bool PoolStateHasBeenSet() const { return m_poolStateHasBeenSet; }
100 
105  inline void SetPoolState(const WarmPoolState& value) { m_poolStateHasBeenSet = true; m_poolState = value; }
106 
111  inline void SetPoolState(WarmPoolState&& value) { m_poolStateHasBeenSet = true; m_poolState = std::move(value); }
112 
117  inline WarmPoolConfiguration& WithPoolState(const WarmPoolState& value) { SetPoolState(value); return *this;}
118 
123  inline WarmPoolConfiguration& WithPoolState(WarmPoolState&& value) { SetPoolState(std::move(value)); return *this;}
124 
125 
129  inline const WarmPoolStatus& GetStatus() const{ return m_status; }
130 
134  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 
139  inline void SetStatus(const WarmPoolStatus& value) { m_statusHasBeenSet = true; m_status = value; }
140 
144  inline void SetStatus(WarmPoolStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
145 
149  inline WarmPoolConfiguration& WithStatus(const WarmPoolStatus& value) { SetStatus(value); return *this;}
150 
154  inline WarmPoolConfiguration& WithStatus(WarmPoolStatus&& value) { SetStatus(std::move(value)); return *this;}
155 
156  private:
157 
158  int m_maxGroupPreparedCapacity;
159  bool m_maxGroupPreparedCapacityHasBeenSet;
160 
161  int m_minSize;
162  bool m_minSizeHasBeenSet;
163 
164  WarmPoolState m_poolState;
165  bool m_poolStateHasBeenSet;
166 
167  WarmPoolStatus m_status;
168  bool m_statusHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace AutoScaling
173 } // namespace Aws
Aws::AutoScaling::Model::WarmPoolConfiguration::SetStatus
void SetStatus(const WarmPoolStatus &value)
Definition: WarmPoolConfiguration.h:139
Aws::AutoScaling::Model::WarmPoolConfiguration::SetMinSize
void SetMinSize(int value)
Definition: WarmPoolConfiguration.h:81
Aws::AutoScaling::Model::WarmPoolConfiguration::SetStatus
void SetStatus(WarmPoolStatus &&value)
Definition: WarmPoolConfiguration.h:144
Aws::AutoScaling::Model::WarmPoolConfiguration::MaxGroupPreparedCapacityHasBeenSet
bool MaxGroupPreparedCapacityHasBeenSet() const
Definition: WarmPoolConfiguration.h:53
Aws::AutoScaling::Model::WarmPoolConfiguration::operator=
WarmPoolConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::WarmPoolConfiguration::GetStatus
const WarmPoolStatus & GetStatus() const
Definition: WarmPoolConfiguration.h:129
Aws::AutoScaling::Model::WarmPoolConfiguration::GetPoolState
const WarmPoolState & GetPoolState() const
Definition: WarmPoolConfiguration.h:93
Aws::AutoScaling::Model::WarmPoolConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::WarmPoolConfiguration::WithMaxGroupPreparedCapacity
WarmPoolConfiguration & WithMaxGroupPreparedCapacity(int value)
Definition: WarmPoolConfiguration.h:65
Aws::AutoScaling::Model::WarmPoolConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::WarmPoolConfiguration::WithStatus
WarmPoolConfiguration & WithStatus(WarmPoolStatus &&value)
Definition: WarmPoolConfiguration.h:154
WarmPoolStatus.h
Aws::AutoScaling::Model::WarmPoolConfiguration::PoolStateHasBeenSet
bool PoolStateHasBeenSet() const
Definition: WarmPoolConfiguration.h:99
AWSStreamFwd.h
Aws::AutoScaling::Model::WarmPoolConfiguration::WarmPoolConfiguration
WarmPoolConfiguration()
WarmPoolState.h
Aws::AutoScaling::Model::WarmPoolConfiguration::SetPoolState
void SetPoolState(WarmPoolState &&value)
Definition: WarmPoolConfiguration.h:111
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::WarmPoolStatus
WarmPoolStatus
Definition: WarmPoolStatus.h:17
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::WarmPoolConfiguration::WarmPoolConfiguration
WarmPoolConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::WarmPoolConfiguration::WithPoolState
WarmPoolConfiguration & WithPoolState(const WarmPoolState &value)
Definition: WarmPoolConfiguration.h:117
Aws::AutoScaling::Model::WarmPoolConfiguration::WithStatus
WarmPoolConfiguration & WithStatus(const WarmPoolStatus &value)
Definition: WarmPoolConfiguration.h:149
Aws::AutoScaling::Model::WarmPoolConfiguration::WithPoolState
WarmPoolConfiguration & WithPoolState(WarmPoolState &&value)
Definition: WarmPoolConfiguration.h:123
Aws::AutoScaling::Model::WarmPoolConfiguration::WithMinSize
WarmPoolConfiguration & WithMinSize(int value)
Definition: WarmPoolConfiguration.h:86
Aws::AutoScaling::Model::WarmPoolConfiguration::SetPoolState
void SetPoolState(const WarmPoolState &value)
Definition: WarmPoolConfiguration.h:105
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::WarmPoolState
WarmPoolState
Definition: WarmPoolState.h:17
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::WarmPoolConfiguration::SetMaxGroupPreparedCapacity
void SetMaxGroupPreparedCapacity(int value)
Definition: WarmPoolConfiguration.h:59
Aws::AutoScaling::Model::WarmPoolConfiguration::GetMinSize
int GetMinSize() const
Definition: WarmPoolConfiguration.h:71
Aws::AutoScaling::Model::WarmPoolConfiguration
Definition: WarmPoolConfiguration.h:33
Aws::AutoScaling::Model::WarmPoolConfiguration::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: WarmPoolConfiguration.h:134
Aws::AutoScaling::Model::WarmPoolConfiguration::MinSizeHasBeenSet
bool MinSizeHasBeenSet() const
Definition: WarmPoolConfiguration.h:76
Aws::AutoScaling::Model::WarmPoolConfiguration::GetMaxGroupPreparedCapacity
int GetMaxGroupPreparedCapacity() const
Definition: WarmPoolConfiguration.h:47