Class CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.batch.mixins.CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty>
- Enclosing interface:
CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty
@Stability(Stable)
public static final class CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty>
A builder for
CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getAction()build()Builds the configured instance.maxTimeSeconds(Number maxTimeSeconds) Sets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getReason()Sets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder action(String action) Sets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getAction()- Parameters:
action- The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value isCANCEL, which will cancel the job.- Returns:
this
-
maxTimeSeconds
@Stability(Stable) public CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder maxTimeSeconds(Number maxTimeSeconds) - Parameters:
maxTimeSeconds- The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).- Returns:
this
-
reason
@Stability(Stable) public CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder reason(String reason) Sets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getReason()- Parameters:
reason- The reason to log for the action being taken.- Returns:
this
-
state
@Stability(Stable) public CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Builder state(String state) Sets the value ofCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.getState()- Parameters:
state- The state of the job needed to trigger the action. The only supported value isRUNNABLE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty>- Returns:
- a new instance of
CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-