/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the health checks that are conducted on the load
* balancer.See Also:
AWS
* API Reference
The number of consecutive health check successes required before the instance * is moved to the Healthy state.
*/ inline int GetHealthyThreshold() const{ return m_healthyThreshold; } /** *The number of consecutive health check successes required before the instance * is moved to the Healthy state.
*/ inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; } /** *The number of consecutive health check successes required before the instance * is moved to the Healthy state.
*/ inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; } /** *The number of consecutive health check successes required before the instance * is moved to the Healthy state.
*/ inline AwsElbLoadBalancerHealthCheck& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;} /** *The approximate interval, in seconds, between health checks of an individual * instance.
*/ inline int GetInterval() const{ return m_interval; } /** *The approximate interval, in seconds, between health checks of an individual * instance.
*/ inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; } /** *The approximate interval, in seconds, between health checks of an individual * instance.
*/ inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; } /** *The approximate interval, in seconds, between health checks of an individual * instance.
*/ inline AwsElbLoadBalancerHealthCheck& WithInterval(int value) { SetInterval(value); return *this;} /** *The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The instance that is being checked. The target specifies the protocol and * port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid * ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target * also specifies the ping path.
For the TCP protocol, the target is
* specified as TCP: <port>
.
For the SSL
* protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
* <protocol>:<port>/<path to ping>
*
.
The amount of time, in seconds, during which no response means a failed * health check.
*/ inline int GetTimeout() const{ return m_timeout; } /** *The amount of time, in seconds, during which no response means a failed * health check.
*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } /** *The amount of time, in seconds, during which no response means a failed * health check.
*/ inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *The amount of time, in seconds, during which no response means a failed * health check.
*/ inline AwsElbLoadBalancerHealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;} /** *The number of consecutive health check failures that must occur before the * instance is moved to the Unhealthy state.
*/ inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; } /** *The number of consecutive health check failures that must occur before the * instance is moved to the Unhealthy state.
*/ inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; } /** *The number of consecutive health check failures that must occur before the * instance is moved to the Unhealthy state.
*/ inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; } /** *The number of consecutive health check failures that must occur before the * instance is moved to the Unhealthy state.
*/ inline AwsElbLoadBalancerHealthCheck& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;} private: int m_healthyThreshold; bool m_healthyThresholdHasBeenSet = false; int m_interval; bool m_intervalHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; int m_timeout; bool m_timeoutHasBeenSet = false; int m_unhealthyThreshold; bool m_unhealthyThresholdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws