AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MatcherT = Matcher>
96 void SetMatcher(MatcherT&& value) { m_matcherHasBeenSet = true; m_matcher = std::forward<MatcherT>(value); }
97 template<typename MatcherT = Matcher>
98 HealthCheckConfig& WithMatcher(MatcherT&& value) { SetMatcher(std::forward<MatcherT>(value)); return *this;}
100
102
109 inline const Aws::String& GetPath() const { return m_path; }
110 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
111 template<typename PathT = Aws::String>
112 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
113 template<typename PathT = Aws::String>
114 HealthCheckConfig& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
116
118
122 inline int GetPort() const { return m_port; }
123 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
124 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
125 inline HealthCheckConfig& WithPort(int value) { SetPort(value); return *this;}
127
129
134 inline TargetGroupProtocol GetProtocol() const { return m_protocol; }
135 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
136 inline void SetProtocol(TargetGroupProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
137 inline HealthCheckConfig& WithProtocol(TargetGroupProtocol value) { SetProtocol(value); return *this;}
139
141
145 inline HealthCheckProtocolVersion GetProtocolVersion() const { return m_protocolVersion; }
146 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
147 inline void SetProtocolVersion(HealthCheckProtocolVersion value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
150
152
156 inline int GetUnhealthyThresholdCount() const { return m_unhealthyThresholdCount; }
157 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
158 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
161 private:
162
163 bool m_enabled{false};
164 bool m_enabledHasBeenSet = false;
165
166 int m_healthCheckIntervalSeconds{0};
167 bool m_healthCheckIntervalSecondsHasBeenSet = false;
168
169 int m_healthCheckTimeoutSeconds{0};
170 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
171
172 int m_healthyThresholdCount{0};
173 bool m_healthyThresholdCountHasBeenSet = false;
174
175 Matcher m_matcher;
176 bool m_matcherHasBeenSet = false;
177
178 Aws::String m_path;
179 bool m_pathHasBeenSet = false;
180
181 int m_port{0};
182 bool m_portHasBeenSet = false;
183
185 bool m_protocolHasBeenSet = false;
186
188 bool m_protocolVersionHasBeenSet = false;
189
190 int m_unhealthyThresholdCount{0};
191 bool m_unhealthyThresholdCountHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace VPCLattice
196} // namespace Aws
AWS_VPCLATTICE_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithUnhealthyThresholdCount(int value)
AWS_VPCLATTICE_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProtocol(TargetGroupProtocol value)
AWS_VPCLATTICE_API HealthCheckConfig()=default
HealthCheckConfig & WithHealthyThresholdCount(int value)
HealthCheckConfig & WithHealthCheckTimeoutSeconds(int value)
HealthCheckConfig & WithPort(int value)
HealthCheckConfig & WithProtocolVersion(HealthCheckProtocolVersion value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocolVersion(HealthCheckProtocolVersion value)
HealthCheckProtocolVersion GetProtocolVersion() const
HealthCheckConfig & WithPath(PathT &&value)
HealthCheckConfig & WithMatcher(MatcherT &&value)
HealthCheckConfig & WithEnabled(bool value)
HealthCheckConfig & WithProtocol(TargetGroupProtocol value)
HealthCheckConfig & WithHealthCheckIntervalSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue