WebhookCreateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. WebhookCreateParameters
- com.
Implements
public final class WebhookCreateParameters
implements JsonSerializable<WebhookCreateParameters>
The parameters for creating a webhook.
Constructor Summary
| Constructor | Description |
|---|---|
| WebhookCreateParameters() |
Creates an instance of Webhook |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Webhook |
actions()
Get the actions property: The list of actions that trigger the webhook to post notifications. |
| Map<String,String> |
customHeaders()
Get the custom |
|
static
Webhook |
fromJson(JsonReader jsonReader)
Reads an instance of Webhook |
| String |
location()
Get the location property: The location of the webhook. |
| String |
scope()
Get the scope property: The scope of repositories where the event can be triggered. |
| String |
serviceUri()
Get the service |
|
Webhook |
status()
Get the status property: The status of the webhook at the time the operation was called. |
| Map<String,String> |
tags()
Get the tags property: The tags for the webhook. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Webhook |
withActions(List<WebhookAction> actions)
Set the actions property: The list of actions that trigger the webhook to post notifications. |
|
Webhook |
withCustomHeaders(Map<String,String> customHeaders)
Set the custom |
|
Webhook |
withLocation(String location)
Set the location property: The location of the webhook. |
|
Webhook |
withScope(String scope)
Set the scope property: The scope of repositories where the event can be triggered. |
|
Webhook |
withServiceUri(String serviceUri)
Set the service |
|
Webhook |
withStatus(WebhookStatus status)
Set the status property: The status of the webhook at the time the operation was called. |
|
Webhook |
withTags(Map<String,String> tags)
Set the tags property: The tags for the webhook. |
Methods inherited from java.lang.Object
Constructor Details
WebhookCreateParameters
public WebhookCreateParameters()
Creates an instance of WebhookCreateParameters class.
Method Details
actions
public List<WebhookAction> actions()
Get the actions property: The list of actions that trigger the webhook to post notifications.
Returns:
customHeaders
public Map<String,String> customHeaders()
Get the customHeaders property: Custom headers that will be added to the webhook notifications.
Returns:
fromJson
public static WebhookCreateParameters fromJson(JsonReader jsonReader)
Reads an instance of WebhookCreateParameters from the JsonReader.
Parameters:
Returns:
Throws:
location
public String location()
Get the location property: The location of the webhook. This cannot be changed after the resource is created.
Returns:
scope
public String scope()
Get the scope property: 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:
serviceUri
public String serviceUri()
Get the serviceUri property: The service URI for the webhook to post notifications.
Returns:
status
public WebhookStatus status()
Get the status property: The status of the webhook at the time the operation was called.
Returns:
tags
public Map<String,String> tags()
Get the tags property: The tags for the webhook.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActions
public WebhookCreateParameters withActions(List<WebhookAction> actions)
Set the actions property: The list of actions that trigger the webhook to post notifications.
Parameters:
Returns:
withCustomHeaders
public WebhookCreateParameters withCustomHeaders(Map<String,String> customHeaders)
Set the customHeaders property: Custom headers that will be added to the webhook notifications.
Parameters:
Returns:
withLocation
public WebhookCreateParameters withLocation(String location)
Set the location property: The location of the webhook. This cannot be changed after the resource is created.
Parameters:
Returns:
withScope
public WebhookCreateParameters withScope(String scope)
Set the scope property: 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:
Returns:
withServiceUri
public WebhookCreateParameters withServiceUri(String serviceUri)
Set the serviceUri property: The service URI for the webhook to post notifications.
Parameters:
Returns:
withStatus
public WebhookCreateParameters withStatus(WebhookStatus status)
Set the status property: The status of the webhook at the time the operation was called.
Parameters:
Returns:
withTags
public WebhookCreateParameters withTags(Map<String,String> tags)
Set the tags property: The tags for the webhook.
Parameters:
Returns: