public class AbortCriteria extends Object implements Serializable
Details of abort criteria to define rules to abort the job.
| Constructor and Description |
|---|
AbortCriteria() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAction()
The type of abort action to initiate a job abort.
|
String |
getFailureType()
The type of job execution failure to define a rule to initiate a job
abort.
|
Integer |
getMinNumberOfExecutedThings()
Minimum number of executed things before evaluating an abort rule.
|
Double |
getThresholdPercentage()
The threshold as a percentage of the total number of executed things that
will initiate a job abort.
|
int |
hashCode() |
void |
setAction(AbortAction action)
The type of abort action to initiate a job abort.
|
void |
setAction(String action)
The type of abort action to initiate a job abort.
|
void |
setFailureType(JobExecutionFailureType failureType)
The type of job execution failure to define a rule to initiate a job
abort.
|
void |
setFailureType(String failureType)
The type of job execution failure to define a rule to initiate a job
abort.
|
void |
setMinNumberOfExecutedThings(Integer minNumberOfExecutedThings)
Minimum number of executed things before evaluating an abort rule.
|
void |
setThresholdPercentage(Double thresholdPercentage)
The threshold as a percentage of the total number of executed things that
will initiate a job abort.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AbortCriteria |
withAction(AbortAction action)
The type of abort action to initiate a job abort.
|
AbortCriteria |
withAction(String action)
The type of abort action to initiate a job abort.
|
AbortCriteria |
withFailureType(JobExecutionFailureType failureType)
The type of job execution failure to define a rule to initiate a job
abort.
|
AbortCriteria |
withFailureType(String failureType)
The type of job execution failure to define a rule to initiate a job
abort.
|
AbortCriteria |
withMinNumberOfExecutedThings(Integer minNumberOfExecutedThings)
Minimum number of executed things before evaluating an abort rule.
|
AbortCriteria |
withThresholdPercentage(Double thresholdPercentage)
The threshold as a percentage of the total number of executed things that
will initiate a job abort.
|
public String getFailureType()
The type of job execution failure to define a rule to initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
The type of job execution failure to define a rule to initiate a job abort.
JobExecutionFailureTypepublic void setFailureType(String failureType)
The type of job execution failure to define a rule to initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType - The type of job execution failure to define a rule to initiate a job abort.
JobExecutionFailureTypepublic AbortCriteria withFailureType(String failureType)
The type of job execution failure to define a rule to 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 failure to define a rule to initiate a job abort.
JobExecutionFailureTypepublic void setFailureType(JobExecutionFailureType failureType)
The type of job execution failure to define a rule to initiate a job abort.
Constraints:
Allowed Values: FAILED, REJECTED, TIMED_OUT, ALL
failureType - The type of job execution failure to define a rule to initiate a job abort.
JobExecutionFailureTypepublic AbortCriteria withFailureType(JobExecutionFailureType failureType)
The type of job execution failure to define a rule to 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 failure to define a rule to initiate a job abort.
JobExecutionFailureTypepublic String getAction()
The type of abort action to initiate a job abort.
Constraints:
Allowed Values: CANCEL
The type of abort action to initiate a job abort.
AbortActionpublic void setAction(String action)
The type of abort action to initiate a job abort.
Constraints:
Allowed Values: CANCEL
action - The type of abort action to initiate a job abort.
AbortActionpublic AbortCriteria withAction(String action)
The type of abort action to initiate a job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CANCEL
action - The type of abort action to initiate a job abort.
AbortActionpublic void setAction(AbortAction action)
The type of abort action to initiate a job abort.
Constraints:
Allowed Values: CANCEL
action - The type of abort action to initiate a job abort.
AbortActionpublic AbortCriteria withAction(AbortAction action)
The type of abort action to initiate a job abort.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CANCEL
action - The type of abort action to initiate a job abort.
AbortActionpublic Double getThresholdPercentage()
The threshold as a percentage of the total number of executed things that will initiate a 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 threshold as a percentage of the total number of executed things that will initiate a 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(Double thresholdPercentage)
The threshold as a percentage of the total number of executed things that will initiate a 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 threshold as a percentage of the total number of executed things that will initiate a 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(Double thresholdPercentage)
The threshold as a percentage of the total number of executed things that will initiate a 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 threshold as a percentage of the total number of executed things that will initiate a job abort.
AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
public Integer getMinNumberOfExecutedThings()
Minimum number of executed things before evaluating an abort rule.
Constraints:
Range: 1 -
Minimum number of executed things before evaluating an abort rule.
public void setMinNumberOfExecutedThings(Integer minNumberOfExecutedThings)
Minimum number of executed things before evaluating an abort rule.
Constraints:
Range: 1 -
minNumberOfExecutedThings - Minimum number of executed things before evaluating an abort rule.
public AbortCriteria withMinNumberOfExecutedThings(Integer minNumberOfExecutedThings)
Minimum number of executed things before evaluating an abort rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
minNumberOfExecutedThings - Minimum number of executed things before evaluating an abort rule.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.