@Generated(value="software.amazon.awssdk:codegen") public final class IoTJobAbortCriteria extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IoTJobAbortCriteria.Builder,IoTJobAbortCriteria>
Contains criteria that define when and how to cancel a job.
The deployment stops if the following conditions are true:
The number of things that receive the deployment exceeds the minNumberOfExecutedThings.
The percentage of failures with type failureType exceeds the thresholdPercentage.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IoTJobAbortCriteria.Builder |
| Modifier and Type | Method and Description |
|---|---|
IoTJobAbortAction |
action()
The action to perform when the criteria are met.
|
String |
actionAsString()
The action to perform when the criteria are met.
|
static IoTJobAbortCriteria.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
IoTJobExecutionFailureType |
failureType()
The type of job deployment failure that can cancel a job.
|
String |
failureTypeAsString()
The type of job deployment failure that can cancel a job.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
minNumberOfExecutedThings()
The minimum number of things that receive the configuration before the job can cancel.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IoTJobAbortCriteria.Builder> |
serializableBuilderClass() |
Double |
thresholdPercentage()
The minimum percentage of
failureType failures that occur before the job can cancel. |
IoTJobAbortCriteria.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final IoTJobExecutionFailureType failureType()
The type of job deployment failure that can cancel a job.
If the service returns an enum value that is not available in the current SDK version, failureType will
return IoTJobExecutionFailureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from failureTypeAsString().
IoTJobExecutionFailureTypepublic final String failureTypeAsString()
The type of job deployment failure that can cancel a job.
If the service returns an enum value that is not available in the current SDK version, failureType will
return IoTJobExecutionFailureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from failureTypeAsString().
IoTJobExecutionFailureTypepublic final IoTJobAbortAction action()
The action to perform when the criteria are met.
If the service returns an enum value that is not available in the current SDK version, action will
return IoTJobAbortAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
IoTJobAbortActionpublic final String actionAsString()
The action to perform when the criteria are met.
If the service returns an enum value that is not available in the current SDK version, action will
return IoTJobAbortAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
IoTJobAbortActionpublic final Double thresholdPercentage()
The minimum percentage of failureType failures that occur before the job can cancel.
This parameter supports up to two digits after the decimal (for example, you can specify 10.9 or
10.99, but not 10.999).
failureType failures that occur before the job can cancel.
This parameter supports up to two digits after the decimal (for example, you can specify
10.9 or 10.99, but not 10.999).
public final Integer minNumberOfExecutedThings()
The minimum number of things that receive the configuration before the job can cancel.
public IoTJobAbortCriteria.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<IoTJobAbortCriteria.Builder,IoTJobAbortCriteria>public static IoTJobAbortCriteria.Builder builder()
public static Class<? extends IoTJobAbortCriteria.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.