Class CfnComputeEnvironment.UpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnComputeEnvironment.UpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeEnvironment.UpdatePolicyProperty>
- Enclosing interface:
CfnComputeEnvironment.UpdatePolicyProperty
@Stability(Stable)
public static final class CfnComputeEnvironment.UpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeEnvironment.UpdatePolicyProperty>
A builder for
CfnComputeEnvironment.UpdatePolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.jobExecutionTimeoutMinutes
(Number jobExecutionTimeoutMinutes) terminateJobsOnUpdate
(Boolean terminateJobsOnUpdate) Sets the value ofCfnComputeEnvironment.UpdatePolicyProperty.getTerminateJobsOnUpdate()
terminateJobsOnUpdate
(IResolvable terminateJobsOnUpdate) Sets the value ofCfnComputeEnvironment.UpdatePolicyProperty.getTerminateJobsOnUpdate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobExecutionTimeoutMinutes
@Stability(Stable) public CfnComputeEnvironment.UpdatePolicyProperty.Builder jobExecutionTimeoutMinutes(Number jobExecutionTimeoutMinutes) - Parameters:
jobExecutionTimeoutMinutes
- Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.- Returns:
this
-
terminateJobsOnUpdate
@Stability(Stable) public CfnComputeEnvironment.UpdatePolicyProperty.Builder terminateJobsOnUpdate(Boolean terminateJobsOnUpdate) Sets the value ofCfnComputeEnvironment.UpdatePolicyProperty.getTerminateJobsOnUpdate()
- Parameters:
terminateJobsOnUpdate
- Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value isfalse
.- Returns:
this
-
terminateJobsOnUpdate
@Stability(Stable) public CfnComputeEnvironment.UpdatePolicyProperty.Builder terminateJobsOnUpdate(IResolvable terminateJobsOnUpdate) Sets the value ofCfnComputeEnvironment.UpdatePolicyProperty.getTerminateJobsOnUpdate()
- Parameters:
terminateJobsOnUpdate
- Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value isfalse
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComputeEnvironment.UpdatePolicyProperty>
- Returns:
- a new instance of
CfnComputeEnvironment.UpdatePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-