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