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.monitor;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Autoscale notification.
/**
* Autoscale notification.
*/
public class AutoscaleNotification {
the operation associated with the notification and its value must be
"scale".
/**
* the operation associated with the notification and its value must be
* "scale".
*/
@JsonProperty(value = "operation", required = true)
private String operation;
the email notification.
/**
* the email notification.
*/
@JsonProperty(value = "email")
private EmailNotification email;
the collection of webhook notifications.
/**
* the collection of webhook notifications.
*/
@JsonProperty(value = "webhooks")
private List<WebhookNotification> webhooks;
Creates an instance of AutoscaleNotification class.
/**
* Creates an instance of AutoscaleNotification class.
*/
public AutoscaleNotification() {
operation = "Scale";
}
Get the operation associated with the notification and its value must be "scale".
Returns: the operation value
/**
* 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".
Params: - operation – the operation value to set
Returns: the AutoscaleNotification object itself.
/**
* 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.
Returns: the email value
/**
* Get the email notification.
*
* @return the email value
*/
public EmailNotification email() {
return this.email;
}
Set the email notification.
Params: - email – the email value to set
Returns: the AutoscaleNotification object itself.
/**
* 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.
Returns: the webhooks value
/**
* Get the collection of webhook notifications.
*
* @return the webhooks value
*/
public List<WebhookNotification> webhooks() {
return this.webhooks;
}
Set the collection of webhook notifications.
Params: - webhooks – the webhooks value to set
Returns: the AutoscaleNotification object itself.
/**
* Set the collection of webhook notifications.
*
* @param webhooks the webhooks value to set
* @return the AutoscaleNotification object itself.
*/
public AutoscaleNotification withWebhooks(List<WebhookNotification> webhooks) {
this.webhooks = webhooks;
return this;
}
}