AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/Matcher.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/TargetGroupProtocol.h>
11#include <aws/vpc-lattice/model/HealthCheckProtocolVersion.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace VPCLattice
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_VPCLATTICE_API HealthCheckConfig();
40 AWS_VPCLATTICE_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline bool GetEnabled() const{ return m_enabled; }
50 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
52 inline HealthCheckConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
54
56
60 inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
61 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
62 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
65
67
71 inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
72 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
73 inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
76
78
83 inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
84 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
85 inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
86 inline HealthCheckConfig& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
88
90
93 inline const Matcher& GetMatcher() const{ return m_matcher; }
94 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
95 inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
96 inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
97 inline HealthCheckConfig& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
98 inline HealthCheckConfig& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
100
102
109 inline const Aws::String& GetPath() const{ return m_path; }
110 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
111 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
112 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
113 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
114 inline HealthCheckConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;}
115 inline HealthCheckConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
116 inline HealthCheckConfig& WithPath(const char* value) { SetPath(value); return *this;}
118
120
124 inline int GetPort() const{ return m_port; }
125 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
126 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
127 inline HealthCheckConfig& WithPort(int value) { SetPort(value); return *this;}
129
131
136 inline const TargetGroupProtocol& GetProtocol() const{ return m_protocol; }
137 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
138 inline void SetProtocol(const TargetGroupProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
139 inline void SetProtocol(TargetGroupProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
140 inline HealthCheckConfig& WithProtocol(const TargetGroupProtocol& value) { SetProtocol(value); return *this;}
141 inline HealthCheckConfig& WithProtocol(TargetGroupProtocol&& value) { SetProtocol(std::move(value)); return *this;}
143
145
149 inline const HealthCheckProtocolVersion& GetProtocolVersion() const{ return m_protocolVersion; }
150 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
151 inline void SetProtocolVersion(const HealthCheckProtocolVersion& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
152 inline void SetProtocolVersion(HealthCheckProtocolVersion&& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = std::move(value); }
154 inline HealthCheckConfig& WithProtocolVersion(HealthCheckProtocolVersion&& value) { SetProtocolVersion(std::move(value)); return *this;}
156
158
162 inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
163 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
164 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
167 private:
168
169 bool m_enabled;
170 bool m_enabledHasBeenSet = false;
171
172 int m_healthCheckIntervalSeconds;
173 bool m_healthCheckIntervalSecondsHasBeenSet = false;
174
175 int m_healthCheckTimeoutSeconds;
176 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
177
178 int m_healthyThresholdCount;
179 bool m_healthyThresholdCountHasBeenSet = false;
180
181 Matcher m_matcher;
182 bool m_matcherHasBeenSet = false;
183
184 Aws::String m_path;
185 bool m_pathHasBeenSet = false;
186
187 int m_port;
188 bool m_portHasBeenSet = false;
189
190 TargetGroupProtocol m_protocol;
191 bool m_protocolHasBeenSet = false;
192
193 HealthCheckProtocolVersion m_protocolVersion;
194 bool m_protocolVersionHasBeenSet = false;
195
196 int m_unhealthyThresholdCount;
197 bool m_unhealthyThresholdCountHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace VPCLattice
202} // namespace Aws
AWS_VPCLATTICE_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithPath(const char *value)
HealthCheckConfig & WithUnhealthyThresholdCount(int value)
AWS_VPCLATTICE_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const TargetGroupProtocol & GetProtocol() const
const HealthCheckProtocolVersion & GetProtocolVersion() const
HealthCheckConfig & WithMatcher(const Matcher &value)
HealthCheckConfig & WithHealthyThresholdCount(int value)
HealthCheckConfig & WithHealthCheckTimeoutSeconds(int value)
HealthCheckConfig & WithPort(int value)
void SetPath(const Aws::String &value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
HealthCheckConfig & WithProtocolVersion(const HealthCheckProtocolVersion &value)
void SetProtocolVersion(HealthCheckProtocolVersion &&value)
HealthCheckConfig & WithProtocol(const TargetGroupProtocol &value)
HealthCheckConfig & WithProtocol(TargetGroupProtocol &&value)
void SetProtocol(const TargetGroupProtocol &value)
HealthCheckConfig & WithPath(const Aws::String &value)
HealthCheckConfig & WithMatcher(Matcher &&value)
void SetProtocol(TargetGroupProtocol &&value)
HealthCheckConfig & WithEnabled(bool value)
HealthCheckConfig & WithProtocolVersion(HealthCheckProtocolVersion &&value)
HealthCheckConfig & WithHealthCheckIntervalSeconds(int value)
void SetProtocolVersion(const HealthCheckProtocolVersion &value)
HealthCheckConfig & WithPath(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue