Interface CreateWebhookRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeBuildRequest.Builder
,CopyableBuilder<CreateWebhookRequest.Builder,
,CreateWebhookRequest> SdkBuilder<CreateWebhookRequest.Builder,
,CreateWebhookRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateWebhookRequest
-
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 ofWebhookFilter
objects used to determine which webhooks are triggered.filterGroups
(Collection<WebhookFilter>... filterGroups) An array of arrays ofWebhookFilter
objects used to determine which webhooks are triggered.manualCreation
(Boolean manualCreation) If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returnspayloadUrl
andsecret
values for the webhook.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 CreateWebhookRequest.Builder
scopeConfiguration
(Consumer<ScopeConfiguration.Builder> scopeConfiguration) The scope configuration for global or organization webhooks.scopeConfiguration
(ScopeConfiguration scopeConfiguration) The scope configuration for global or organization webhooks.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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
branchFilter
is empty, then all branches are built.It is recommended that you use
filterGroups
instead 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. IfbranchFilter
is empty, then all branches are built.It is recommended that you use
filterGroups
instead ofbranchFilter
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterGroups
CreateWebhookRequest.Builder filterGroups(Collection<? extends Collection<WebhookFilter>> filterGroups) An array of arrays of
WebhookFilter
objects used to determine which webhooks are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as itstype
.For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its filters must pass.- Parameters:
filterGroups
- An array of arrays ofWebhookFilter
objects used to determine which webhooks are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as itstype
.For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its filters must pass.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterGroups
An array of arrays of
WebhookFilter
objects used to determine which webhooks are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as itstype
.For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its filters must pass.- Parameters:
filterGroups
- An array of arrays ofWebhookFilter
objects used to determine which webhooks are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as itstype
.For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its filters must pass.- 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.
- 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:
-
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:
-
manualCreation
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl
andsecret
values for the webhook. ThepayloadUrl
andsecret
values in the output can be used to manually create a webhook within GitHub.manualCreation
is only available for GitHub webhooks.- Parameters:
manualCreation
- If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returnspayloadUrl
andsecret
values for the webhook. ThepayloadUrl
andsecret
values in the output can be used to manually create a webhook within GitHub.manualCreation
is only available for GitHub webhooks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeConfiguration
The scope configuration for global or organization webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
- Parameters:
scopeConfiguration
- The scope configuration for global or organization webhooks.Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeConfiguration
default CreateWebhookRequest.Builder scopeConfiguration(Consumer<ScopeConfiguration.Builder> scopeConfiguration) The scope configuration for global or organization webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
ScopeConfiguration.Builder
avoiding the need to create one manually viaScopeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscopeConfiguration(ScopeConfiguration)
.- Parameters:
scopeConfiguration
- a consumer that will call methods onScopeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateWebhookRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateWebhookRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-