Enum Environment.ReleaseApprovalPrerequisite
- java.lang.Object
-
- java.lang.Enum<Environment.ReleaseApprovalPrerequisite>
-
- com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Environment.ReleaseApprovalPrerequisite>
- Enclosing class:
- Environment
public static enum Environment.ReleaseApprovalPrerequisite extends java.lang.Enum<Environment.ReleaseApprovalPrerequisite>
Specifies whether the release must be approved before deploying to the environment and if broken releases are allowed.- Since:
- 9.4
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVEDThe release can be deployed to the environment if there is at least one approval and the release is not marked as broken by anyone.NONEThere are no requirements.NOT_BROKENThe release can be deployed to the environment if it's not marked as broken by anyone.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Environment.ReleaseApprovalPrerequisitegetDefault()static Environment.ReleaseApprovalPrerequisitevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Environment.ReleaseApprovalPrerequisite[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Environment.ReleaseApprovalPrerequisite NONE
There are no requirements. Any release can be deployed to the environment.
-
NOT_BROKEN
public static final Environment.ReleaseApprovalPrerequisite NOT_BROKEN
The release can be deployed to the environment if it's not marked as broken by anyone. This is the default prerequisite.
-
APPROVED
public static final Environment.ReleaseApprovalPrerequisite APPROVED
The release can be deployed to the environment if there is at least one approval and the release is not marked as broken by anyone.
-
-
Method Detail
-
values
public static Environment.ReleaseApprovalPrerequisite[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Environment.ReleaseApprovalPrerequisite c : Environment.ReleaseApprovalPrerequisite.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Environment.ReleaseApprovalPrerequisite valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getDefault
public static Environment.ReleaseApprovalPrerequisite getDefault()
-
-