Class RoleManagementPolicyNotificationRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyNotificationRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleManagementPolicyRule>
The role management policy notification rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyNotificationRule class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleManagementPolicyNotificationRule from the JsonReader.Get the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.Get the notificationLevel property: The notification level.Get the notificationRecipients property: The list of notification recipients.Get the notificationType property: The type of notification.Get the recipientType property: The recipient type.ruleType()Get the ruleType property: The type of rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: The id of the rule.withIsDefaultRecipientsEnabled(Boolean isDefaultRecipientsEnabled) Set the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.withNotificationLevel(NotificationLevel notificationLevel) Set the notificationLevel property: The notification level.withNotificationRecipients(List<String> notificationRecipients) Set the notificationRecipients property: The list of notification recipients.withNotificationType(NotificationDeliveryMechanism notificationType) Set the notificationType property: The type of notification.withRecipientType(RecipientType recipientType) Set the recipientType property: The recipient type.Set the target property: The target of the current rule.Methods inherited from class RoleManagementPolicyRule
id, targetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RoleManagementPolicyNotificationRule
public RoleManagementPolicyNotificationRule()Creates an instance of RoleManagementPolicyNotificationRule class.
-
-
Method Details
-
ruleType
Get the ruleType property: The type of rule.- Overrides:
ruleTypein classRoleManagementPolicyRule- Returns:
- the ruleType value.
-
notificationType
Get the notificationType property: The type of notification.- Returns:
- the notificationType value.
-
withNotificationType
public RoleManagementPolicyNotificationRule withNotificationType(NotificationDeliveryMechanism notificationType) Set the notificationType property: The type of notification.- Parameters:
notificationType- the notificationType value to set.- Returns:
- the RoleManagementPolicyNotificationRule object itself.
-
notificationLevel
Get the notificationLevel property: The notification level.- Returns:
- the notificationLevel value.
-
withNotificationLevel
public RoleManagementPolicyNotificationRule withNotificationLevel(NotificationLevel notificationLevel) Set the notificationLevel property: The notification level.- Parameters:
notificationLevel- the notificationLevel value to set.- Returns:
- the RoleManagementPolicyNotificationRule object itself.
-
recipientType
Get the recipientType property: The recipient type.- Returns:
- the recipientType value.
-
withRecipientType
Set the recipientType property: The recipient type.- Parameters:
recipientType- the recipientType value to set.- Returns:
- the RoleManagementPolicyNotificationRule object itself.
-
notificationRecipients
-
withNotificationRecipients
public RoleManagementPolicyNotificationRule withNotificationRecipients(List<String> notificationRecipients) Set the notificationRecipients property: The list of notification recipients.- Parameters:
notificationRecipients- the notificationRecipients value to set.- Returns:
- the RoleManagementPolicyNotificationRule object itself.
-
isDefaultRecipientsEnabled
Get the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.- Returns:
- the isDefaultRecipientsEnabled value.
-
withIsDefaultRecipientsEnabled
public RoleManagementPolicyNotificationRule withIsDefaultRecipientsEnabled(Boolean isDefaultRecipientsEnabled) Set the isDefaultRecipientsEnabled property: Determines if the notification will be sent to the recipient type specified in the policy rule.- Parameters:
isDefaultRecipientsEnabled- the isDefaultRecipientsEnabled value to set.- Returns:
- the RoleManagementPolicyNotificationRule object itself.
-
withId
Set the id property: The id of the rule.- Overrides:
withIdin classRoleManagementPolicyRule- Parameters:
id- the id value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
withTarget
Set the target property: The target of the current rule.- Overrides:
withTargetin classRoleManagementPolicyRule- Parameters:
target- the target value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRoleManagementPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoleManagementPolicyRule>- Overrides:
toJsonin classRoleManagementPolicyRule- Throws:
IOException
-
fromJson
public static RoleManagementPolicyNotificationRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleManagementPolicyNotificationRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleManagementPolicyNotificationRule 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 RoleManagementPolicyNotificationRule.
-