Class SecurityContactPropertiesNotificationsByRole

java.lang.Object
com.azure.resourcemanager.security.models.SecurityContactPropertiesNotificationsByRole

public final class SecurityContactPropertiesNotificationsByRole extends Object
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
  • Constructor Details

    • SecurityContactPropertiesNotificationsByRole

      public SecurityContactPropertiesNotificationsByRole()
  • Method Details

    • state

      public State state()
      Get the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
      Returns:
      the state value.
    • withState

      Set the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
      Parameters:
      state - the state value to set.
      Returns:
      the SecurityContactPropertiesNotificationsByRole object itself.
    • roles

      public List<Roles> roles()
      Get the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:.
      Returns:
      the roles value.
    • withRoles

      Set the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:.
      Parameters:
      roles - the roles value to set.
      Returns:
      the SecurityContactPropertiesNotificationsByRole object itself.
    • validate

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