Enum GitPullRequestEvent
java.lang.Object
java.lang.Enum<GitPullRequestEvent>
software.amazon.awscdk.services.codepipeline.GitPullRequestEvent
- All Implemented Interfaces:
Serializable
,Comparable<GitPullRequestEvent>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.886Z")
@Stability(Stable)
public enum GitPullRequestEvent
extends Enum<GitPullRequestEvent>
Event for trigger with pull request filter.
Example:
CodeStarConnectionsSourceAction sourceAction; CodeBuildAction buildAction; Pipeline.Builder.create(this, "Pipeline") .pipelineType(PipelineType.V2) .stages(List.of(StageProps.builder() .stageName("Source") .actions(List.of(sourceAction)) .build(), StageProps.builder() .stageName("Build") .actions(List.of(buildAction)) .build())) .triggers(List.of(TriggerProps.builder() .providerType(ProviderType.CODE_STAR_SOURCE_CONNECTION) .gitConfiguration(GitConfiguration.builder() .sourceAction(sourceAction) .pullRequestFilter(List.of(GitPullRequestFilter.builder() .branchesExcludes(List.of("exclude1", "exclude2")) .branchesIncludes(List.of("include1", "include2")) .events(List.of(GitPullRequestEvent.OPEN, GitPullRequestEvent.CLOSED)) .build())) .build()) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GitPullRequestEvent
Returns the enum constant of this type with the specified name.static GitPullRequestEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OPEN
OPEN. -
UPDATED
UPDATED. -
CLOSED
CLOSED.
-
-
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
-