Class RoleAssignmentProperties


  • public final class RoleAssignmentProperties
    extends Object
    Role assignment properties.
    • Constructor Detail

      • RoleAssignmentProperties

        public RoleAssignmentProperties()
    • Method Detail

      • scope

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

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

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

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

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

        public PrincipalType principalType()
        Get the principalType property: The principal type of the assigned principal ID.
        Returns:
        the principalType value.
      • withPrincipalType

        public RoleAssignmentProperties withPrincipalType​(PrincipalType principalType)
        Set the principalType property: The principal type of the assigned principal ID.
        Parameters:
        principalType - the principalType value to set.
        Returns:
        the RoleAssignmentProperties object itself.
      • description

        public String description()
        Get the description property: Description of role assignment.
        Returns:
        the description value.
      • withDescription

        public RoleAssignmentProperties withDescription​(String description)
        Set the description property: Description of role assignment.
        Parameters:
        description - the description value to set.
        Returns:
        the RoleAssignmentProperties 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 RoleAssignmentProperties 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 RoleAssignmentProperties 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 RoleAssignmentProperties 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 RoleAssignmentProperties object itself.
      • createdOn

        public OffsetDateTime createdOn()
        Get the createdOn property: Time it was created.
        Returns:
        the createdOn value.
      • updatedOn

        public OffsetDateTime updatedOn()
        Get the updatedOn property: Time it was updated.
        Returns:
        the updatedOn value.
      • createdBy

        public String createdBy()
        Get the createdBy property: Id of the user who created the assignment.
        Returns:
        the createdBy value.
      • updatedBy

        public String updatedBy()
        Get the updatedBy property: Id of the user who updated the assignment.
        Returns:
        the updatedBy value.
      • delegatedManagedIdentityResourceId

        public String delegatedManagedIdentityResourceId()
        Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.
        Returns:
        the delegatedManagedIdentityResourceId value.
      • withDelegatedManagedIdentityResourceId

        public RoleAssignmentProperties withDelegatedManagedIdentityResourceId​(String delegatedManagedIdentityResourceId)
        Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.
        Parameters:
        delegatedManagedIdentityResourceId - the delegatedManagedIdentityResourceId value to set.
        Returns:
        the RoleAssignmentProperties object itself.
      • validate

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