public static interface Webhook.Builder extends SdkPojo, CopyableBuilder<Webhook.Builder,Webhook>
| Modifier and Type | Method and Description |
|---|---|
Webhook.Builder |
branchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
Webhook.Builder |
buildType(String buildType)
Specifies the type of build this webhook will trigger.
|
Webhook.Builder |
buildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
|
Webhook.Builder |
filterGroups(Collection<? extends Collection<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
Webhook.Builder |
filterGroups(Collection<WebhookFilter>... filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
Webhook.Builder |
lastModifiedSecret(Instant lastModifiedSecret)
A timestamp that indicates the last time a repository's secret token was modified.
|
Webhook.Builder |
payloadUrl(String payloadUrl)
The CodeBuild endpoint where webhook events are sent.
|
Webhook.Builder |
secret(String secret)
The secret token of the associated repository.
|
Webhook.Builder |
url(String url)
The URL to the webhook.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildWebhook.Builder url(String url)
The URL to the webhook.
url - The URL to the webhook.Webhook.Builder payloadUrl(String payloadUrl)
The CodeBuild endpoint where webhook events are sent.
payloadUrl - The CodeBuild endpoint where webhook events are sent.Webhook.Builder secret(String secret)
The secret token of the associated repository.
A Bitbucket webhook does not support secret.
secret - The secret token of the associated repository.
A Bitbucket webhook does not support secret.
Webhook.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.
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.
Webhook.Builder filterGroups(Collection<? extends Collection<WebhookFilter>> filterGroups)
An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At
least one WebhookFilter in the array must specify EVENT as its type.
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.
filterGroups - An array of arrays of WebhookFilter objects used to determine which webhooks are
triggered. At least one WebhookFilter in the array must specify EVENT as its
type.
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.
Webhook.Builder filterGroups(Collection<WebhookFilter>... filterGroups)
An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At
least one WebhookFilter in the array must specify EVENT as its type.
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.
filterGroups - An array of arrays of WebhookFilter objects used to determine which webhooks are
triggered. At least one WebhookFilter in the array must specify EVENT as its
type.
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.
Webhook.Builder buildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildType,
WebhookBuildTypeWebhook.Builder buildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildType,
WebhookBuildTypeWebhook.Builder lastModifiedSecret(Instant lastModifiedSecret)
A timestamp that indicates the last time a repository's secret token was modified.
lastModifiedSecret - A timestamp that indicates the last time a repository's secret token was modified.Copyright © 2023. All rights reserved.