Interface Webhook.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Webhook.Builder,,Webhook> SdkBuilder<Webhook.Builder,,Webhook> SdkPojo
- Enclosing class:
Webhook
-
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 which webhooks are triggered.filterGroups(Collection<WebhookFilter>... filterGroups) An array of arrays ofWebhookFilterobjects used to determine which webhooks are triggered.lastModifiedSecret(Instant lastModifiedSecret) A timestamp that indicates the last time a repository's secret token was modified.manualCreation(Boolean manualCreation) If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returnspayloadUrlandsecretvalues for the webhook.payloadUrl(String payloadUrl) The CodeBuild endpoint where webhook events are sent.default Webhook.BuilderscopeConfiguration(Consumer<ScopeConfiguration.Builder> scopeConfiguration) The scope configuration for global or organization webhooks.scopeConfiguration(ScopeConfiguration scopeConfiguration) The scope configuration for global or organization webhooks.The secret token of the associated repository.The URL to the webhook.Methods 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, sdkFields
-
Method Details
-
url
The URL to the webhook.
- Parameters:
url- The URL to the webhook.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payloadUrl
The CodeBuild endpoint where webhook events are sent.
- Parameters:
payloadUrl- The CodeBuild endpoint where webhook events are sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secret
The secret token of the associated repository.
A Bitbucket webhook does not support
secret.- Parameters:
secret- The secret token of the associated repository.A Bitbucket webhook does not support
secret.- 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.
-
filterGroups
An array of arrays of
WebhookFilterobjects used to determine which webhooks are triggered. At least oneWebhookFilterin the array must specifyEVENTas itstype.For a build to be triggered, at least one filter group in the
filterGroupsarray must pass. For a filter group to pass, each of its filters must pass.- Parameters:
filterGroups- An array of arrays ofWebhookFilterobjects used to determine which webhooks are triggered. At least oneWebhookFilterin the array must specifyEVENTas itstype.For a build to be triggered, at least one filter group in the
filterGroupsarray 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
WebhookFilterobjects used to determine which webhooks are triggered. At least oneWebhookFilterin the array must specifyEVENTas itstype.For a build to be triggered, at least one filter group in the
filterGroupsarray must pass. For a filter group to pass, each of its filters must pass.- Parameters:
filterGroups- An array of arrays ofWebhookFilterobjects used to determine which webhooks are triggered. At least oneWebhookFilterin the array must specifyEVENTas itstype.For a build to be triggered, at least one filter group in the
filterGroupsarray 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
payloadUrlandsecretvalues for the webhook. ThepayloadUrlandsecretvalues 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 returnspayloadUrlandsecretvalues for the webhook. ThepayloadUrlandsecretvalues 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.
-
lastModifiedSecret
A timestamp that indicates the last time a repository's secret token was modified.
- Parameters:
lastModifiedSecret- A timestamp that indicates the last time a repository's secret token was modified.- 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
The scope configuration for global or organization webhooks.
This is a convenience method that creates an instance of theGlobal or organization webhooks are only available for GitHub and Github Enterprise webhooks.
ScopeConfiguration.Builderavoiding the need to create one manually viaScopeConfiguration.builder().When the
Consumercompletes,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:
-