@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 |
getPayloadUrl()
This is the server endpoint that will receive the webhook payload.
|
String |
getSecret()
Use this secret while creating a webhook in GitHub for Enterprise.
|
String |
getUrl()
The URL to the webhook.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPayloadUrl(String payloadUrl)
This is the server endpoint that will receive the webhook payload.
|
void |
setSecret(String secret)
Use this secret while creating a webhook in GitHub for Enterprise.
|
void |
setUrl(String url)
The URL to the webhook.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Webhook |
withPayloadUrl(String payloadUrl)
This is the server endpoint that will receive the webhook payload.
|
Webhook |
withSecret(String secret)
Use this secret while creating a webhook in GitHub for Enterprise.
|
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)
This is the server endpoint that will receive the webhook payload.
payloadUrl
- This is the server endpoint that will receive the webhook payload.public String getPayloadUrl()
This is the server endpoint that will receive the webhook payload.
public Webhook withPayloadUrl(String payloadUrl)
This is the server endpoint that will receive the webhook payload.
payloadUrl
- This is the server endpoint that will receive the webhook payload.public void setSecret(String secret)
Use this secret while creating a webhook in GitHub for Enterprise. The secret allows webhook requests sent by GitHub for Enterprise to be authenticated by AWS CodeBuild.
secret
- Use this secret while creating a webhook in GitHub for Enterprise. The secret allows webhook requests sent
by GitHub for Enterprise to be authenticated by AWS CodeBuild.public String getSecret()
Use this secret while creating a webhook in GitHub for Enterprise. The secret allows webhook requests sent by GitHub for Enterprise to be authenticated by AWS CodeBuild.
public Webhook withSecret(String secret)
Use this secret while creating a webhook in GitHub for Enterprise. The secret allows webhook requests sent by GitHub for Enterprise to be authenticated by AWS CodeBuild.
secret
- Use this secret while creating a webhook in GitHub for Enterprise. The secret allows webhook requests sent
by GitHub for Enterprise to be authenticated by AWS CodeBuild.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.