com.pulumi.azure.pim.outputs.GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification 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.pim.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification {
/**
* @return A list of additional email addresses that will receive these notifications.
*
*/
private List additionalRecipients;
/**
* @return (Boolean) Should the default recipients receive these notifications.
*
*/
private Boolean defaultRecipients;
/**
* @return (String) What level of notifications should be sent. Either `All` or `Critical`.
*
*/
private String notificationLevel;
private GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification() {}
/**
* @return A list of additional email addresses that will receive these notifications.
*
*/
public List additionalRecipients() {
return this.additionalRecipients;
}
/**
* @return (Boolean) Should the default recipients receive these notifications.
*
*/
public Boolean defaultRecipients() {
return this.defaultRecipients;
}
/**
* @return (String) What level of notifications should be sent. Either `All` or `Critical`.
*
*/
public String notificationLevel() {
return this.notificationLevel;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List additionalRecipients;
private Boolean defaultRecipients;
private String notificationLevel;
public Builder() {}
public Builder(GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification defaults) {
Objects.requireNonNull(defaults);
this.additionalRecipients = defaults.additionalRecipients;
this.defaultRecipients = defaults.defaultRecipients;
this.notificationLevel = defaults.notificationLevel;
}
@CustomType.Setter
public Builder additionalRecipients(List additionalRecipients) {
if (additionalRecipients == null) {
throw new MissingRequiredPropertyException("GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification", "additionalRecipients");
}
this.additionalRecipients = additionalRecipients;
return this;
}
public Builder additionalRecipients(String... additionalRecipients) {
return additionalRecipients(List.of(additionalRecipients));
}
@CustomType.Setter
public Builder defaultRecipients(Boolean defaultRecipients) {
if (defaultRecipients == null) {
throw new MissingRequiredPropertyException("GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification", "defaultRecipients");
}
this.defaultRecipients = defaultRecipients;
return this;
}
@CustomType.Setter
public Builder notificationLevel(String notificationLevel) {
if (notificationLevel == null) {
throw new MissingRequiredPropertyException("GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification", "notificationLevel");
}
this.notificationLevel = notificationLevel;
return this;
}
public GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification build() {
final var _resultValue = new GetRoleManagementPolicyNotificationRuleActiveAssignmentAdminNotification();
_resultValue.additionalRecipients = additionalRecipients;
_resultValue.defaultRecipients = defaultRecipients;
_resultValue.notificationLevel = notificationLevel;
return _resultValue;
}
}
}