AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancing {
20namespace Model {
21
28 public:
29 AWS_ELASTICLOADBALANCING_API HealthCheck() = default;
30 AWS_ELASTICLOADBALANCING_API HealthCheck(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCING_API HealthCheck& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
52 inline const Aws::String& GetTarget() const { return m_target; }
53 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
54 template <typename TargetT = Aws::String>
55 void SetTarget(TargetT&& value) {
56 m_targetHasBeenSet = true;
57 m_target = std::forward<TargetT>(value);
58 }
59 template <typename TargetT = Aws::String>
60 HealthCheck& WithTarget(TargetT&& value) {
61 SetTarget(std::forward<TargetT>(value));
62 return *this;
63 }
65
67
71 inline int GetInterval() const { return m_interval; }
72 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
73 inline void SetInterval(int value) {
74 m_intervalHasBeenSet = true;
75 m_interval = value;
76 }
77 inline HealthCheck& WithInterval(int value) {
78 SetInterval(value);
79 return *this;
80 }
82
84
89 inline int GetTimeout() const { return m_timeout; }
90 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
91 inline void SetTimeout(int value) {
92 m_timeoutHasBeenSet = true;
93 m_timeout = value;
94 }
95 inline HealthCheck& WithTimeout(int value) {
96 SetTimeout(value);
97 return *this;
98 }
100
102
106 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
107 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
108 inline void SetUnhealthyThreshold(int value) {
109 m_unhealthyThresholdHasBeenSet = true;
110 m_unhealthyThreshold = value;
111 }
114 return *this;
115 }
117
119
123 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
124 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
125 inline void SetHealthyThreshold(int value) {
126 m_healthyThresholdHasBeenSet = true;
127 m_healthyThreshold = value;
128 }
130 SetHealthyThreshold(value);
131 return *this;
132 }
134 private:
135 Aws::String m_target;
136
137 int m_interval{0};
138
139 int m_timeout{0};
140
141 int m_unhealthyThreshold{0};
142
143 int m_healthyThreshold{0};
144 bool m_targetHasBeenSet = false;
145 bool m_intervalHasBeenSet = false;
146 bool m_timeoutHasBeenSet = false;
147 bool m_unhealthyThresholdHasBeenSet = false;
148 bool m_healthyThresholdHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace ElasticLoadBalancing
153} // namespace Aws
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API HealthCheck()=default
HealthCheck & WithUnhealthyThreshold(int value)
const Aws::String & GetTarget() const
Definition HealthCheck.h:52
HealthCheck & WithTarget(TargetT &&value)
Definition HealthCheck.h:60
HealthCheck & WithHealthyThreshold(int value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API HealthCheck & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API HealthCheck(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream