public class AwsJobAbortCriteria
extends java.lang.Object
implements java.io.Serializable
The criteria that determine when and how a job abort takes place.
Constructor and Description |
---|
AwsJobAbortCriteria() |
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(AwsJobAbortCriteriaAbortAction 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(AwsJobAbortCriteriaFailureType 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.
|
AwsJobAbortCriteria |
withAction(AwsJobAbortCriteriaAbortAction action)
The type of job action to take to initiate the job abort.
|
AwsJobAbortCriteria |
withAction(java.lang.String action)
The type of job action to take to initiate the job abort.
|
AwsJobAbortCriteria |
withFailureType(AwsJobAbortCriteriaFailureType failureType)
The type of job execution failures that can initiate a job abort.
|
AwsJobAbortCriteria |
withFailureType(java.lang.String failureType)
The type of job execution failures that can initiate a job abort.
|
AwsJobAbortCriteria |
withMinNumberOfExecutedThings(java.lang.Integer minNumberOfExecutedThings)
The minimum number of things which must receive job execution
notifications before the job can be aborted.
|
AwsJobAbortCriteria |
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.
AwsJobAbortCriteriaFailureType
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.
AwsJobAbortCriteriaFailureType
public AwsJobAbortCriteria 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.
AwsJobAbortCriteriaFailureType
public void setFailureType(AwsJobAbortCriteriaFailureType 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.
AwsJobAbortCriteriaFailureType
public AwsJobAbortCriteria withFailureType(AwsJobAbortCriteriaFailureType 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.
AwsJobAbortCriteriaFailureType
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.
AwsJobAbortCriteriaAbortAction
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.
AwsJobAbortCriteriaAbortAction
public AwsJobAbortCriteria 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.
AwsJobAbortCriteriaAbortAction
public void setAction(AwsJobAbortCriteriaAbortAction 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.
AwsJobAbortCriteriaAbortAction
public AwsJobAbortCriteria withAction(AwsJobAbortCriteriaAbortAction 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.
AwsJobAbortCriteriaAbortAction
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 AwsJobAbortCriteria 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 AwsJobAbortCriteria 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.