@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Webhook extends Object implements Serializable, Cloneable, StructuredPojo
Information about a webhook that connects repository events to a build project in AWS CodeBuild.
Constructor and Description |
---|
Webhook() |
Modifier and Type | Method and Description |
---|---|
Webhook |
clone() |
boolean |
equals(Object obj) |
String |
getBranchFilter()
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
String |
getBuildType()
Specifies the type of build this webhook will trigger.
|
List<List<WebhookFilter>> |
getFilterGroups()
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
Date |
getLastModifiedSecret()
A timestamp that indicates the last time a repository's secret token was modified.
|
String |
getPayloadUrl()
The AWS CodeBuild endpoint where webhook events are sent.
|
String |
getSecret()
The secret token of the associated repository.
|
String |
getUrl()
The URL to the webhook.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBranchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
void |
setBuildType(String buildType)
Specifies the type of build this webhook will trigger.
|
void |
setFilterGroups(Collection<List<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
void |
setLastModifiedSecret(Date lastModifiedSecret)
A timestamp that indicates the last time a repository's secret token was modified.
|
void |
setPayloadUrl(String payloadUrl)
The AWS CodeBuild endpoint where webhook events are sent.
|
void |
setSecret(String secret)
The secret token of the associated repository.
|
void |
setUrl(String url)
The URL to the webhook.
|
String |
toString()
Returns a string representation of this object.
|
Webhook |
withBranchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
Webhook |
withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
|
Webhook |
withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
|
Webhook |
withFilterGroups(Collection<List<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
Webhook |
withFilterGroups(List<WebhookFilter>... filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
Webhook |
withLastModifiedSecret(Date lastModifiedSecret)
A timestamp that indicates the last time a repository's secret token was modified.
|
Webhook |
withPayloadUrl(String payloadUrl)
The AWS CodeBuild endpoint where webhook events are sent.
|
Webhook |
withSecret(String secret)
The secret token of the associated repository.
|
Webhook |
withUrl(String url)
The URL to the webhook.
|
public void setUrl(String url)
The URL to the webhook.
url
- The URL to the webhook.public String getUrl()
The URL to the webhook.
public Webhook withUrl(String url)
The URL to the webhook.
url
- The URL to the webhook.public void setPayloadUrl(String payloadUrl)
The AWS CodeBuild endpoint where webhook events are sent.
payloadUrl
- The AWS CodeBuild endpoint where webhook events are sent.public String getPayloadUrl()
The AWS CodeBuild endpoint where webhook events are sent.
public Webhook withPayloadUrl(String payloadUrl)
The AWS CodeBuild endpoint where webhook events are sent.
payloadUrl
- The AWS CodeBuild endpoint where webhook events are sent.public void setSecret(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
.
public String getSecret()
The secret token of the associated repository.
A Bitbucket webhook does not support secret
.
A Bitbucket webhook does not support secret
.
public Webhook withSecret(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
.
public void setBranchFilter(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
.
public String getBranchFilter()
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
is
empty, then all branches are built.
It is recommended that you use filterGroups
instead of branchFilter
.
public Webhook withBranchFilter(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
.
public List<List<WebhookFilter>> getFilterGroups()
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.
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.
public void setFilterGroups(Collection<List<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.
public Webhook withFilterGroups(List<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.
NOTE: This method appends the values to the existing list (if any). Use
setFilterGroups(java.util.Collection)
or withFilterGroups(java.util.Collection)
if you want to
override the existing values.
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.
public Webhook withFilterGroups(Collection<List<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.
public void setBuildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType
- Specifies the type of build this webhook will trigger.WebhookBuildType
public String getBuildType()
Specifies the type of build this webhook will trigger.
WebhookBuildType
public Webhook withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType
- Specifies the type of build this webhook will trigger.WebhookBuildType
public Webhook withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
buildType
- Specifies the type of build this webhook will trigger.WebhookBuildType
public void setLastModifiedSecret(Date 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.public Date getLastModifiedSecret()
A timestamp that indicates the last time a repository's secret token was modified.
public Webhook withLastModifiedSecret(Date 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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.