AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
60 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
61 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
62 inline HealthCheck& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
63 inline HealthCheck& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
64 inline HealthCheck& WithTarget(const char* value) { SetTarget(value); return *this;}
66
68
72 inline int GetInterval() const{ return m_interval; }
73 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
74 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
75 inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
77
79
84 inline int GetTimeout() const{ return m_timeout; }
85 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
86 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
87 inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
89
91
95 inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
96 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
97 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
98 inline HealthCheck& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;}
100
102
106 inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
107 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
108 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
109 inline HealthCheck& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
111 private:
112
113 Aws::String m_target;
114 bool m_targetHasBeenSet = false;
115
116 int m_interval;
117 bool m_intervalHasBeenSet = false;
118
119 int m_timeout;
120 bool m_timeoutHasBeenSet = false;
121
122 int m_unhealthyThreshold;
123 bool m_unhealthyThresholdHasBeenSet = false;
124
125 int m_healthyThreshold;
126 bool m_healthyThresholdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ElasticLoadBalancing
131} // namespace Aws
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HealthCheck & WithTarget(const char *value)
Definition HealthCheck.h:64
HealthCheck & WithTarget(const Aws::String &value)
Definition HealthCheck.h:62
HealthCheck & WithUnhealthyThreshold(int value)
Definition HealthCheck.h:98
HealthCheck & WithTarget(Aws::String &&value)
Definition HealthCheck.h:63
AWS_ELASTICLOADBALANCING_API HealthCheck()
const Aws::String & GetTarget() const
Definition HealthCheck.h:57
void SetTarget(const Aws::String &value)
Definition HealthCheck.h:59
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