Class RoleManagementPolicyAssignmentProperties

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.RoleManagementPolicyAssignmentProperties

public final class RoleManagementPolicyAssignmentProperties extends Object
Role management policy assignment properties with scope.
  • Constructor Details

    • RoleManagementPolicyAssignmentProperties

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

    • scope

      public String scope()
      Get the scope property: The role management policy scope.
      Returns:
      the scope value.
    • withScope

      Set the scope property: The role management policy scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the RoleManagementPolicyAssignmentProperties object itself.
    • roleDefinitionId

      public String roleDefinitionId()
      Get the roleDefinitionId property: The role definition of management policy assignment.
      Returns:
      the roleDefinitionId value.
    • withRoleDefinitionId

      public RoleManagementPolicyAssignmentProperties withRoleDefinitionId(String roleDefinitionId)
      Set the roleDefinitionId property: The role definition of management policy assignment.
      Parameters:
      roleDefinitionId - the roleDefinitionId value to set.
      Returns:
      the RoleManagementPolicyAssignmentProperties object itself.
    • policyId

      public String policyId()
      Get the policyId property: The policy id role management policy assignment.
      Returns:
      the policyId value.
    • withPolicyId

      public RoleManagementPolicyAssignmentProperties withPolicyId(String policyId)
      Set the policyId property: The policy id role management policy assignment.
      Parameters:
      policyId - the policyId value to set.
      Returns:
      the RoleManagementPolicyAssignmentProperties object itself.
    • effectiveRules

      public List<RoleManagementPolicyRule> effectiveRules()
      Get the effectiveRules property: The readonly computed rule applied to the policy.
      Returns:
      the effectiveRules value.
    • policyAssignmentProperties

      public PolicyAssignmentProperties policyAssignmentProperties()
      Get the policyAssignmentProperties property: Additional properties of scope, role definition and policy.
      Returns:
      the policyAssignmentProperties value.
    • validate

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