AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMaintenancePolicy.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_AUTOSCALING_API InstanceMaintenancePolicy();
36 AWS_AUTOSCALING_API InstanceMaintenancePolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_AUTOSCALING_API InstanceMaintenancePolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
51 inline int GetMinHealthyPercentage() const{ return m_minHealthyPercentage; }
52 inline bool MinHealthyPercentageHasBeenSet() const { return m_minHealthyPercentageHasBeenSet; }
53 inline void SetMinHealthyPercentage(int value) { m_minHealthyPercentageHasBeenSet = true; m_minHealthyPercentage = value; }
56
58
68 inline int GetMaxHealthyPercentage() const{ return m_maxHealthyPercentage; }
69 inline bool MaxHealthyPercentageHasBeenSet() const { return m_maxHealthyPercentageHasBeenSet; }
70 inline void SetMaxHealthyPercentage(int value) { m_maxHealthyPercentageHasBeenSet = true; m_maxHealthyPercentage = value; }
73 private:
74
75 int m_minHealthyPercentage;
76 bool m_minHealthyPercentageHasBeenSet = false;
77
78 int m_maxHealthyPercentage;
79 bool m_maxHealthyPercentageHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AutoScaling
84} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceMaintenancePolicy & WithMinHealthyPercentage(int value)
InstanceMaintenancePolicy & WithMaxHealthyPercentage(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API InstanceMaintenancePolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API InstanceMaintenancePolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream