Class SecurityContactInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.security.fluent.models.SecurityContactInner
public final class SecurityContactInner
extends com.azure.core.management.ProxyResource
Contact details and configurations for notifications coming from Microsoft Defender for Cloud.
-
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.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
SecurityContactInner
public SecurityContactInner()
-
-
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 SecurityContactInner 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 SecurityContactInner object itself.
-
alertNotifications
Get the alertNotifications property: Defines whether to send email notifications about new security alerts.- Returns:
- the alertNotifications value.
-
withAlertNotifications
public SecurityContactInner 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 SecurityContactInner 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 SecurityContactInner 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 SecurityContactInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-