Class CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty>
- Enclosing interface:
CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty
@Stability(Stable)
public static final class CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThreshold(Number healthyThreshold) intervalMillis(Number intervalMillis) timeoutMillis(Number timeoutMillis) unhealthyThreshold(Number unhealthyThreshold)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder healthyThreshold(Number healthyThreshold) Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive successful health checks that must occur before declaring the listener healthy.- Returns:
this
-
intervalMillis
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder intervalMillis(Number intervalMillis) Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.getIntervalMillis()- Parameters:
intervalMillis- The time period in milliseconds between each health check execution.- Returns:
this
-
path
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder path(String path) - Parameters:
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.- Returns:
this
-
port
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder port(Number port) - Parameters:
port- The destination port for the health check request. This port must match the port defined in thePortMappingfor the listener.- Returns:
this
-
protocol
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder protocol(String protocol) - Parameters:
protocol- The protocol for the health check request. If you specifygrpc, then your service must conform to the GRPC Health Checking Protocol .- Returns:
this
-
timeoutMillis
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder timeoutMillis(Number timeoutMillis) Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.getTimeoutMillis()- Parameters:
timeoutMillis- The amount of time to wait when receiving a response from the health check, in milliseconds.- Returns:
this
-
unhealthyThreshold
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty.getUnhealthyThreshold()- Parameters:
unhealthyThreshold- The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.- Returns:
this
-
build
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty>- Returns:
- a new instance of
CfnVirtualGatewayPropsMixin.VirtualGatewayHealthCheckPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-