WebhookCreateParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.containerregistry.WebhookCreateParameters

public class WebhookCreateParameters

The parameters for creating a webhook.

Constructor Summary

Constructor Description
WebhookCreateParameters()

Method Summary

Modifier and Type Method and Description
java.util.List<WebhookAction> actions()

Get the list of actions that trigger the webhook to post notifications.

java.util.Map<java.lang.String,java.lang.String> customHeaders()

Get custom headers that will be added to the webhook notifications.

java.lang.String location()

Get the location of the webhook.

java.lang.String scope()

Get the scope of repositories where the event can be triggered.

java.lang.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.

java.util.Map<java.lang.String,java.lang.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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

WebhookCreateParameters

public WebhookCreateParameters()

Method Details

actions

public List actions()

Get the list of actions that trigger the webhook to post notifications.

Returns:

the actions value

customHeaders

public Map customHeaders()

Get custom headers that will be added to the webhook notifications.

Returns:

the customHeaders value

location

public String location()

Get the location of the webhook. This cannot be changed after the resource is created.

Returns:

the location value

scope

public String scope()

Get the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.

Returns:

the scope value

serviceUri

public String serviceUri()

Get the service URI for the webhook to post notifications.

Returns:

the serviceUri value

status

public WebhookStatus status()

Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.

Returns:

the status value

tags

public Map tags()

Get the tags for the webhook.

Returns:

the tags value

withActions

public WebhookCreateParameters withActions(List actions)

Set the list of actions that trigger the webhook to post notifications.

Parameters:

actions - the actions value to set

Returns:

the WebhookCreateParameters object itself.

withCustomHeaders

public WebhookCreateParameters withCustomHeaders(Map customHeaders)

Set custom headers that will be added to the webhook notifications.

Parameters:

customHeaders - the customHeaders value to set

Returns:

the WebhookCreateParameters object itself.

withLocation

public WebhookCreateParameters withLocation(String location)

Set the location of the webhook. This cannot be changed after the resource is created.

Parameters:

location - the location value to set

Returns:

the WebhookCreateParameters object itself.

withScope

public WebhookCreateParameters withScope(String scope)

Set the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.

Parameters:

scope - the scope value to set

Returns:

the WebhookCreateParameters object itself.

withServiceUri

public WebhookCreateParameters withServiceUri(String serviceUri)

Set the service URI for the webhook to post notifications.

Parameters:

serviceUri - the serviceUri value to set

Returns:

the WebhookCreateParameters object itself.

withStatus

public WebhookCreateParameters withStatus(WebhookStatus status)

Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.

Parameters:

status - the status value to set

Returns:

the WebhookCreateParameters object itself.

withTags

public WebhookCreateParameters withTags(Map tags)

Set the tags for the webhook.

Parameters:

tags - the tags value to set

Returns:

the WebhookCreateParameters object itself.

Applies to