/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents the health check policy for a virtual node's
* listener.See Also:
AWS
* API Reference
The number of consecutive successful health checks that must occur before * declaring listener healthy.
*/ inline int GetHealthyThreshold() const{ return m_healthyThreshold; } /** *The number of consecutive successful health checks that must occur before * declaring listener healthy.
*/ inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; } /** *The number of consecutive successful health checks that must occur before * declaring listener healthy.
*/ inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; } /** *The number of consecutive successful health checks that must occur before * declaring listener healthy.
*/ inline HealthCheckPolicy& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;} /** *The time period in milliseconds between each health check execution.
*/ inline long long GetIntervalMillis() const{ return m_intervalMillis; } /** *The time period in milliseconds between each health check execution.
*/ inline bool IntervalMillisHasBeenSet() const { return m_intervalMillisHasBeenSet; } /** *The time period in milliseconds between each health check execution.
*/ inline void SetIntervalMillis(long long value) { m_intervalMillisHasBeenSet = true; m_intervalMillis = value; } /** *The time period in milliseconds between each health check execution.
*/ inline HealthCheckPolicy& WithIntervalMillis(long long value) { SetIntervalMillis(value); return *this;} /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline const Aws::String& GetPath() const{ return m_path; } /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline HealthCheckPolicy& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline HealthCheckPolicy& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *The destination path for the health check request. This value is only used if * the specified protocol is HTTP or HTTP/2. For any other protocol, this value is * ignored.
*/ inline HealthCheckPolicy& WithPath(const char* value) { SetPath(value); return *this;} /** *The destination port for the health check request. This port must match the * port defined in the PortMapping for the listener.
*/ inline int GetPort() const{ return m_port; } /** *The destination port for the health check request. This port must match the * port defined in the PortMapping for the listener.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *The destination port for the health check request. This port must match the * port defined in the PortMapping for the listener.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *The destination port for the health check request. This port must match the * port defined in the PortMapping for the listener.
*/ inline HealthCheckPolicy& WithPort(int value) { SetPort(value); return *this;} /** *The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The protocol for the health check request. If you specify grpc
,
* then your service must conform to the GRPC
* Health Checking Protocol.
The amount of time to wait when receiving a response from the health check, * in milliseconds.
*/ inline long long GetTimeoutMillis() const{ return m_timeoutMillis; } /** *The amount of time to wait when receiving a response from the health check, * in milliseconds.
*/ inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; } /** *The amount of time to wait when receiving a response from the health check, * in milliseconds.
*/ inline void SetTimeoutMillis(long long value) { m_timeoutMillisHasBeenSet = true; m_timeoutMillis = value; } /** *The amount of time to wait when receiving a response from the health check, * in milliseconds.
*/ inline HealthCheckPolicy& WithTimeoutMillis(long long value) { SetTimeoutMillis(value); return *this;} /** *The number of consecutive failed health checks that must occur before * declaring a virtual node unhealthy.
*/ inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; } /** *The number of consecutive failed health checks that must occur before * declaring a virtual node unhealthy.
*/ inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; } /** *The number of consecutive failed health checks that must occur before * declaring a virtual node unhealthy.
*/ inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; } /** *The number of consecutive failed health checks that must occur before * declaring a virtual node unhealthy.
*/ inline HealthCheckPolicy& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;} private: int m_healthyThreshold; bool m_healthyThresholdHasBeenSet = false; long long m_intervalMillis; bool m_intervalMillisHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; PortProtocol m_protocol; bool m_protocolHasBeenSet = false; long long m_timeoutMillis; bool m_timeoutMillisHasBeenSet = false; int m_unhealthyThreshold; bool m_unhealthyThresholdHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws