Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerregistry; import java.util.Map; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The parameters for updating a webhook.
/** * The parameters for updating a webhook. */
@JsonFlatten public class WebhookUpdateParameters {
The tags for the webhook.
/** * The tags for the webhook. */
@JsonProperty(value = "tags") private Map<String, String> tags;
The service URI for the webhook to post notifications.
/** * The service URI for the webhook to post notifications. */
@JsonProperty(value = "properties.serviceUri") private String serviceUri;
Custom headers that will be added to the webhook notifications.
/** * Custom headers that will be added to the webhook notifications. */
@JsonProperty(value = "properties.customHeaders") private Map<String, String> customHeaders;
The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
/** * The status of the webhook at the time the operation was called. Possible * values include: 'enabled', 'disabled'. */
@JsonProperty(value = "properties.status") private WebhookStatus status;
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.
/** * 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. */
@JsonProperty(value = "properties.scope") private String scope;
The list of actions that trigger the webhook to post notifications.
/** * The list of actions that trigger the webhook to post notifications. */
@JsonProperty(value = "properties.actions") private List<WebhookAction> actions;
Get the tags for the webhook.
Returns:the tags value
/** * Get the tags for the webhook. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set the tags for the webhook.
Params:
  • tags – the tags value to set
Returns:the WebhookUpdateParameters object itself.
/** * Set the tags for the webhook. * * @param tags the tags value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withTags(Map<String, String> tags) { this.tags = tags; return this; }
Get the service URI for the webhook to post notifications.
Returns:the serviceUri value
/** * Get the service URI for the webhook to post notifications. * * @return the serviceUri value */
public String serviceUri() { return this.serviceUri; }
Set the service URI for the webhook to post notifications.
Params:
  • serviceUri – the serviceUri value to set
Returns:the WebhookUpdateParameters object itself.
/** * Set the service URI for the webhook to post notifications. * * @param serviceUri the serviceUri value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withServiceUri(String serviceUri) { this.serviceUri = serviceUri; return this; }
Get custom headers that will be added to the webhook notifications.
Returns:the customHeaders value
/** * Get custom headers that will be added to the webhook notifications. * * @return the customHeaders value */
public Map<String, String> customHeaders() { return this.customHeaders; }
Set custom headers that will be added to the webhook notifications.
Params:
  • customHeaders – the customHeaders value to set
Returns:the WebhookUpdateParameters object itself.
/** * Set custom headers that will be added to the webhook notifications. * * @param customHeaders the customHeaders value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withCustomHeaders(Map<String, String> customHeaders) { this.customHeaders = customHeaders; return this; }
Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Returns:the status value
/** * Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'. * * @return the status value */
public WebhookStatus status() { return this.status; }
Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Params:
  • status – the status value to set
Returns:the WebhookUpdateParameters object itself.
/** * Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'. * * @param status the status value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withStatus(WebhookStatus status) { this.status = status; return this; }
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
/** * 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. * * @return the scope value */
public String scope() { return this.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.
Params:
  • scope – the scope value to set
Returns:the WebhookUpdateParameters object itself.
/** * 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. * * @param scope the scope value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withScope(String scope) { this.scope = scope; return this; }
Get the list of actions that trigger the webhook to post notifications.
Returns:the actions value
/** * Get the list of actions that trigger the webhook to post notifications. * * @return the actions value */
public List<WebhookAction> actions() { return this.actions; }
Set the list of actions that trigger the webhook to post notifications.
Params:
  • actions – the actions value to set
Returns:the WebhookUpdateParameters object itself.
/** * Set the list of actions that trigger the webhook to post notifications. * * @param actions the actions value to set * @return the WebhookUpdateParameters object itself. */
public WebhookUpdateParameters withActions(List<WebhookAction> actions) { this.actions = actions; return this; } }