Enum DockerHubCallbackPayload.States
- java.lang.Object
-
- java.lang.Enum<DockerHubCallbackPayload.States>
-
- org.jenkinsci.plugins.registry.notification.webhook.dockerhub.DockerHubCallbackPayload.States
-
- All Implemented Interfaces:
Serializable
,Comparable<DockerHubCallbackPayload.States>
- Enclosing class:
- DockerHubCallbackPayload
public static enum DockerHubCallbackPayload.States extends Enum<DockerHubCallbackPayload.States>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DockerHubCallbackPayload.States
from(Result result)
static DockerHubCallbackPayload.States
valueOf(String name)
Returns the enum constant of this type with the specified name.static DockerHubCallbackPayload.States[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
success
public static final DockerHubCallbackPayload.States success
-
failure
public static final DockerHubCallbackPayload.States failure
-
error
public static final DockerHubCallbackPayload.States error
-
-
Method Detail
-
values
public static DockerHubCallbackPayload.States[] 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 (DockerHubCallbackPayload.States c : DockerHubCallbackPayload.States.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DockerHubCallbackPayload.States 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
-
from
public static DockerHubCallbackPayload.States from(@NonNull Result result)
-
-