@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EvaluateOnExit extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
EvaluateOnExit() |
Modifier and Type | Method and Description |
---|---|
EvaluateOnExit |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
Specifies the action to take if all of the specified conditions (
onStatusReason ,
onReason , and onExitCode ) are met. |
String |
getOnExitCode()
Contains a glob pattern to match against the decimal representation of the
ExitCode returned for a
job. |
String |
getOnReason()
Contains a glob pattern to match against the
Reason returned for a job. |
String |
getOnStatusReason()
Contains a glob pattern to match against the
StatusReason returned for a job. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
Specifies the action to take if all of the specified conditions (
onStatusReason ,
onReason , and onExitCode ) are met. |
void |
setOnExitCode(String onExitCode)
Contains a glob pattern to match against the decimal representation of the
ExitCode returned for a
job. |
void |
setOnReason(String onReason)
Contains a glob pattern to match against the
Reason returned for a job. |
void |
setOnStatusReason(String onStatusReason)
Contains a glob pattern to match against the
StatusReason returned for a job. |
String |
toString()
Returns a string representation of this object.
|
EvaluateOnExit |
withAction(RetryAction action)
Specifies the action to take if all of the specified conditions (
onStatusReason ,
onReason , and onExitCode ) are met. |
EvaluateOnExit |
withAction(String action)
Specifies the action to take if all of the specified conditions (
onStatusReason ,
onReason , and onExitCode ) are met. |
EvaluateOnExit |
withOnExitCode(String onExitCode)
Contains a glob pattern to match against the decimal representation of the
ExitCode returned for a
job. |
EvaluateOnExit |
withOnReason(String onReason)
Contains a glob pattern to match against the
Reason returned for a job. |
EvaluateOnExit |
withOnStatusReason(String onStatusReason)
Contains a glob pattern to match against the
StatusReason returned for a job. |
public void setOnStatusReason(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.
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.public String getOnStatusReason()
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 EvaluateOnExit withOnStatusReason(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.
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.public void setOnReason(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.
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.public String getOnReason()
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 EvaluateOnExit withOnReason(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.
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.public void setOnExitCode(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.
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.
public String getOnExitCode()
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 EvaluateOnExit withOnExitCode(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.
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.
public void setAction(String action)
Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.
action
- Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.RetryAction
public String getAction()
Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.
onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.RetryAction
public EvaluateOnExit withAction(String action)
Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.
action
- Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.RetryAction
public EvaluateOnExit withAction(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.
action
- Specifies the action to take if all of the specified conditions (onStatusReason
,
onReason
, and onExitCode
) are met. The values aren't case sensitive.RetryAction
public String toString()
toString
in class Object
Object.toString()
public EvaluateOnExit clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.