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