@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Webhook extends Object implements Serializable, Cloneable, StructuredPojo
Information about a webhook in GitHub 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 branches in a repository are built when a webhook is triggered.
|
Date |
getLastModifiedSecret()
A timestamp indicating the last time a repository's secret token was modified.
|
String |
getPayloadUrl()
The 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 branches in a repository are built when a webhook is triggered.
|
void |
setLastModifiedSecret(Date lastModifiedSecret)
A timestamp indicating the last time a repository's secret token was modified.
|
void |
setPayloadUrl(String payloadUrl)
The 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; useful for testing and debugging.
|
Webhook |
withBranchFilter(String branchFilter)
A regular expression used to determine which branches in a repository are built when a webhook is triggered.
|
Webhook |
withLastModifiedSecret(Date lastModifiedSecret)
A timestamp indicating the last time a repository's secret token was modified.
|
Webhook |
withPayloadUrl(String payloadUrl)
The 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 CodeBuild endpoint where webhook events are sent.
payloadUrl
- The CodeBuild endpoint where webhook events are sent.public String getPayloadUrl()
The CodeBuild endpoint where webhook events are sent.
public Webhook withPayloadUrl(String payloadUrl)
The CodeBuild endpoint where webhook events are sent.
payloadUrl
- The CodeBuild endpoint where webhook events are sent.public void setSecret(String secret)
The secret token of the associated repository.
secret
- The secret token of the associated repository.public String getSecret()
The secret token of the associated repository.
public Webhook withSecret(String secret)
The secret token of the associated repository.
secret
- The secret token of the associated repository.public void setBranchFilter(String branchFilter)
A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.
branchFilter
- A regular expression used to determine which branches in a repository are built when a webhook is
triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match,
then it is not. If branchFilter is empty, then all branches are built.public String getBranchFilter()
A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.
public Webhook withBranchFilter(String branchFilter)
A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.
branchFilter
- A regular expression used to determine which branches in a repository are built when a webhook is
triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match,
then it is not. If branchFilter is empty, then all branches are built.public void setLastModifiedSecret(Date lastModifiedSecret)
A timestamp indicating the last time a repository's secret token was modified.
lastModifiedSecret
- A timestamp indicating the last time a repository's secret token was modified.public Date getLastModifiedSecret()
A timestamp indicating the last time a repository's secret token was modified.
public Webhook withLastModifiedSecret(Date lastModifiedSecret)
A timestamp indicating the last time a repository's secret token was modified.
lastModifiedSecret
- A timestamp indicating 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.