Class CfnApplicationStatusCheckProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnApplicationStatusCheckProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationStatusCheckProps>
- Enclosing interface:
CfnApplicationStatusCheckProps
@Stability(Stable)
public static final class CfnApplicationStatusCheckProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationStatusCheckProps>
A builder for
CfnApplicationStatusCheckProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregation(String aggregation) Sets the value ofCfnApplicationStatusCheckProps.getAggregation()build()Builds the configured instance.deviceIndex(Number deviceIndex) Sets the value ofCfnApplicationStatusCheckProps.getDeviceIndex()failureThreshold(Number failureThreshold) Sets the value ofCfnApplicationStatusCheckProps.getFailureThreshold()healthCheckPaths(List<? extends Object> healthCheckPaths) Sets the value ofCfnApplicationStatusCheckProps.getHealthCheckPaths()healthCheckPaths(IResolvable healthCheckPaths) Sets the value ofCfnApplicationStatusCheckProps.getHealthCheckPaths()initializationGracePeriodSeconds(Number initializationGracePeriodSeconds) Sets the value ofCfnApplicationStatusCheckProps.getInitializationGracePeriodSeconds()Sets the value ofCfnApplicationStatusCheckProps.getInterval()Sets the value ofCfnApplicationStatusCheckProps.getIpScope()Sets the value ofCfnApplicationStatusCheckProps.getIpVersion()Sets the value ofCfnApplicationStatusCheckProps.getPath()Sets the value ofCfnApplicationStatusCheckProps.getPort()Sets the value ofCfnApplicationStatusCheckProps.getProtocol()statusCodeMatcher(String statusCodeMatcher) Sets the value ofCfnApplicationStatusCheckProps.getStatusCodeMatcher()successThreshold(Number successThreshold) Sets the value ofCfnApplicationStatusCheckProps.getSuccessThreshold()Sets the value ofCfnApplicationStatusCheckProps.getTags()Sets the value ofCfnApplicationStatusCheckProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofCfnApplicationStatusCheckProps.getPort()- Parameters:
port- The port used for the health check. This parameter is required.- Returns:
this
-
protocol
Sets the value ofCfnApplicationStatusCheckProps.getProtocol()- Parameters:
protocol- The network protocol used for the health check. This parameter is required.- Returns:
this
-
aggregation
Sets the value ofCfnApplicationStatusCheckProps.getAggregation()- Parameters:
aggregation- Whether this check is included in the rolled-up application status.- Returns:
this
-
deviceIndex
Sets the value ofCfnApplicationStatusCheckProps.getDeviceIndex()- Parameters:
deviceIndex- The network interface device index used for the health check.- Returns:
this
-
failureThreshold
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder failureThreshold(Number failureThreshold) Sets the value ofCfnApplicationStatusCheckProps.getFailureThreshold()- Parameters:
failureThreshold- The number of consecutive failed probes required to mark the instance unhealthy.- Returns:
this
-
healthCheckPaths
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder healthCheckPaths(IResolvable healthCheckPaths) Sets the value ofCfnApplicationStatusCheckProps.getHealthCheckPaths()- Parameters:
healthCheckPaths- The source/destination network paths used for the health check.- Returns:
this
-
healthCheckPaths
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder healthCheckPaths(List<? extends Object> healthCheckPaths) Sets the value ofCfnApplicationStatusCheckProps.getHealthCheckPaths()- Parameters:
healthCheckPaths- The source/destination network paths used for the health check.- Returns:
this
-
initializationGracePeriodSeconds
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder initializationGracePeriodSeconds(Number initializationGracePeriodSeconds) Sets the value ofCfnApplicationStatusCheckProps.getInitializationGracePeriodSeconds()- Parameters:
initializationGracePeriodSeconds- Seconds to wait after instance launch before beginning health checks.- Returns:
this
-
interval
Sets the value ofCfnApplicationStatusCheckProps.getInterval()- Parameters:
interval- The interval, in seconds, between health check probes.- Returns:
this
-
ipScope
Sets the value ofCfnApplicationStatusCheckProps.getIpScope()- Parameters:
ipScope- The IP scope used for the health check.- Returns:
this
-
ipVersion
Sets the value ofCfnApplicationStatusCheckProps.getIpVersion()- Parameters:
ipVersion- The IP version used for the health check.- Returns:
this
-
path
Sets the value ofCfnApplicationStatusCheckProps.getPath()- Parameters:
path- The HTTP path used for the health check.- Returns:
this
-
statusCodeMatcher
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder statusCodeMatcher(String statusCodeMatcher) Sets the value ofCfnApplicationStatusCheckProps.getStatusCodeMatcher()- Parameters:
statusCodeMatcher- The HTTP status codes considered successful (e.g., "200-299").- Returns:
this
-
successThreshold
@Stability(Stable) public CfnApplicationStatusCheckProps.Builder successThreshold(Number successThreshold) Sets the value ofCfnApplicationStatusCheckProps.getSuccessThreshold()- Parameters:
successThreshold- The number of consecutive successful probes required to mark the instance healthy.- Returns:
this
-
tags
Sets the value ofCfnApplicationStatusCheckProps.getTags()- Parameters:
tags- Tags to apply to the application status check.- Returns:
this
-
timeout
Sets the value ofCfnApplicationStatusCheckProps.getTimeout()- Parameters:
timeout- The timeout, in seconds, for each health check probe.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationStatusCheckProps>- Returns:
- a new instance of
CfnApplicationStatusCheckProps - Throws:
NullPointerException- if any required attribute was not provided
-