SecurityContactInner Class

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 SecurityContactInner class.

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 isEnabled property: Indicates whether the security contact is enabled.

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.

List<NotificationsSource> notificationsSources()

Get the notificationsSources property: A collection of sources types which evaluate the email notification.

String phone()

Get the phone property: The security contact's phone number.

void validate()

Validates the instance.

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.

SecurityContactInner withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether the security contact is enabled.

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.

SecurityContactInner withNotificationsSources(List<NotificationsSource> notificationsSources)

Set the notificationsSources property: A collection of sources types which evaluate the email notification.

SecurityContactInner 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:

the emails value.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates whether the security contact is enabled.

Returns:

the isEnabled value.

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.

notificationsSources

public List notificationsSources()

Get the notificationsSources property: A collection of sources types which evaluate the email notification.

Returns:

the notificationsSources value.

phone

public String phone()

Get the phone property: The security contact's phone number.

Returns:

the phone value.

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:

emails - the emails value to set.

Returns:

the SecurityContactInner object itself.

withIsEnabled

public SecurityContactInner withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether the security contact is enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the SecurityContactInner object itself.

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.

withNotificationsSources

public SecurityContactInner withNotificationsSources(List notificationsSources)

Set the notificationsSources property: A collection of sources types which evaluate the email notification.

Parameters:

notificationsSources - the notificationsSources value to set.

Returns:

the SecurityContactInner object itself.

withPhone

public SecurityContactInner withPhone(String phone)

Set the phone property: The security contact's phone number.

Parameters:

phone - the phone value to set.

Returns:

the SecurityContactInner object itself.

Applies to