Class SecurityContactProperties

java.lang.Object
com.azure.resourcemanager.security.fluent.models.SecurityContactProperties

public final class SecurityContactProperties extends Object
Describes security contact properties.
  • Constructor Details

    • SecurityContactProperties

      public SecurityContactProperties()
  • Method Details

    • emails

      public String emails()
      Get the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
      Returns:
      the emails value.
    • withEmails

      public SecurityContactProperties withEmails(String emails)
      Set the emails property: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
      Parameters:
      emails - the emails value to set.
      Returns:
      the SecurityContactProperties object itself.
    • phone

      public String phone()
      Get the phone property: The security contact's phone number.
      Returns:
      the phone value.
    • withPhone

      public SecurityContactProperties withPhone(String phone)
      Set the phone property: The security contact's phone number.
      Parameters:
      phone - the phone value to set.
      Returns:
      the SecurityContactProperties object itself.
    • alertNotifications

      public SecurityContactPropertiesAlertNotifications alertNotifications()
      Get the alertNotifications property: Defines whether to send email notifications about new security alerts.
      Returns:
      the alertNotifications value.
    • withAlertNotifications

      public SecurityContactProperties withAlertNotifications(SecurityContactPropertiesAlertNotifications alertNotifications)
      Set the alertNotifications property: Defines whether to send email notifications about new security alerts.
      Parameters:
      alertNotifications - the alertNotifications value to set.
      Returns:
      the SecurityContactProperties object itself.
    • notificationsByRole

      public SecurityContactPropertiesNotificationsByRole notificationsByRole()
      Get the notificationsByRole property: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
      Returns:
      the notificationsByRole value.
    • withNotificationsByRole

      public SecurityContactProperties withNotificationsByRole(SecurityContactPropertiesNotificationsByRole notificationsByRole)
      Set the notificationsByRole property: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
      Parameters:
      notificationsByRole - the notificationsByRole value to set.
      Returns:
      the SecurityContactProperties object itself.
    • validate

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