Class IoTJobAbortCriteria
- java.lang.Object
-
- software.amazon.awssdk.services.greengrassv2.model.IoTJobAbortCriteria
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IoTJobAbortCriteria.Builder,IoTJobAbortCriteria>
@Generated("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
failureTypeexceeds thethresholdPercentage.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIoTJobAbortCriteria.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IoTJobAbortActionaction()The action to perform when the criteria are met.StringactionAsString()The action to perform when the criteria are met.static IoTJobAbortCriteria.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IoTJobExecutionFailureTypefailureType()The type of job deployment failure that can cancel a job.StringfailureTypeAsString()The type of job deployment failure that can cancel a job.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerminNumberOfExecutedThings()The minimum number of things that receive the configuration before the job can cancel.List<SdkField<?>>sdkFields()static Class<? extends IoTJobAbortCriteria.Builder>serializableBuilderClass()DoublethresholdPercentage()The minimum percentage offailureTypefailures that occur before the job can cancel.IoTJobAbortCriteria.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
failureType
public 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,
failureTypewill returnIoTJobExecutionFailureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureTypeAsString().- Returns:
- The type of job deployment failure that can cancel a job.
- See Also:
IoTJobExecutionFailureType
-
failureTypeAsString
public 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,
failureTypewill returnIoTJobExecutionFailureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureTypeAsString().- Returns:
- The type of job deployment failure that can cancel a job.
- See Also:
IoTJobExecutionFailureType
-
action
public 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,
actionwill returnIoTJobAbortAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action to perform when the criteria are met.
- See Also:
IoTJobAbortAction
-
actionAsString
public 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,
actionwill returnIoTJobAbortAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action to perform when the criteria are met.
- See Also:
IoTJobAbortAction
-
thresholdPercentage
public final Double thresholdPercentage()
The minimum percentage of
failureTypefailures that occur before the job can cancel.This parameter supports up to two digits after the decimal (for example, you can specify
10.9or10.99, but not10.999).- Returns:
- The minimum percentage of
failureTypefailures that occur before the job can cancel.This parameter supports up to two digits after the decimal (for example, you can specify
10.9or10.99, but not10.999).
-
minNumberOfExecutedThings
public final Integer minNumberOfExecutedThings()
The minimum number of things that receive the configuration before the job can cancel.
- Returns:
- The minimum number of things that receive the configuration before the job can cancel.
-
toBuilder
public IoTJobAbortCriteria.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IoTJobAbortCriteria.Builder,IoTJobAbortCriteria>
-
builder
public static IoTJobAbortCriteria.Builder builder()
-
serializableBuilderClass
public static Class<? extends IoTJobAbortCriteria.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-