Class GitPullRequestFilter.Builder

java.lang.Object
software.amazon.awscdk.services.codepipeline.GitPullRequestFilter.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<GitPullRequestFilter>
Enclosing interface:
GitPullRequestFilter

@Stability(Stable) public static final class GitPullRequestFilter.Builder extends Object implements software.amazon.jsii.Builder<GitPullRequestFilter>
A builder for GitPullRequestFilter
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • branchesExcludes

      @Stability(Stable) public GitPullRequestFilter.Builder branchesExcludes(List<String> branchesExcludes)
      Parameters:
      branchesExcludes - The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline. You can filter with glob patterns. The branchesExcludes takes priority over the branchesIncludes.

      Maximum length of this array is 8.

      Returns:
      this
    • branchesIncludes

      @Stability(Stable) public GitPullRequestFilter.Builder branchesIncludes(List<String> branchesIncludes)
      Parameters:
      branchesIncludes - The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline. You can filter with glob patterns. The branchesExcludes takes priority over the branchesIncludes.

      Maximum length of this array is 8.

      Returns:
      this
    • events

      @Stability(Stable) public GitPullRequestFilter.Builder events(List<? extends GitPullRequestEvent> events)
      Parameters:
      events - The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
      Returns:
      this
    • filePathsExcludes

      @Stability(Stable) public GitPullRequestFilter.Builder filePathsExcludes(List<String> filePathsExcludes)
      Parameters:
      filePathsExcludes - The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline. You can filter with glob patterns. The filePathsExcludes takes priority over the filePathsIncludes.

      Maximum length of this array is 8.

      Returns:
      this
    • filePathsIncludes

      @Stability(Stable) public GitPullRequestFilter.Builder filePathsIncludes(List<String> filePathsIncludes)
      Parameters:
      filePathsIncludes - The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline. You can filter with glob patterns. The filePathsExcludes takes priority over the filePathsIncludes.

      Maximum length of this array is 8.

      Returns:
      this
    • build

      @Stability(Stable) public GitPullRequestFilter build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<GitPullRequestFilter>
      Returns:
      a new instance of GitPullRequestFilter
      Throws:
      NullPointerException - if any required attribute was not provided