Enum WebhookRegistration
- java.lang.Object
-
- java.lang.Enum<WebhookRegistration>
-
- com.cloudbees.jenkins.plugins.bitbucket.WebhookRegistration
-
- All Implemented Interfaces:
Serializable
,Comparable<WebhookRegistration>
public enum WebhookRegistration extends Enum<WebhookRegistration>
Enumeration of the different webhook registration modes.- Since:
- 2.2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebhookRegistration
valueOf(String name)
Returns the enum constant of this type with the specified name.static WebhookRegistration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLE
public static final WebhookRegistration DISABLE
Disable webhook registration.
-
SYSTEM
public static final WebhookRegistration SYSTEM
Use the global system configuration for webhook registration. (If theBitbucketEndpointConfiguration
does not have webhook registration configured then this will be the same asDISABLE
)
-
ITEM
public static final WebhookRegistration ITEM
Use the item scoped credentials to register the webhook.
-
-
Method Detail
-
values
public static WebhookRegistration[] 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 (WebhookRegistration c : WebhookRegistration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebhookRegistration 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
-
-