SecurityContactInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. SecurityContactInner
- com.
- com.
public final class SecurityContactInner
extends ProxyResource
Contact details and configurations for notifications coming from Microsoft Defender for Cloud.
Constructor Summary
Constructor | Description |
---|---|
SecurityContactInner() |
Creates an instance of Security |
Method Summary
Modifier and Type | Method and Description |
---|---|
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. |
Boolean |
isEnabled()
Get the is |
Security |
notificationsByRole()
Get the notifications |
List<Notifications |
notificationsSources()
Get the notifications |
String |
phone()
Get the phone property: The security contact's phone number. |
void |
validate()
Validates the instance. |
Security |
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. |
Security |
withIsEnabled(Boolean isEnabled)
Set the is |
Security |
withNotificationsByRole(SecurityContactPropertiesNotificationsByRole notificationsByRole)
Set the notifications |
Security |
withNotificationsSources(List<NotificationsSource> notificationsSources)
Set the notifications |
Security |
withPhone(String phone)
Set the phone property: The security contact's phone number. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
SecurityContactInner
public SecurityContactInner()
Creates an instance of SecurityContactInner class.
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:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Indicates whether the security contact is enabled.
Returns:
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:
notificationsSources
public List
Get the notificationsSources property: A collection of sources types which evaluate the email notification.
Returns:
phone
public String phone()
Get the phone property: The security contact's phone number.
Returns:
validate
public void validate()
Validates the instance.
withEmails
public SecurityContactInner 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:
Returns:
withIsEnabled
public SecurityContactInner withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Indicates whether the security contact is enabled.
Parameters:
Returns:
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:
Returns:
withNotificationsSources
public SecurityContactInner withNotificationsSources(List
Set the notificationsSources property: A collection of sources types which evaluate the email notification.
Parameters:
Returns:
withPhone
public SecurityContactInner withPhone(String phone)
Set the phone property: The security contact's phone number.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for