Enum WebHook.EventType
- java.lang.Object
-
- java.lang.Enum<WebHook.EventType>
-
- com.cdancy.bitbucket.rest.domain.repository.WebHook.EventType
-
- All Implemented Interfaces:
Serializable,Comparable<WebHook.EventType>
- Enclosing class:
- WebHook
public static enum WebHook.EventType extends Enum<WebHook.EventType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebHook.EventTypefromValue(String apiName)Convert value from Api to enum.StringgetApiName()StringtoString()static WebHook.EventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WebHook.EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPO_COMENT_ADDED
public static final WebHook.EventType REPO_COMENT_ADDED
-
REPO_COMENT_EDITED
public static final WebHook.EventType REPO_COMENT_EDITED
-
REPO_COMENT_DELETED
public static final WebHook.EventType REPO_COMENT_DELETED
-
REPO_FORKED
public static final WebHook.EventType REPO_FORKED
-
REPO_CHANGED
public static final WebHook.EventType REPO_CHANGED
-
REPO_MODIFIED
public static final WebHook.EventType REPO_MODIFIED
-
PR_COMMENT_ADDED
public static final WebHook.EventType PR_COMMENT_ADDED
-
PR_COMMENT_EDITED
public static final WebHook.EventType PR_COMMENT_EDITED
-
PR_COMMENT_DELETED
public static final WebHook.EventType PR_COMMENT_DELETED
-
PR_REVIEWER_UPDATE
public static final WebHook.EventType PR_REVIEWER_UPDATE
-
PR_REVIEWER_UNAPPROVED
public static final WebHook.EventType PR_REVIEWER_UNAPPROVED
-
PR_REVIEWER_APPROVED
public static final WebHook.EventType PR_REVIEWER_APPROVED
-
PR_REVIEWER_NEEDSWORK
public static final WebHook.EventType PR_REVIEWER_NEEDSWORK
-
PR_DELETED
public static final WebHook.EventType PR_DELETED
-
PR_MERGED
public static final WebHook.EventType PR_MERGED
-
PR_MODIFIED
public static final WebHook.EventType PR_MODIFIED
-
PR_DECLINED
public static final WebHook.EventType PR_DECLINED
-
PR_OPENED
public static final WebHook.EventType PR_OPENED
-
PR_FROM_REF_UPDATED
public static final WebHook.EventType PR_FROM_REF_UPDATED
-
-
Method Detail
-
values
public static WebHook.EventType[] 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 (WebHook.EventType c : WebHook.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebHook.EventType 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
-
getApiName
public String getApiName()
-
fromValue
public static WebHook.EventType fromValue(String apiName)
Convert value from Api to enum.- Parameters:
apiName- ApiName- Returns:
- value
-
toString
public String toString()
- Overrides:
toStringin classEnum<WebHook.EventType>
-
-