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