
com.azure.resourcemanager.monitor.models.WebhookNotification Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.monitor.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Webhook notification of an autoscale event. */
@Fluent
public final class WebhookNotification {
/*
* the service address to receive the notification.
*/
@JsonProperty(value = "serviceUri")
private String serviceUri;
/*
* a property bag of settings. This value can be empty.
*/
@JsonProperty(value = "properties")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map properties;
/** Creates an instance of WebhookNotification class. */
public WebhookNotification() {
}
/**
* Get the serviceUri property: the service address to receive the notification.
*
* @return the serviceUri value.
*/
public String serviceUri() {
return this.serviceUri;
}
/**
* Set the serviceUri property: the service address to receive the notification.
*
* @param serviceUri the serviceUri value to set.
* @return the WebhookNotification object itself.
*/
public WebhookNotification withServiceUri(String serviceUri) {
this.serviceUri = serviceUri;
return this;
}
/**
* Get the properties property: a property bag of settings. This value can be empty.
*
* @return the properties value.
*/
public Map properties() {
return this.properties;
}
/**
* Set the properties property: a property bag of settings. This value can be empty.
*
* @param properties the properties value to set.
* @return the WebhookNotification object itself.
*/
public WebhookNotification withProperties(Map properties) {
this.properties = properties;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy