Enum Class ActionState
- All Implemented Interfaces:
Serializable
,Comparable<ActionState>
,Constable
The final state of the request to perform an action.
- Since:
- 7.8
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn error occurred trying to perform the action, such as a connection error or the build server being down.The action failed to perform.The action was performed successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ActionState>
fromString
(String value) static ActionState
Returns the enum constant of this class with the specified name.static ActionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
An error occurred trying to perform the action, such as a connection error or the build server being down. More detail should be provided in theActionResult.getMessage()
about why it failed. -
FAILED
The action failed to perform. This may be because of a bad request, or a server error. More detail should be provided in theActionResult.getMessage()
about why it failed. -
SUCCESSFUL
The action was performed successfully.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-