Interface UpdateWebhookRequest.Builder

  • Method Details

    • projectName

      UpdateWebhookRequest.Builder projectName(String projectName)

      The name of the CodeBuild project.

      Parameters:
      projectName - The name of the CodeBuild project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branchFilter

      UpdateWebhookRequest.Builder branchFilter(String branchFilter)

      A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

      It is recommended that you use filterGroups instead of branchFilter.

      Parameters:
      branchFilter - A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

      It is recommended that you use filterGroups instead of branchFilter.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rotateSecret

      UpdateWebhookRequest.Builder rotateSecret(Boolean rotateSecret)

      A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

      Parameters:
      rotateSecret - A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterGroups

      UpdateWebhookRequest.Builder filterGroups(Collection<? extends Collection<WebhookFilter>> filterGroups)

      An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

      Parameters:
      filterGroups - An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterGroups

      UpdateWebhookRequest.Builder filterGroups(Collection<WebhookFilter>... filterGroups)

      An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

      Parameters:
      filterGroups - An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buildType

      UpdateWebhookRequest.Builder buildType(String buildType)

      Specifies the type of build this webhook will trigger.

      RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

      Parameters:
      buildType - Specifies the type of build this webhook will trigger.

      RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • buildType

      Specifies the type of build this webhook will trigger.

      RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

      Parameters:
      buildType - Specifies the type of build this webhook will trigger.

      RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pullRequestBuildPolicy

      UpdateWebhookRequest.Builder pullRequestBuildPolicy(PullRequestBuildPolicy pullRequestBuildPolicy)

      A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

      Parameters:
      pullRequestBuildPolicy - A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pullRequestBuildPolicy

      default UpdateWebhookRequest.Builder pullRequestBuildPolicy(Consumer<PullRequestBuildPolicy.Builder> pullRequestBuildPolicy)

      A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

      This is a convenience method that creates an instance of the PullRequestBuildPolicy.Builder avoiding the need to create one manually via PullRequestBuildPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to pullRequestBuildPolicy(PullRequestBuildPolicy).

      Parameters:
      pullRequestBuildPolicy - a consumer that will call methods on PullRequestBuildPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      UpdateWebhookRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.