Class CfnDaemonTaskDefinition.RestartPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.RestartPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition.RestartPolicyProperty>
- Enclosing interface:
CfnDaemonTaskDefinition.RestartPolicyProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.RestartPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition.RestartPolicyProperty>
A builder for
CfnDaemonTaskDefinition.RestartPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getEnabled()ignoredExitCodes(List<? extends Number> ignoredExitCodes) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getIgnoredExitCodes()ignoredExitCodes(IResolvable ignoredExitCodes) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getIgnoredExitCodes()restartAttemptPeriod(Number restartAttemptPeriod) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getRestartAttemptPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDaemonTaskDefinition.RestartPolicyProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
enabled
@Stability(Stable) public CfnDaemonTaskDefinition.RestartPolicyProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
ignoredExitCodes
@Stability(Stable) public CfnDaemonTaskDefinition.RestartPolicyProperty.Builder ignoredExitCodes(List<? extends Number> ignoredExitCodes) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getIgnoredExitCodes()- Parameters:
ignoredExitCodes- the value to be set.- Returns:
this
-
ignoredExitCodes
@Stability(Stable) public CfnDaemonTaskDefinition.RestartPolicyProperty.Builder ignoredExitCodes(IResolvable ignoredExitCodes) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getIgnoredExitCodes()- Parameters:
ignoredExitCodes- the value to be set.- Returns:
this
-
restartAttemptPeriod
@Stability(Stable) public CfnDaemonTaskDefinition.RestartPolicyProperty.Builder restartAttemptPeriod(Number restartAttemptPeriod) Sets the value ofCfnDaemonTaskDefinition.RestartPolicyProperty.getRestartAttemptPeriod()- Parameters:
restartAttemptPeriod- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinition.RestartPolicyProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinition.RestartPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-