com.pulumi.azure.monitoring.outputs.AutoscaleSettingNotificationEmail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.monitoring.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoscaleSettingNotificationEmail {
/**
* @return Specifies a list of custom email addresses to which the email notifications will be sent.
*
*/
private @Nullable List customEmails;
/**
* @return Should email notifications be sent to the subscription administrator? Defaults to `false`.
*
*/
private @Nullable Boolean sendToSubscriptionAdministrator;
/**
* @return Should email notifications be sent to the subscription co-administrator? Defaults to `false`.
*
*/
private @Nullable Boolean sendToSubscriptionCoAdministrator;
private AutoscaleSettingNotificationEmail() {}
/**
* @return Specifies a list of custom email addresses to which the email notifications will be sent.
*
*/
public List customEmails() {
return this.customEmails == null ? List.of() : this.customEmails;
}
/**
* @return Should email notifications be sent to the subscription administrator? Defaults to `false`.
*
*/
public Optional sendToSubscriptionAdministrator() {
return Optional.ofNullable(this.sendToSubscriptionAdministrator);
}
/**
* @return Should email notifications be sent to the subscription co-administrator? Defaults to `false`.
*
*/
public Optional sendToSubscriptionCoAdministrator() {
return Optional.ofNullable(this.sendToSubscriptionCoAdministrator);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoscaleSettingNotificationEmail defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List customEmails;
private @Nullable Boolean sendToSubscriptionAdministrator;
private @Nullable Boolean sendToSubscriptionCoAdministrator;
public Builder() {}
public Builder(AutoscaleSettingNotificationEmail defaults) {
Objects.requireNonNull(defaults);
this.customEmails = defaults.customEmails;
this.sendToSubscriptionAdministrator = defaults.sendToSubscriptionAdministrator;
this.sendToSubscriptionCoAdministrator = defaults.sendToSubscriptionCoAdministrator;
}
@CustomType.Setter
public Builder customEmails(@Nullable List customEmails) {
this.customEmails = customEmails;
return this;
}
public Builder customEmails(String... customEmails) {
return customEmails(List.of(customEmails));
}
@CustomType.Setter
public Builder sendToSubscriptionAdministrator(@Nullable Boolean sendToSubscriptionAdministrator) {
this.sendToSubscriptionAdministrator = sendToSubscriptionAdministrator;
return this;
}
@CustomType.Setter
public Builder sendToSubscriptionCoAdministrator(@Nullable Boolean sendToSubscriptionCoAdministrator) {
this.sendToSubscriptionCoAdministrator = sendToSubscriptionCoAdministrator;
return this;
}
public AutoscaleSettingNotificationEmail build() {
final var _resultValue = new AutoscaleSettingNotificationEmail();
_resultValue.customEmails = customEmails;
_resultValue.sendToSubscriptionAdministrator = sendToSubscriptionAdministrator;
_resultValue.sendToSubscriptionCoAdministrator = sendToSubscriptionCoAdministrator;
return _resultValue;
}
}
}