@Generated(value="software.amazon.awssdk:codegen") public final class EvaluateOnExit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluateOnExit.Builder,EvaluateOnExit>
Specifies an array of up to 5 conditions to be met, and an action to take (RETRY or EXIT)
if all conditions are met. If none of the EvaluateOnExit conditions in a RetryStrategy
match, then the job is retried.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EvaluateOnExit.Builder |
| Modifier and Type | Method and Description |
|---|---|
RetryAction |
action()
Specifies the action to take if all of the specified conditions (
onStatusReason,
onReason, and onExitCode) are met. |
String |
actionAsString()
Specifies the action to take if all of the specified conditions (
onStatusReason,
onReason, and onExitCode) are met. |
static EvaluateOnExit.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
onExitCode()
Contains a glob pattern to match against the decimal representation of the
ExitCode returned for a
job. |
String |
onReason()
Contains a glob pattern to match against the
Reason returned for a job. |
String |
onStatusReason()
Contains a glob pattern to match against the
StatusReason returned for a job. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends EvaluateOnExit.Builder> |
serializableBuilderClass() |
EvaluateOnExit.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String onStatusReason()
Contains a glob pattern to match against the StatusReason returned for a job. The pattern can
contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces
(including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs
to be an exact match.
StatusReason returned for a job. The pattern
can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white
spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of
the string needs to be an exact match.public final String onReason()
Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up
to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces
and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact
match.
Reason returned for a job. The pattern can
contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space
(including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the
string needs to be an exact match.public final String onExitCode()
Contains a glob pattern to match against the decimal representation of the ExitCode returned for a
job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*)
so that only the start of the string needs to be an exact match.
The string can contain up to 512 characters.
ExitCode returned
for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an
asterisk (*) so that only the start of the string needs to be an exact match.
The string can contain up to 512 characters.
public final RetryAction action()
Specifies the action to take if all of the specified conditions (onStatusReason,
onReason, and onExitCode) are met. The values aren't case sensitive.
If the service returns an enum value that is not available in the current SDK version, action will
return RetryAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
onStatusReason,
onReason, and onExitCode) are met. The values aren't case sensitive.RetryActionpublic final String actionAsString()
Specifies the action to take if all of the specified conditions (onStatusReason,
onReason, and onExitCode) are met. The values aren't case sensitive.
If the service returns an enum value that is not available in the current SDK version, action will
return RetryAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
onStatusReason,
onReason, and onExitCode) are met. The values aren't case sensitive.RetryActionpublic EvaluateOnExit.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EvaluateOnExit.Builder,EvaluateOnExit>public static EvaluateOnExit.Builder builder()
public static Class<? extends EvaluateOnExit.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.