Class CfnDaemonTaskDefinition.HealthCheckProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.HealthCheckProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition.HealthCheckProperty>
- Enclosing interface:
CfnDaemonTaskDefinition.HealthCheckProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.HealthCheckProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition.HealthCheckProperty>
A builder for
CfnDaemonTaskDefinition.HealthCheckProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getCommand()Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getInterval()Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getRetries()startPeriod(Number startPeriod) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getStartPeriod()Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Stable) public CfnDaemonTaskDefinition.HealthCheckProperty.Builder command(List<String> command) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getCommand()- Parameters:
command- the value to be set.- Returns:
this
-
interval
@Stability(Stable) public CfnDaemonTaskDefinition.HealthCheckProperty.Builder interval(Number interval) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getInterval()- Parameters:
interval- the value to be set.- Returns:
this
-
retries
@Stability(Stable) public CfnDaemonTaskDefinition.HealthCheckProperty.Builder retries(Number retries) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getRetries()- Parameters:
retries- the value to be set.- Returns:
this
-
startPeriod
@Stability(Stable) public CfnDaemonTaskDefinition.HealthCheckProperty.Builder startPeriod(Number startPeriod) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getStartPeriod()- Parameters:
startPeriod- the value to be set.- Returns:
this
-
timeout
@Stability(Stable) public CfnDaemonTaskDefinition.HealthCheckProperty.Builder timeout(Number timeout) Sets the value ofCfnDaemonTaskDefinition.HealthCheckProperty.getTimeout()- Parameters:
timeout- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinition.HealthCheckProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinition.HealthCheckProperty - Throws:
NullPointerException- if any required attribute was not provided
-