Class HealthCheckConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.HealthCheckConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HealthCheckConfig>
- Enclosing interface:
- HealthCheckConfig
@Stability(Stable)
public static final class HealthCheckConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HealthCheckConfig>
A builder for
HealthCheckConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.virtualGatewayHealthCheck
(CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty virtualGatewayHealthCheck) Sets the value ofHealthCheckConfig.getVirtualGatewayHealthCheck()
virtualNodeHealthCheck
(CfnVirtualNode.HealthCheckProperty virtualNodeHealthCheck) Sets the value ofHealthCheckConfig.getVirtualNodeHealthCheck()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
virtualGatewayHealthCheck
@Stability(Stable) public HealthCheckConfig.Builder virtualGatewayHealthCheck(CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty virtualGatewayHealthCheck) Sets the value ofHealthCheckConfig.getVirtualGatewayHealthCheck()
- Parameters:
virtualGatewayHealthCheck
- VirtualGateway CFN configuration for Health Checks.- Returns:
this
-
virtualNodeHealthCheck
@Stability(Stable) public HealthCheckConfig.Builder virtualNodeHealthCheck(CfnVirtualNode.HealthCheckProperty virtualNodeHealthCheck) Sets the value ofHealthCheckConfig.getVirtualNodeHealthCheck()
- Parameters:
virtualNodeHealthCheck
- VirtualNode CFN configuration for Health Checks.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HealthCheckConfig>
- Returns:
- a new instance of
HealthCheckConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-