Class CfnVirtualNodePropsMixin.HealthCheckProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnVirtualNodePropsMixin.HealthCheckProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNodePropsMixin.HealthCheckProperty>
- Enclosing interface:
CfnVirtualNodePropsMixin.HealthCheckProperty
@Stability(Stable)
public static final class CfnVirtualNodePropsMixin.HealthCheckProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNodePropsMixin.HealthCheckProperty>
A builder for
CfnVirtualNodePropsMixin.HealthCheckProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThreshold(Number healthyThreshold) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getHealthyThreshold()intervalMillis(Number intervalMillis) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getIntervalMillis()Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getPath()Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getPort()Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getProtocol()timeoutMillis(Number timeoutMillis) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getTimeoutMillis()unhealthyThreshold(Number unhealthyThreshold) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getUnhealthyThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
@Stability(Stable) public CfnVirtualNodePropsMixin.HealthCheckProperty.Builder healthyThreshold(Number healthyThreshold) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive successful health checks that must occur before declaring listener healthy.- Returns:
this
-
intervalMillis
@Stability(Stable) public CfnVirtualNodePropsMixin.HealthCheckProperty.Builder intervalMillis(Number intervalMillis) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getIntervalMillis()- Parameters:
intervalMillis- The time period in milliseconds between each health check execution.- Returns:
this
-
path
Sets the value ofCfnVirtualNodePropsMixin.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 ofCfnVirtualNodePropsMixin.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
-
protocol
@Stability(Stable) public CfnVirtualNodePropsMixin.HealthCheckProperty.Builder protocol(String protocol) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getProtocol()- 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 CfnVirtualNodePropsMixin.HealthCheckProperty.Builder timeoutMillis(Number timeoutMillis) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.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 CfnVirtualNodePropsMixin.HealthCheckProperty.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofCfnVirtualNodePropsMixin.HealthCheckProperty.getUnhealthyThreshold()- Parameters:
unhealthyThreshold- The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualNodePropsMixin.HealthCheckProperty>- Returns:
- a new instance of
CfnVirtualNodePropsMixin.HealthCheckProperty - Throws:
NullPointerException- if any required attribute was not provided
-