Enum Class ReleaseApprovalPrerequisite
java.lang.Object
java.lang.Enum<ReleaseApprovalPrerequisite>
com.atlassian.bamboo.deployments.environments.ReleaseApprovalPrerequisite
- All Implemented Interfaces:
Serializable
,Comparable<ReleaseApprovalPrerequisite>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe release must be approved before it can be deployed.Approvals have no effect on the deployment.The release can be deployed only if not marked as broken. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReleaseApprovalPrerequisite
fromSpecs
(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs) static ReleaseApprovalPrerequisite
static ReleaseApprovalPrerequisite
static ReleaseApprovalPrerequisite
getInstance
(String name) @NotNull String
@NotNull String
static com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite
toSpecs
(ReleaseApprovalPrerequisite releaseApprovalPrerequisite) static String
toYaml
(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs) static ReleaseApprovalPrerequisite
Returns the enum constant of this class with the specified name.static ReleaseApprovalPrerequisite[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static List<ReleaseApprovalPrerequisite>
-
Enum Constant Details
-
NONE
Approvals have no effect on the deployment. It can be deployed with any state of approvals. -
NOT_BROKEN
The release can be deployed only if not marked as broken. -
APPROVED
The release must be approved before it can be deployed.
-
-
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
-
getReadableValue
-
getYamlSpecsValue
-
getInstance
-
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
-
toYaml
public static String toYaml(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs) -
valuesOrderedToDisplay
-