Interface JobStateTimeLimitAction.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<JobStateTimeLimitAction.Builder,JobStateTimeLimitAction>
,SdkBuilder<JobStateTimeLimitAction.Builder,JobStateTimeLimitAction>
,SdkPojo
- Enclosing class:
- JobStateTimeLimitAction
public static interface JobStateTimeLimitAction.Builder extends SdkPojo, CopyableBuilder<JobStateTimeLimitAction.Builder,JobStateTimeLimitAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JobStateTimeLimitAction.Builder
action(String 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.JobStateTimeLimitAction.Builder
action(JobStateTimeLimitActionsAction 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.JobStateTimeLimitAction.Builder
maxTimeSeconds(Integer maxTimeSeconds)
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.JobStateTimeLimitAction.Builder
reason(String reason)
The reason to log for the action being taken.JobStateTimeLimitAction.Builder
state(String state)
The state of the job needed to trigger the action.JobStateTimeLimitAction.Builder
state(JobStateTimeLimitActionsState state)
The state of the job needed to trigger the action.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
reason
JobStateTimeLimitAction.Builder reason(String reason)
The reason to log for the action being taken.
- Parameters:
reason
- The reason to log for the action being taken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
JobStateTimeLimitAction.Builder state(String state)
The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.- Parameters:
state
- The state of the job needed to trigger the action. The only supported value isRUNNABLE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobStateTimeLimitActionsState
,JobStateTimeLimitActionsState
-
state
JobStateTimeLimitAction.Builder state(JobStateTimeLimitActionsState state)
The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.- Parameters:
state
- The state of the job needed to trigger the action. The only supported value isRUNNABLE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobStateTimeLimitActionsState
,JobStateTimeLimitActionsState
-
maxTimeSeconds
JobStateTimeLimitAction.Builder maxTimeSeconds(Integer 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).
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
action
JobStateTimeLimitAction.Builder action(String 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 is
CANCEL
, which will cancel the job.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobStateTimeLimitActionsAction
,JobStateTimeLimitActionsAction
-
action
JobStateTimeLimitAction.Builder action(JobStateTimeLimitActionsAction 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 is
CANCEL
, which will cancel the job.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobStateTimeLimitActionsAction
,JobStateTimeLimitActionsAction
-
-