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>
51 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
95 template<
typename MatcherT = Matcher>
96 void SetMatcher(MatcherT&& value) { m_matcherHasBeenSet =
true; m_matcher = std::forward<MatcherT>(value); }
97 template<
typename MatcherT = Matcher>
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>
124 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
163 bool m_enabled{
false};
164 bool m_enabledHasBeenSet =
false;
166 int m_healthCheckIntervalSeconds{0};
167 bool m_healthCheckIntervalSecondsHasBeenSet =
false;
169 int m_healthCheckTimeoutSeconds{0};
170 bool m_healthCheckTimeoutSecondsHasBeenSet =
false;
172 int m_healthyThresholdCount{0};
173 bool m_healthyThresholdCountHasBeenSet =
false;
176 bool m_matcherHasBeenSet =
false;
179 bool m_pathHasBeenSet =
false;
182 bool m_portHasBeenSet =
false;
185 bool m_protocolHasBeenSet =
false;
188 bool m_protocolVersionHasBeenSet =
false;
190 int m_unhealthyThresholdCount{0};
191 bool m_unhealthyThresholdCountHasBeenSet =
false;
bool UnhealthyThresholdCountHasBeenSet() const
bool HealthyThresholdCountHasBeenSet() const
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
void SetHealthyThresholdCount(int value)
HealthCheckConfig & WithHealthyThresholdCount(int value)
void SetPath(PathT &&value)
void SetMatcher(MatcherT &&value)
HealthCheckConfig & WithHealthCheckTimeoutSeconds(int value)
bool ProtocolHasBeenSet() const
HealthCheckConfig & WithPort(int value)
HealthCheckConfig & WithProtocolVersion(HealthCheckProtocolVersion value)
bool EnabledHasBeenSet() const
int GetHealthyThresholdCount() const
TargetGroupProtocol GetProtocol() const
void SetEnabled(bool value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocolVersion(HealthCheckProtocolVersion value)
HealthCheckProtocolVersion GetProtocolVersion() const
bool HealthCheckTimeoutSecondsHasBeenSet() const
void SetHealthCheckIntervalSeconds(int value)
bool HealthCheckIntervalSecondsHasBeenSet() const
const Matcher & GetMatcher() const
void SetUnhealthyThresholdCount(int value)
HealthCheckConfig & WithPath(PathT &&value)
bool PathHasBeenSet() const
bool MatcherHasBeenSet() const
int GetHealthCheckIntervalSeconds() const
HealthCheckConfig & WithMatcher(MatcherT &&value)
bool ProtocolVersionHasBeenSet() const
HealthCheckConfig & WithEnabled(bool value)
bool PortHasBeenSet() const
int GetHealthCheckTimeoutSeconds() const
HealthCheckConfig & WithProtocol(TargetGroupProtocol value)
const Aws::String & GetPath() const
HealthCheckConfig & WithHealthCheckIntervalSeconds(int value)
int GetUnhealthyThresholdCount() const
void SetHealthCheckTimeoutSeconds(int value)
HealthCheckProtocolVersion
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue