Interface UpdateWebhookRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeBuildRequest.Builder,CopyableBuilder<UpdateWebhookRequest.Builder,,UpdateWebhookRequest> SdkBuilder<UpdateWebhookRequest.Builder,,UpdateWebhookRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateWebhookRequest
-
Method Summary
Modifier and TypeMethodDescriptionbranchFilter(String branchFilter) A regular expression used to determine which repository branches are built when a webhook is triggered.Specifies the type of build this webhook will trigger.buildType(WebhookBuildType buildType) Specifies the type of build this webhook will trigger.filterGroups(Collection<? extends Collection<WebhookFilter>> filterGroups) An array of arrays ofWebhookFilterobjects used to determine if a webhook event can trigger a build.filterGroups(Collection<WebhookFilter>... filterGroups) An array of arrays ofWebhookFilterobjects used to determine if a webhook event can trigger a build.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.projectName(String projectName) The name of the CodeBuild project.default UpdateWebhookRequest.BuilderpullRequestBuildPolicy(Consumer<PullRequestBuildPolicy.Builder> pullRequestBuildPolicy) A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests.pullRequestBuildPolicy(PullRequestBuildPolicy pullRequestBuildPolicy) A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests.rotateSecret(Boolean rotateSecret) A boolean value that specifies whether the associated GitHub repository's secret token should be updated.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
branchFilteris empty, then all branches are built.It is recommended that you use
filterGroupsinstead ofbranchFilter.- 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. IfbranchFilteris empty, then all branches are built.It is recommended that you use
filterGroupsinstead ofbranchFilter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rotateSecret
A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository,
rotateSecretis 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,rotateSecretis 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
WebhookFilterobjects used to determine if a webhook event can trigger a build. A filter group must contain at least oneEVENTWebhookFilter.- Parameters:
filterGroups- An array of arrays ofWebhookFilterobjects used to determine if a webhook event can trigger a build. A filter group must contain at least oneEVENTWebhookFilter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterGroups
An array of arrays of
WebhookFilterobjects used to determine if a webhook event can trigger a build. A filter group must contain at least oneEVENTWebhookFilter.- Parameters:
filterGroups- An array of arrays ofWebhookFilterobjects used to determine if a webhook event can trigger a build. A filter group must contain at least oneEVENTWebhookFilter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildType
Specifies the type of build this webhook will trigger.
RUNNER_BUILDKITE_BUILDis only available forNO_SOURCEsource 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_BUILDis only available forNO_SOURCEsource 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_BUILDis only available forNO_SOURCEsource 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_BUILDis only available forNO_SOURCEsource 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
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 thePullRequestBuildPolicy.Builderavoiding the need to create one manually viaPullRequestBuildPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topullRequestBuildPolicy(PullRequestBuildPolicy).- Parameters:
pullRequestBuildPolicy- a consumer that will call methods onPullRequestBuildPolicy.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateWebhookRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-