Class SecurityContactProperties
java.lang.Object
com.azure.resourcemanager.security.fluent.models.SecurityContactProperties
Describes security contact properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertNotifications property: Defines whether to send email notifications about new security alerts.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.Get the notificationsByRole property: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.phone()
Get the phone property: The security contact's phone number.void
validate()
Validates the instance.withAlertNotifications
(SecurityContactPropertiesAlertNotifications alertNotifications) Set the alertNotifications property: Defines whether to send email notifications about new security alerts.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.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.Set the phone property: The security contact's phone number.
-
Constructor Details
-
SecurityContactProperties
public SecurityContactProperties()
-
-
Method Details
-
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
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
Get the phone property: The security contact's phone number.- Returns:
- the phone value.
-
withPhone
Set the phone property: The security contact's phone number.- Parameters:
phone
- the phone value to set.- Returns:
- the SecurityContactProperties object itself.
-
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
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.
-