@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WebhookDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Represents information about a webhook and its definition.
Constructor and Description |
---|
WebhookDefinition() |
Modifier and Type | Method and Description |
---|---|
WebhookDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getAuthentication()
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
WebhookAuthConfiguration |
getAuthenticationConfiguration()
Properties that configure the authentication applied to incoming webhook trigger requests.
|
List<WebhookFilterRule> |
getFilters()
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
String |
getName()
The name of the webhook.
|
String |
getTargetAction()
The name of the action in a pipeline you want to connect to the webhook.
|
String |
getTargetPipeline()
The name of the pipeline you want to connect to the webhook.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthentication(String authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
void |
setAuthenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
void |
setFilters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
void |
setName(String name)
The name of the webhook.
|
void |
setTargetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook.
|
void |
setTargetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
|
String |
toString()
Returns a string representation of this object.
|
WebhookDefinition |
withAuthentication(String authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
WebhookDefinition |
withAuthentication(WebhookAuthenticationType authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
WebhookDefinition |
withAuthenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
WebhookDefinition |
withFilters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
WebhookDefinition |
withFilters(WebhookFilterRule... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
WebhookDefinition |
withName(String name)
The name of the webhook.
|
WebhookDefinition |
withTargetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook.
|
WebhookDefinition |
withTargetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
|
public void setName(String name)
The name of the webhook.
name
- The name of the webhook.public String getName()
The name of the webhook.
public WebhookDefinition withName(String name)
The name of the webhook.
name
- The name of the webhook.public void setTargetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
targetPipeline
- The name of the pipeline you want to connect to the webhook.public String getTargetPipeline()
The name of the pipeline you want to connect to the webhook.
public WebhookDefinition withTargetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
targetPipeline
- The name of the pipeline you want to connect to the webhook.public void setTargetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.
targetAction
- The name of the action in a pipeline you want to connect to the webhook. The action must be from the
source (first) stage of the pipeline.public String getTargetAction()
The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.
public WebhookDefinition withTargetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.
targetAction
- The name of the action in a pipeline you want to connect to the webhook. The action must be from the
source (first) stage of the pipeline.public List<WebhookFilterRule> getFilters()
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
public void setFilters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
filters
- A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules
must pass for the request to be accepted and the pipeline started.public WebhookDefinition withFilters(WebhookFilterRule... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
or withFilters(java.util.Collection)
if you want to override
the existing values.
filters
- A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules
must pass for the request to be accepted and the pipeline started.public WebhookDefinition withFilters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
filters
- A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules
must pass for the request to be accepted and the pipeline started.public void setAuthentication(String authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
authentication
- Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
WebhookAuthenticationType
public String getAuthentication()
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
WebhookAuthenticationType
public WebhookDefinition withAuthentication(String authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
authentication
- Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
WebhookAuthenticationType
public WebhookDefinition withAuthentication(WebhookAuthenticationType authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
authentication
- Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
For information about the authentication scheme implemented by GITHUB_HMAC, see Securing your webhooks on the GitHub Developer website.
IP rejects webhooks trigger requests unless they originate from an IP address in the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED accepts all webhook trigger requests regardless of origin.
WebhookAuthenticationType
public void setAuthenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests. The required
properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken
property must be
set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.
authenticationConfiguration
- Properties that configure the authentication applied to incoming webhook trigger requests. The required
properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken
property
must be set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.public WebhookAuthConfiguration getAuthenticationConfiguration()
Properties that configure the authentication applied to incoming webhook trigger requests. The required
properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken
property must be
set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.
SecretToken
property
must be set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.public WebhookDefinition withAuthenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests. The required
properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken
property must be
set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.
authenticationConfiguration
- Properties that configure the authentication applied to incoming webhook trigger requests. The required
properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken
property
must be set. For IP, only the AllowedIPRange
property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.public String toString()
toString
in class Object
Object.toString()
public WebhookDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.