Enum Class ReleaseApprovalPrerequisite

java.lang.Object
java.lang.Enum<ReleaseApprovalPrerequisite>
com.atlassian.bamboo.deployments.environments.ReleaseApprovalPrerequisite
All Implemented Interfaces:
Serializable, Comparable<ReleaseApprovalPrerequisite>, Constable

public enum ReleaseApprovalPrerequisite extends Enum<ReleaseApprovalPrerequisite>
Represents approval prerequisite for a release. It is used to determine if a release can be deployed to an environment with the current state of approvals.
Since:
v9.4
  • Enum Constant Details

    • NONE

      public static final ReleaseApprovalPrerequisite NONE
      Approvals have no effect on the deployment. It can be deployed with any state of approvals.
    • NOT_BROKEN

      public static final ReleaseApprovalPrerequisite NOT_BROKEN
      The release can be deployed only if not marked as broken.
    • APPROVED

      public static final ReleaseApprovalPrerequisite APPROVED
      The release must be approved before it can be deployed.
  • Method Details

    • values

      public static ReleaseApprovalPrerequisite[] 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 ReleaseApprovalPrerequisite 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
    • getReadableValue

      @NotNull public @NotNull String getReadableValue()
    • getYamlSpecsValue

      @NotNull public @NotNull String getYamlSpecsValue()
    • getInstance

      public static ReleaseApprovalPrerequisite getInstance(String name)
    • getDefault

      public static ReleaseApprovalPrerequisite getDefault()
    • fromSpecs

      public static ReleaseApprovalPrerequisite fromSpecs(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs)
    • toSpecs

      public static com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite toSpecs(ReleaseApprovalPrerequisite releaseApprovalPrerequisite)
    • fromYaml

      public static ReleaseApprovalPrerequisite fromYaml(String input)
    • toYaml

      public static String toYaml(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs)
    • valuesOrderedToDisplay

      public static List<ReleaseApprovalPrerequisite> valuesOrderedToDisplay()