Class CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.vpclattice.CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroupPropsMixin.HealthCheckConfigProperty>
- Enclosing interface:
CfnTargetGroupPropsMixin.HealthCheckConfigProperty
@Stability(Stable)
public static final class CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroupPropsMixin.HealthCheckConfigProperty>
A builder for
CfnTargetGroupPropsMixin.HealthCheckConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getEnabled()healthCheckIntervalSeconds(Number healthCheckIntervalSeconds) healthCheckTimeoutSeconds(Number healthCheckTimeoutSeconds) healthyThresholdCount(Number healthyThresholdCount) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getMatcher()matcher(IResolvable matcher) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getMatcher()Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getPath()Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getPort()Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getProtocol()protocolVersion(String protocolVersion) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getProtocolVersion()unhealthyThresholdCount(Number unhealthyThresholdCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getEnabled()- Parameters:
enabled- Indicates whether health checking is enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getEnabled()- Parameters:
enabled- Indicates whether health checking is enabled.- Returns:
this
-
healthCheckIntervalSeconds
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder healthCheckIntervalSeconds(Number healthCheckIntervalSeconds) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getHealthCheckIntervalSeconds()- Parameters:
healthCheckIntervalSeconds- The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.- Returns:
this
-
healthCheckTimeoutSeconds
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder healthCheckTimeoutSeconds(Number healthCheckTimeoutSeconds) - Parameters:
healthCheckTimeoutSeconds- The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.- Returns:
this
-
healthyThresholdCount
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder healthyThresholdCount(Number healthyThresholdCount) - Parameters:
healthyThresholdCount- The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.- Returns:
this
-
matcher
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder matcher(IResolvable matcher) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getMatcher()- Parameters:
matcher- The codes to use when checking for a successful response from a target.- Returns:
this
-
matcher
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder matcher(CfnTargetGroupPropsMixin.MatcherProperty matcher) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getMatcher()- Parameters:
matcher- The codes to use when checking for a successful response from a target.- Returns:
this
-
path
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder path(String path) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getPath()- Parameters:
path- The destination for health checks on the targets. If the protocol version isHTTP/1.1orHTTP/2, specify a valid URI (for example,/path?query). The default path is/. Health checks are not supported if the protocol version isgRPC, however, you can chooseHTTP/1.1orHTTP/2and specify a valid URI.- Returns:
this
-
port
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder port(Number port) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getPort()- Parameters:
port- The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.- Returns:
this
-
protocol
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder protocol(String protocol) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getProtocol()- Parameters:
protocol- The protocol used when performing health checks on targets. The possible protocols areHTTPandHTTPS. The default isHTTP.- Returns:
this
-
protocolVersion
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder protocolVersion(String protocolVersion) Sets the value ofCfnTargetGroupPropsMixin.HealthCheckConfigProperty.getProtocolVersion()- Parameters:
protocolVersion- The protocol version used when performing health checks on targets. The possible protocol versions areHTTP1andHTTP2.- Returns:
this
-
unhealthyThresholdCount
@Stability(Stable) public CfnTargetGroupPropsMixin.HealthCheckConfigProperty.Builder unhealthyThresholdCount(Number unhealthyThresholdCount) - Parameters:
unhealthyThresholdCount- The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTargetGroupPropsMixin.HealthCheckConfigProperty>- Returns:
- a new instance of
CfnTargetGroupPropsMixin.HealthCheckConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-