@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobStateTimeLimitAction extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an action that Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.
Constructor and Description |
---|
JobStateTimeLimitAction() |
Modifier and Type | Method and Description |
---|---|
JobStateTimeLimitAction |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
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.
|
Integer |
getMaxTimeSeconds()
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action
is taken.
|
String |
getReason()
The reason to log for the action being taken.
|
String |
getState()
The state of the job needed to trigger the action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(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.
|
void |
setMaxTimeSeconds(Integer maxTimeSeconds)
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action
is taken.
|
void |
setReason(String reason)
The reason to log for the action being taken.
|
void |
setState(String state)
The state of the job needed to trigger the action.
|
String |
toString()
Returns a string representation of this object.
|
JobStateTimeLimitAction |
withAction(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 |
withAction(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 |
withMaxTimeSeconds(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 |
withReason(String reason)
The reason to log for the action being taken.
|
JobStateTimeLimitAction |
withState(JobStateTimeLimitActionsState state)
The state of the job needed to trigger the action.
|
JobStateTimeLimitAction |
withState(String state)
The state of the job needed to trigger the action.
|
public void setReason(String reason)
The reason to log for the action being taken.
reason
- The reason to log for the action being taken.public String getReason()
The reason to log for the action being taken.
public JobStateTimeLimitAction withReason(String reason)
The reason to log for the action being taken.
reason
- The reason to log for the action being taken.public void setState(String state)
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
state
- The state of the job needed to trigger the action. The only supported value is RUNNABLE
.JobStateTimeLimitActionsState
public String getState()
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
RUNNABLE
.JobStateTimeLimitActionsState
public JobStateTimeLimitAction withState(String state)
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
state
- The state of the job needed to trigger the action. The only supported value is RUNNABLE
.JobStateTimeLimitActionsState
public JobStateTimeLimitAction withState(JobStateTimeLimitActionsState state)
The state of the job needed to trigger the action. The only supported value is RUNNABLE
.
state
- The state of the job needed to trigger the action. The only supported value is RUNNABLE
.JobStateTimeLimitActionsState
public void setMaxTimeSeconds(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).
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).public Integer getMaxTimeSeconds()
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).
public JobStateTimeLimitAction withMaxTimeSeconds(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).
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).public void setAction(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.
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.JobStateTimeLimitActionsAction
public String getAction()
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.
CANCEL
, which will cancel the job.JobStateTimeLimitActionsAction
public JobStateTimeLimitAction withAction(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.
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.JobStateTimeLimitActionsAction
public JobStateTimeLimitAction withAction(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.
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.JobStateTimeLimitActionsAction
public String toString()
toString
in class Object
Object.toString()
public JobStateTimeLimitAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.