
com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyNotificationRuleResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.authorization.outputs;
import com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyRuleTargetResponse;
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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RoleManagementPolicyNotificationRuleResponse {
/**
* @return The id of the rule.
*
*/
private @Nullable String id;
/**
* @return Determines if the notification will be sent to the recipient type specified in the policy rule.
*
*/
private @Nullable Boolean isDefaultRecipientsEnabled;
/**
* @return The notification level.
*
*/
private @Nullable String notificationLevel;
/**
* @return The list of notification recipients.
*
*/
private @Nullable List notificationRecipients;
/**
* @return The type of notification.
*
*/
private @Nullable String notificationType;
/**
* @return The recipient type.
*
*/
private @Nullable String recipientType;
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyNotificationRule'.
*
*/
private String ruleType;
/**
* @return The target of the current rule.
*
*/
private @Nullable RoleManagementPolicyRuleTargetResponse target;
private RoleManagementPolicyNotificationRuleResponse() {}
/**
* @return The id of the rule.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Determines if the notification will be sent to the recipient type specified in the policy rule.
*
*/
public Optional isDefaultRecipientsEnabled() {
return Optional.ofNullable(this.isDefaultRecipientsEnabled);
}
/**
* @return The notification level.
*
*/
public Optional notificationLevel() {
return Optional.ofNullable(this.notificationLevel);
}
/**
* @return The list of notification recipients.
*
*/
public List notificationRecipients() {
return this.notificationRecipients == null ? List.of() : this.notificationRecipients;
}
/**
* @return The type of notification.
*
*/
public Optional notificationType() {
return Optional.ofNullable(this.notificationType);
}
/**
* @return The recipient type.
*
*/
public Optional recipientType() {
return Optional.ofNullable(this.recipientType);
}
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyNotificationRule'.
*
*/
public String ruleType() {
return this.ruleType;
}
/**
* @return The target of the current rule.
*
*/
public Optional target() {
return Optional.ofNullable(this.target);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoleManagementPolicyNotificationRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable Boolean isDefaultRecipientsEnabled;
private @Nullable String notificationLevel;
private @Nullable List notificationRecipients;
private @Nullable String notificationType;
private @Nullable String recipientType;
private String ruleType;
private @Nullable RoleManagementPolicyRuleTargetResponse target;
public Builder() {}
public Builder(RoleManagementPolicyNotificationRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.isDefaultRecipientsEnabled = defaults.isDefaultRecipientsEnabled;
this.notificationLevel = defaults.notificationLevel;
this.notificationRecipients = defaults.notificationRecipients;
this.notificationType = defaults.notificationType;
this.recipientType = defaults.recipientType;
this.ruleType = defaults.ruleType;
this.target = defaults.target;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder isDefaultRecipientsEnabled(@Nullable Boolean isDefaultRecipientsEnabled) {
this.isDefaultRecipientsEnabled = isDefaultRecipientsEnabled;
return this;
}
@CustomType.Setter
public Builder notificationLevel(@Nullable String notificationLevel) {
this.notificationLevel = notificationLevel;
return this;
}
@CustomType.Setter
public Builder notificationRecipients(@Nullable List notificationRecipients) {
this.notificationRecipients = notificationRecipients;
return this;
}
public Builder notificationRecipients(String... notificationRecipients) {
return notificationRecipients(List.of(notificationRecipients));
}
@CustomType.Setter
public Builder notificationType(@Nullable String notificationType) {
this.notificationType = notificationType;
return this;
}
@CustomType.Setter
public Builder recipientType(@Nullable String recipientType) {
this.recipientType = recipientType;
return this;
}
@CustomType.Setter
public Builder ruleType(String ruleType) {
if (ruleType == null) {
throw new MissingRequiredPropertyException("RoleManagementPolicyNotificationRuleResponse", "ruleType");
}
this.ruleType = ruleType;
return this;
}
@CustomType.Setter
public Builder target(@Nullable RoleManagementPolicyRuleTargetResponse target) {
this.target = target;
return this;
}
public RoleManagementPolicyNotificationRuleResponse build() {
final var _resultValue = new RoleManagementPolicyNotificationRuleResponse();
_resultValue.id = id;
_resultValue.isDefaultRecipientsEnabled = isDefaultRecipientsEnabled;
_resultValue.notificationLevel = notificationLevel;
_resultValue.notificationRecipients = notificationRecipients;
_resultValue.notificationType = notificationType;
_resultValue.recipientType = recipientType;
_resultValue.ruleType = ruleType;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy