public static final class CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder healthyThreshold(java.lang.Number healthyThreshold)
healthyThreshold
- The number of consecutive successful health checks that must occur before declaring the listener healthy. This parameter is required.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder intervalMillis(java.lang.Number intervalMillis)
intervalMillis
- The time period in milliseconds between each health check execution. This parameter is required.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder protocol(java.lang.String protocol)
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.getProtocol()
protocol
- The protocol for the health check request. This parameter is required.
If you specify grpc
, then your service must conform to the GRPC Health Checking Protocol .this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder timeoutMillis(java.lang.Number timeoutMillis)
timeoutMillis
- The amount of time to wait when receiving a response from the health check, in milliseconds. This parameter is required.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder unhealthyThreshold(java.lang.Number unhealthyThreshold)
unhealthyThreshold
- The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. This parameter is required.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder path(java.lang.String path)
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.getPath()
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.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder port(java.lang.Number port)
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.getPort()
port
- The destination port for the health check request.
This port must match the port defined in the PortMapping
for the listener.this
public CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty build()
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided