@Generated(value="software.amazon.awssdk:codegen") public final class Webhook extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Webhook.Builder,Webhook>
Information about a webhook that connects repository events to a build project in AWS CodeBuild.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Webhook.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
branchFilter()
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
static Webhook.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastModifiedSecret()
A timestamp that indicates the last time a repository's secret token was modified.
|
String |
payloadUrl()
The AWS CodeBuild endpoint where webhook events are sent.
|
List<SdkField<?>> |
sdkFields() |
String |
secret()
The secret token of the associated repository.
|
static Class<? extends Webhook.Builder> |
serializableBuilderClass() |
Webhook.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
url()
The URL to the webhook.
|
copypublic String url()
The URL to the webhook.
public String payloadUrl()
The AWS CodeBuild endpoint where webhook events are sent.
public String secret()
The secret token of the associated repository.
A Bitbucket webhook does not support secret.
A Bitbucket webhook does not support secret.
public 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.
branchFilter is
empty, then all branches are built.public Instant lastModifiedSecret()
A timestamp that indicates the last time a repository's secret token was modified.
public Webhook.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Webhook.Builder,Webhook>public static Webhook.Builder builder()
public static Class<? extends Webhook.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.