/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Contains information about the health checks that are conducted on the load * balancer.

See Also:

AWS * API Reference

*/ class AwsElbLoadBalancerHealthCheck { public: AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck(); AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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> * .

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

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> * .

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

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> * .

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

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> * .

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

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> * .

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

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> * .

*/ inline AwsElbLoadBalancerHealthCheck& WithTarget(const Aws::String& value) { SetTarget(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> * .

*/ inline AwsElbLoadBalancerHealthCheck& WithTarget(Aws::String&& value) { SetTarget(std::move(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> * .

*/ inline AwsElbLoadBalancerHealthCheck& WithTarget(const char* value) { SetTarget(value); return *this;} /** *

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