Enum Class ActionState

java.lang.Object
java.lang.Enum<ActionState>
com.atlassian.bitbucket.build.server.operations.ActionState
All Implemented Interfaces:
Serializable, Comparable<ActionState>, Constable

public enum ActionState extends Enum<ActionState>
The final state of the request to perform an action.
Since:
7.8
  • Enum Constant Details

    • ERROR

      public static final ActionState 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 the ActionResult.getMessage() about why it failed.
    • FAILED

      public static final ActionState FAILED
      The action failed to perform. This may be because of a bad request, or a server error. More detail should be provided in the ActionResult.getMessage() about why it failed.
    • SUCCESSFUL

      public static final ActionState SUCCESSFUL
      The action was performed successfully.
  • Method Details

    • values

      public static ActionState[] 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

      public static ActionState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      @Nonnull public static Optional<ActionState> fromString(String value)