public class AbortCriteria
extends java.lang.Object
implements java.io.Serializable
The criteria that determine when and how a job abort takes place.
Constructor and Description |
---|
AbortCriteria() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction()
The type of job action to take to initiate the job abort.
|
java.lang.String |
getFailureType()
The type of job execution failures that can initiate a job abort.
|
java.lang.Integer |
getMinNumberOfExecutedThings()
The minimum number of things which must receive job execution
notifications before the job can be aborted.
|
java.lang.Double |
getThresholdPercentage()
The minimum percentage of job execution failures that must occur to
initiate the job abort.
|
int |
hashCode() |
void |
setAction(AbortAction action)
The type of job action to take to initiate the job abort.
|
void |
setAction(java.lang.String action)
The type of job action to take to initiate the job abort.
|
void |
setFailureType(JobExecutionFailureType failureType)
The type of job execution failures that can initiate a job abort.
|
void |
setFailureType(java.lang.String failureType)
The type of job execution failures that can initiate a job abort.
|
void |
setMinNumberOfExecutedThings(java.lang.Integer minNumberOfExecutedThings)
The minimum number of things which must receive job execution
notifications before the job can be aborted.
|
void |
setThresholdPercentage(java.lang.Double thresholdPercentage)
The minimum percentage of job execution failures that must occur to
initiate the job abort.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AbortCriteria |
withAction(AbortAction action)
The type of job action to take to initiate the job abort.
|
AbortCriteria |
withAction(java.lang.String action)
The type of job action to take to initiate the job abort.
|
AbortCriteria |
withFailureType(JobExecutionFailureType failureType)
The type of job execution failures that can initiate a job abort.
|
AbortCriteria |
withFailureType(java.lang.String failureType)
The type of job execution failures that can initiate a job abort.
|
AbortCriteria |
withMinNumberOfExecutedThings(java.lang.Integer minNumberOfExecutedThings)
The minimum number of things which must receive job execution
notifications before the job can be aborted.
|
AbortCriteria |
withThresholdPercentage(java.lang.Double thresholdPercentage)
The minimum percentage of job execution failures that must occur to
initiate the job abort.
|
public java.lang.String getFailureType()
The type of job execution failures that can initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
The type of job execution failures that can initiate a job abort.
JobExecutionFailureType
public void setFailureType(java.lang.String failureType)
The type of job execution failures that can initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType
- The type of job execution failures that can initiate a job abort.
JobExecutionFailureType
public AbortCriteria withFailureType(java.lang.String failureType)
The type of job execution failures that can initiate a job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType
- The type of job execution failures that can initiate a job abort.
JobExecutionFailureType
public void setFailureType(JobExecutionFailureType failureType)
The type of job execution failures that can initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType
- The type of job execution failures that can initiate a job abort.
JobExecutionFailureType
public AbortCriteria withFailureType(JobExecutionFailureType failureType)
The type of job execution failures that can initiate a job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType
- The type of job execution failures that can initiate a job abort.
JobExecutionFailureType
public java.lang.String getAction()
The type of job action to take to initiate the job abort.
Constraints:
Allowed Values: CANCEL
The type of job action to take to initiate the job abort.
AbortAction
public void setAction(java.lang.String action)
The type of job action to take to initiate the job abort.
Constraints:
Allowed Values: CANCEL
action
- The type of job action to take to initiate the job abort.
AbortAction
public AbortCriteria withAction(java.lang.String action)
The type of job action to take to initiate the job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CANCEL
action
- The type of job action to take to initiate the job abort.
AbortAction
public void setAction(AbortAction action)
The type of job action to take to initiate the job abort.
Constraints:
Allowed Values: CANCEL
action
- The type of job action to take to initiate the job abort.
AbortAction
public AbortCriteria withAction(AbortAction action)
The type of job action to take to initiate the job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CANCEL
action
- The type of job action to take to initiate the job abort.
AbortAction
public java.lang.Double getThresholdPercentage()
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
Constraints:
Range: - 100
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
public void setThresholdPercentage(java.lang.Double thresholdPercentage)
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
Constraints:
Range: - 100
thresholdPercentage
- The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
public AbortCriteria withThresholdPercentage(java.lang.Double thresholdPercentage)
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: - 100
thresholdPercentage
- The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
public java.lang.Integer getMinNumberOfExecutedThings()
The minimum number of things which must receive job execution notifications before the job can be aborted.
Constraints:
Range: 1 -
The minimum number of things which must receive job execution notifications before the job can be aborted.
public void setMinNumberOfExecutedThings(java.lang.Integer minNumberOfExecutedThings)
The minimum number of things which must receive job execution notifications before the job can be aborted.
Constraints:
Range: 1 -
minNumberOfExecutedThings
- The minimum number of things which must receive job execution notifications before the job can be aborted.
public AbortCriteria withMinNumberOfExecutedThings(java.lang.Integer minNumberOfExecutedThings)
The minimum number of things which must receive job execution notifications before the job can be aborted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
minNumberOfExecutedThings
- The minimum number of things which must receive job execution notifications before the job can be aborted.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.