Class CfnResponderGateway.HealthCheckConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rtbfabric.CfnResponderGateway.HealthCheckConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponderGateway.HealthCheckConfigProperty>
- Enclosing interface:
CfnResponderGateway.HealthCheckConfigProperty
@Stability(Stable)
public static final class CfnResponderGateway.HealthCheckConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponderGateway.HealthCheckConfigProperty>
A builder for
CfnResponderGateway.HealthCheckConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThresholdCount(Number healthyThresholdCount) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getHealthyThresholdCount()intervalSeconds(Number intervalSeconds) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getIntervalSeconds()Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getPath()Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getPort()Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getProtocol()statusCodeMatcher(String statusCodeMatcher) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getStatusCodeMatcher()Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getTimeoutMs()unhealthyThresholdCount(Number unhealthyThresholdCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getPath()- Parameters:
path- the value to be set. This parameter is required.- Returns:
this
-
port
Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getPort()- Parameters:
port- the value to be set. This parameter is required.- Returns:
this
-
healthyThresholdCount
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder healthyThresholdCount(Number healthyThresholdCount) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getHealthyThresholdCount()- Parameters:
healthyThresholdCount- the value to be set.- Returns:
this
-
intervalSeconds
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder intervalSeconds(Number intervalSeconds) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getIntervalSeconds()- Parameters:
intervalSeconds- the value to be set.- Returns:
this
-
protocol
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder protocol(String protocol) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getProtocol()- Parameters:
protocol- the value to be set.- Returns:
this
-
statusCodeMatcher
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder statusCodeMatcher(String statusCodeMatcher) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getStatusCodeMatcher()- Parameters:
statusCodeMatcher- the value to be set.- Returns:
this
-
timeoutMs
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder timeoutMs(Number timeoutMs) Sets the value ofCfnResponderGateway.HealthCheckConfigProperty.getTimeoutMs()- Parameters:
timeoutMs- the value to be set.- Returns:
this
-
unhealthyThresholdCount
@Stability(Stable) public CfnResponderGateway.HealthCheckConfigProperty.Builder unhealthyThresholdCount(Number unhealthyThresholdCount) - Parameters:
unhealthyThresholdCount- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponderGateway.HealthCheckConfigProperty>- Returns:
- a new instance of
CfnResponderGateway.HealthCheckConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-