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