Class CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinition.ContainerHealthCheckProperty>
- Enclosing interface:
CfnContainerGroupDefinition.ContainerHealthCheckProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinition.ContainerHealthCheckProperty>
A builder for
CfnContainerGroupDefinition.ContainerHealthCheckProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getCommand()Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getInterval()Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getRetries()startPeriod(Number startPeriod) Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Stable) public CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder command(List<String> command) Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getCommand()- Parameters:
command- A string array representing the command that the container runs to determine if it is healthy. This parameter is required.- Returns:
this
-
interval
@Stability(Stable) public CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder interval(Number interval) Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getInterval()- Parameters:
interval- How often (in seconds) the health is checked.- Returns:
this
-
retries
@Stability(Stable) public CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder retries(Number retries) Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getRetries()- Parameters:
retries- How many times the process manager will retry the command after a timeout. (The first run of the command does not count as a retry.)- Returns:
this
-
startPeriod
@Stability(Stable) public CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder startPeriod(Number startPeriod) - Parameters:
startPeriod- The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.- Returns:
this
-
timeout
@Stability(Stable) public CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder timeout(Number timeout) Sets the value ofCfnContainerGroupDefinition.ContainerHealthCheckProperty.getTimeout()- Parameters:
timeout- How many seconds the process manager allows the command to run before canceling it.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinition.ContainerHealthCheckProperty>- Returns:
- a new instance of
CfnContainerGroupDefinition.ContainerHealthCheckProperty - Throws:
NullPointerException- if any required attribute was not provided
-