Interface UpdateWebhookRequest.Builder

    • Method Detail

      • 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.

        Parameters:
        buildType - Specifies the type of build this webhook will trigger.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        WebhookBuildType, WebhookBuildType