com.microsoft.azure.management.monitor.AutoscaleNotification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.monitor;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Autoscale notification.
*/
public class AutoscaleNotification {
/**
* the operation associated with the notification and its value must be
* "scale".
*/
@JsonProperty(value = "operation", required = true)
private String operation;
/**
* the email notification.
*/
@JsonProperty(value = "email")
private EmailNotification email;
/**
* the collection of webhook notifications.
*/
@JsonProperty(value = "webhooks")
private List webhooks;
/**
* Creates an instance of AutoscaleNotification class.
*/
public AutoscaleNotification() {
operation = "Scale";
}
/**
* Get the operation associated with the notification and its value must be "scale".
*
* @return the operation value
*/
public String operation() {
return this.operation;
}
/**
* Set the operation associated with the notification and its value must be "scale".
*
* @param operation the operation value to set
* @return the AutoscaleNotification object itself.
*/
public AutoscaleNotification withOperation(String operation) {
this.operation = operation;
return this;
}
/**
* Get the email notification.
*
* @return the email value
*/
public EmailNotification email() {
return this.email;
}
/**
* Set the email notification.
*
* @param email the email value to set
* @return the AutoscaleNotification object itself.
*/
public AutoscaleNotification withEmail(EmailNotification email) {
this.email = email;
return this;
}
/**
* Get the collection of webhook notifications.
*
* @return the webhooks value
*/
public List webhooks() {
return this.webhooks;
}
/**
* Set the collection of webhook notifications.
*
* @param webhooks the webhooks value to set
* @return the AutoscaleNotification object itself.
*/
public AutoscaleNotification withWebhooks(List webhooks) {
this.webhooks = webhooks;
return this;
}
}