Class RoleManagementPolicyNotificationRule

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyNotificationRule

public final class RoleManagementPolicyNotificationRule extends RoleManagementPolicyRule
The role management policy notification rule.
  • Constructor Details

    • RoleManagementPolicyNotificationRule

      public RoleManagementPolicyNotificationRule()
      Creates an instance of RoleManagementPolicyNotificationRule class.
  • Method Details

    • notificationType

      public NotificationDeliveryMechanism notificationType()
      Get the notificationType property: The type of notification.
      Returns:
      the notificationType value.
    • withNotificationType

      public RoleManagementPolicyNotificationRule withNotificationType(NotificationDeliveryMechanism notificationType)
      Set the notificationType property: The type of notification.
      Parameters:
      notificationType - the notificationType value to set.
      Returns:
      the RoleManagementPolicyNotificationRule object itself.
    • notificationLevel

      public NotificationLevel notificationLevel()
      Get the notificationLevel property: The notification level.
      Returns:
      the notificationLevel value.
    • withNotificationLevel

      public RoleManagementPolicyNotificationRule withNotificationLevel(NotificationLevel notificationLevel)
      Set the notificationLevel property: The notification level.
      Parameters:
      notificationLevel - the notificationLevel value to set.
      Returns:
      the RoleManagementPolicyNotificationRule object itself.
    • recipientType

      public RecipientType recipientType()
      Get the recipientType property: The recipient type.
      Returns:
      the recipientType value.
    • withRecipientType

      public RoleManagementPolicyNotificationRule withRecipientType(RecipientType recipientType)
      Set the recipientType property: The recipient type.
      Parameters:
      recipientType - the recipientType value to set.
      Returns:
      the RoleManagementPolicyNotificationRule object itself.
    • notificationRecipients

      public List<String> notificationRecipients()
      Get the notificationRecipients property: The list of notification recipients.
      Returns:
      the notificationRecipients value.
    • withNotificationRecipients

      public RoleManagementPolicyNotificationRule withNotificationRecipients(List<String> notificationRecipients)
      Set the notificationRecipients property: The list of notification recipients.
      Parameters:
      notificationRecipients - the notificationRecipients value to set.
      Returns:
      the RoleManagementPolicyNotificationRule object itself.
    • isDefaultRecipientsEnabled

      public Boolean isDefaultRecipientsEnabled()
      Get the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.
      Returns:
      the isDefaultRecipientsEnabled value.
    • withIsDefaultRecipientsEnabled

      public RoleManagementPolicyNotificationRule withIsDefaultRecipientsEnabled(Boolean isDefaultRecipientsEnabled)
      Set the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.
      Parameters:
      isDefaultRecipientsEnabled - the isDefaultRecipientsEnabled value to set.
      Returns:
      the RoleManagementPolicyNotificationRule object itself.
    • withId

      Set the id property: The id of the rule.
      Overrides:
      withId in class RoleManagementPolicyRule
      Parameters:
      id - the id value to set.
      Returns:
      the RoleManagementPolicyRule object itself.
    • withTarget

      Set the target property: The target of the current rule.
      Overrides:
      withTarget in class RoleManagementPolicyRule
      Parameters:
      target - the target value to set.
      Returns:
      the RoleManagementPolicyRule object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class RoleManagementPolicyRule
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.