SecurityContactPropertiesNotificationsByRole Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. SecurityContactPropertiesNotificationsByRole
- com.
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 Security |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
|
List<Security |
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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Security |
withRoles(List<SecurityContactRole> roles)
Set the roles property: Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. |
|
Security |
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:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns: