Package org.gitlab4j.api.models
Enum BuildStatus
- java.lang.Object
-
- java.lang.Enum<BuildStatus>
-
- org.gitlab4j.api.models.BuildStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BuildStatus>
public enum BuildStatus extends java.lang.Enum<BuildStatus>
Enum for the various Build status values.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuildStatus
forValue(java.lang.String value)
java.lang.String
toString()
java.lang.String
toValue()
static BuildStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BuildStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final BuildStatus CREATED
-
RUNNING
public static final BuildStatus RUNNING
-
PENDING
public static final BuildStatus PENDING
-
SUCCESS
public static final BuildStatus SUCCESS
-
FAILED
public static final BuildStatus FAILED
-
CANCELED
public static final BuildStatus CANCELED
-
SKIPPED
public static final BuildStatus SKIPPED
-
MANUAL
public static final BuildStatus MANUAL
-
-
Method Detail
-
values
public static BuildStatus[] 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 (BuildStatus c : BuildStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuildStatus 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
-
forValue
public static BuildStatus forValue(java.lang.String value)
-
toValue
public java.lang.String toValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BuildStatus>
-
-