AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancing
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ELASTICLOADBALANCING_API HealthCheck() = default;
35 AWS_ELASTICLOADBALANCING_API HealthCheck(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICLOADBALANCING_API HealthCheck& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
57 inline const Aws::String& GetTarget() const { return m_target; }
58 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
59 template<typename TargetT = Aws::String>
60 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
61 template<typename TargetT = Aws::String>
62 HealthCheck& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
64
66
70 inline int GetInterval() const { return m_interval; }
71 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
72 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
73 inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
75
77
82 inline int GetTimeout() const { return m_timeout; }
83 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
84 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
85 inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
87
89
93 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
94 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
95 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
96 inline HealthCheck& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;}
98
100
104 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
105 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
106 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
107 inline HealthCheck& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
109 private:
110
111 Aws::String m_target;
112 bool m_targetHasBeenSet = false;
113
114 int m_interval{0};
115 bool m_intervalHasBeenSet = false;
116
117 int m_timeout{0};
118 bool m_timeoutHasBeenSet = false;
119
120 int m_unhealthyThreshold{0};
121 bool m_unhealthyThresholdHasBeenSet = false;
122
123 int m_healthyThreshold{0};
124 bool m_healthyThresholdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ElasticLoadBalancing
129} // 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)
Definition HealthCheck.h:96
const Aws::String & GetTarget() const
Definition HealthCheck.h:57
HealthCheck & WithTarget(TargetT &&value)
Definition HealthCheck.h:62
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