com.microsoft.azure.management.monitor.EmailNotification 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;
/**
* Email notification of an autoscale event.
*/
public class EmailNotification {
/**
* a value indicating whether to send email to subscription administrator.
*/
@JsonProperty(value = "sendToSubscriptionAdministrator")
private Boolean sendToSubscriptionAdministrator;
/**
* a value indicating whether to send email to subscription
* co-administrators.
*/
@JsonProperty(value = "sendToSubscriptionCoAdministrators")
private Boolean sendToSubscriptionCoAdministrators;
/**
* the custom e-mails list. This value can be null or empty, in which case
* this attribute will be ignored.
*/
@JsonProperty(value = "customEmails")
private List customEmails;
/**
* Get a value indicating whether to send email to subscription administrator.
*
* @return the sendToSubscriptionAdministrator value
*/
public Boolean sendToSubscriptionAdministrator() {
return this.sendToSubscriptionAdministrator;
}
/**
* Set a value indicating whether to send email to subscription administrator.
*
* @param sendToSubscriptionAdministrator the sendToSubscriptionAdministrator value to set
* @return the EmailNotification object itself.
*/
public EmailNotification withSendToSubscriptionAdministrator(Boolean sendToSubscriptionAdministrator) {
this.sendToSubscriptionAdministrator = sendToSubscriptionAdministrator;
return this;
}
/**
* Get a value indicating whether to send email to subscription co-administrators.
*
* @return the sendToSubscriptionCoAdministrators value
*/
public Boolean sendToSubscriptionCoAdministrators() {
return this.sendToSubscriptionCoAdministrators;
}
/**
* Set a value indicating whether to send email to subscription co-administrators.
*
* @param sendToSubscriptionCoAdministrators the sendToSubscriptionCoAdministrators value to set
* @return the EmailNotification object itself.
*/
public EmailNotification withSendToSubscriptionCoAdministrators(Boolean sendToSubscriptionCoAdministrators) {
this.sendToSubscriptionCoAdministrators = sendToSubscriptionCoAdministrators;
return this;
}
/**
* Get the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
*
* @return the customEmails value
*/
public List customEmails() {
return this.customEmails;
}
/**
* Set the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
*
* @param customEmails the customEmails value to set
* @return the EmailNotification object itself.
*/
public EmailNotification withCustomEmails(List customEmails) {
this.customEmails = customEmails;
return this;
}
}