Enum ReleaseApprovalPrerequisite
- java.lang.Object
-
- java.lang.Enum<ReleaseApprovalPrerequisite>
-
- com.atlassian.bamboo.deployments.environments.ReleaseApprovalPrerequisite
-
- All Implemented Interfaces:
Serializable
,Comparable<ReleaseApprovalPrerequisite>
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 Summary
Enum Constants Enum Constant Description APPROVED
The release must be approved before it can be deployed.NONE
Approvals have no effect on the deployment.NOT_BROKEN
The release can be deployed only if not marked as broken.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReleaseApprovalPrerequisite
fromSpecs(com.atlassian.bamboo.specs.api.builders.deployment.Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisiteSpecs)
static ReleaseApprovalPrerequisite
fromYaml(String input)
static ReleaseApprovalPrerequisite
getDefault()
static ReleaseApprovalPrerequisite
getInstance(String name)
@NotNull String
getReadableValue()
@NotNull String
getYamlSpecsValue()
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
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReleaseApprovalPrerequisite[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static List<ReleaseApprovalPrerequisite>
valuesOrderedToDisplay()
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static 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 (ReleaseApprovalPrerequisite c : 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 ReleaseApprovalPrerequisite valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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()
-
-