SecurityContactPropertiesNotificationsByRole Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.SecurityContactPropertiesNotificationsByRole

Implements

public final class SecurityContactPropertiesNotificationsByRole
implements JsonSerializable<SecurityContactPropertiesNotificationsByRole>

Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Constructor Summary

Constructor Description
SecurityContactPropertiesNotificationsByRole()

Creates an instance of SecurityContactPropertiesNotificationsByRole class.

Method Summary

Modifier and Type Method and Description
static SecurityContactPropertiesNotificationsByRole fromJson(JsonReader jsonReader)

Reads an instance of SecurityContactPropertiesNotificationsByRole from the JsonReader.

List<SecurityContactRole> roles()

Get the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud.

State state()

Get the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityContactPropertiesNotificationsByRole withRoles(List<SecurityContactRole> roles)

Set the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud.

SecurityContactPropertiesNotificationsByRole withState(State state)

Set the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Methods inherited from java.lang.Object

Constructor Details

SecurityContactPropertiesNotificationsByRole

public SecurityContactPropertiesNotificationsByRole()

Creates an instance of SecurityContactPropertiesNotificationsByRole class.

Method Details

fromJson

public static SecurityContactPropertiesNotificationsByRole fromJson(JsonReader jsonReader)

Reads an instance of SecurityContactPropertiesNotificationsByRole from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SecurityContactPropertiesNotificationsByRole.

roles

public List<SecurityContactRole> roles()

Get the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:.

Returns:

the roles value.

state

public State state()

Get the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRoles

public SecurityContactPropertiesNotificationsByRole withRoles(List<SecurityContactRole> roles)

Set the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:.

Parameters:

roles - the roles value to set.

Returns:

the SecurityContactPropertiesNotificationsByRole object itself.

withState

public SecurityContactPropertiesNotificationsByRole withState(State state)

Set the state property: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Parameters:

state - the state value to set.

Returns:

the SecurityContactPropertiesNotificationsByRole object itself.

Applies to