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