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.

static SecurityContactInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityContactInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isEnabled()

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

String name()

Get the name property: The name of the resource.

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.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

fromJson

public static SecurityContactInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityContactInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityContactInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SecurityContactInner.id()

Returns:

the id value.

isEnabled

public Boolean isEnabled()

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

Returns:

the isEnabled value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SecurityContactInner.name()

Returns:

the name 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<NotificationsSource> 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.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SecurityContactInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecurityContactInner.type()

Returns:

the type 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<NotificationsSource> 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