public class WebhookCreateParameters extends Object
Constructor and Description |
---|
WebhookCreateParameters() |
Modifier and Type | Method and Description |
---|---|
List<WebhookAction> |
actions()
Get the list of actions that trigger the webhook to post notifications.
|
Map<String,String> |
customHeaders()
Get custom headers that will be added to the webhook notifications.
|
String |
location()
Get the location of the webhook.
|
String |
scope()
Get the scope of repositories where the event can be triggered.
|
String |
serviceUri()
Get the service URI for the webhook to post notifications.
|
WebhookStatus |
status()
Get the status of the webhook at the time the operation was called.
|
Map<String,String> |
tags()
Get the tags for the webhook.
|
WebhookCreateParameters |
withActions(List<WebhookAction> actions)
Set the list of actions that trigger the webhook to post notifications.
|
WebhookCreateParameters |
withCustomHeaders(Map<String,String> customHeaders)
Set custom headers that will be added to the webhook notifications.
|
WebhookCreateParameters |
withLocation(String location)
Set the location of the webhook.
|
WebhookCreateParameters |
withScope(String scope)
Set the scope of repositories where the event can be triggered.
|
WebhookCreateParameters |
withServiceUri(String serviceUri)
Set the service URI for the webhook to post notifications.
|
WebhookCreateParameters |
withStatus(WebhookStatus status)
Set the status of the webhook at the time the operation was called.
|
WebhookCreateParameters |
withTags(Map<String,String> tags)
Set the tags for the webhook.
|
public WebhookCreateParameters withTags(Map<String,String> tags)
tags
- the tags value to setpublic String location()
public WebhookCreateParameters withLocation(String location)
location
- the location value to setpublic String serviceUri()
public WebhookCreateParameters withServiceUri(String serviceUri)
serviceUri
- the serviceUri value to setpublic Map<String,String> customHeaders()
public WebhookCreateParameters withCustomHeaders(Map<String,String> customHeaders)
customHeaders
- the customHeaders value to setpublic WebhookStatus status()
public WebhookCreateParameters withStatus(WebhookStatus status)
status
- the status value to setpublic String scope()
public WebhookCreateParameters withScope(String scope)
scope
- the scope value to setpublic List<WebhookAction> actions()
public WebhookCreateParameters withActions(List<WebhookAction> actions)
actions
- the actions value to setCopyright © 2019. All rights reserved.