Class RoleAssignmentPropertiesWithScope

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentPropertiesWithScope

public final class RoleAssignmentPropertiesWithScope extends Object
Role assignment properties with scope.
  • Constructor Details

    • RoleAssignmentPropertiesWithScope

      public RoleAssignmentPropertiesWithScope()
  • Method Details

    • scope

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

      public RoleAssignmentPropertiesWithScope withScope(String scope)
      Set the scope property: The role assignment scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the RoleAssignmentPropertiesWithScope object itself.
    • roleDefinitionId

      public String roleDefinitionId()
      Get the roleDefinitionId property: The role definition ID.
      Returns:
      the roleDefinitionId value.
    • withRoleDefinitionId

      public RoleAssignmentPropertiesWithScope withRoleDefinitionId(String roleDefinitionId)
      Set the roleDefinitionId property: The role definition ID.
      Parameters:
      roleDefinitionId - the roleDefinitionId value to set.
      Returns:
      the RoleAssignmentPropertiesWithScope object itself.
    • principalId

      public String principalId()
      Get the principalId property: The principal ID.
      Returns:
      the principalId value.
    • withPrincipalId

      public RoleAssignmentPropertiesWithScope withPrincipalId(String principalId)
      Set the principalId property: The principal ID.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the RoleAssignmentPropertiesWithScope object itself.
    • condition

      public String condition()
      Get the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
      Returns:
      the condition value.
    • withCondition

      public RoleAssignmentPropertiesWithScope withCondition(String condition)
      Set the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
      Parameters:
      condition - the condition value to set.
      Returns:
      the RoleAssignmentPropertiesWithScope object itself.
    • conditionVersion

      public String conditionVersion()
      Get the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.
      Returns:
      the conditionVersion value.
    • withConditionVersion

      public RoleAssignmentPropertiesWithScope withConditionVersion(String conditionVersion)
      Set the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.
      Parameters:
      conditionVersion - the conditionVersion value to set.
      Returns:
      the RoleAssignmentPropertiesWithScope object itself.
    • validate

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