Enum EventAction
- All Implemented Interfaces:
Serializable
,Comparable<EventAction>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.778Z")
@Stability(Stable)
public enum EventAction
extends Enum<EventAction>
The types of webhook event actions.
Example:
ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder() .owner("awslabs") .repo("aws-cdk") .webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise .webhookTriggersBatchBuild(true) // optional, default is false .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("master").andCommitMessageIs("the commit message"))) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCreating a Pull Request.Merging a Pull Request.Re-opening a previously closed Pull Request.Updating a Pull Request.A push (of a branch, or a tag) to the repository. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventAction
Returns the enum constant of this type with the specified name.static EventAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PUSH
A push (of a branch, or a tag) to the repository. -
PULL_REQUEST_CREATED
Creating a Pull Request. -
PULL_REQUEST_UPDATED
Updating a Pull Request. -
PULL_REQUEST_MERGED
Merging a Pull Request. -
PULL_REQUEST_REOPENED
Re-opening a previously closed Pull Request.Note that this event is only supported for GitHub and GitHubEnterprise sources.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-