Class RoleManagementPolicyRule

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
Direct Known Subclasses:
RoleManagementPolicyApprovalRule, RoleManagementPolicyAuthenticationContextRule, RoleManagementPolicyEnablementRule, RoleManagementPolicyExpirationRule, RoleManagementPolicyNotificationRule

public class RoleManagementPolicyRule extends Object
The role management policy rule.
  • Constructor Details

    • RoleManagementPolicyRule

      public RoleManagementPolicyRule()
      Creates an instance of RoleManagementPolicyRule class.
  • Method Details

    • id

      public String id()
      Get the id property: The id of the rule.
      Returns:
      the id value.
    • withId

      public RoleManagementPolicyRule withId(String id)
      Set the id property: The id of the rule.
      Parameters:
      id - the id value to set.
      Returns:
      the RoleManagementPolicyRule object itself.
    • target

      Get the target property: The target of the current rule.
      Returns:
      the target value.
    • withTarget

      Set the target property: The target of the current rule.
      Parameters:
      target - the target value to set.
      Returns:
      the RoleManagementPolicyRule object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.