Class RoleDefinitionProperties

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

public final class RoleDefinitionProperties extends Object
Role definition properties.
  • Constructor Details

    • RoleDefinitionProperties

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

    • roleName

      public String roleName()
      Get the roleName property: The role name.
      Returns:
      the roleName value.
    • withRoleName

      public RoleDefinitionProperties withRoleName(String roleName)
      Set the roleName property: The role name.
      Parameters:
      roleName - the roleName value to set.
      Returns:
      the RoleDefinitionProperties object itself.
    • description

      public String description()
      Get the description property: The role definition description.
      Returns:
      the description value.
    • withDescription

      public RoleDefinitionProperties withDescription(String description)
      Set the description property: The role definition description.
      Parameters:
      description - the description value to set.
      Returns:
      the RoleDefinitionProperties object itself.
    • roleType

      public String roleType()
      Get the roleType property: The role type.
      Returns:
      the roleType value.
    • withRoleType

      public RoleDefinitionProperties withRoleType(String roleType)
      Set the roleType property: The role type.
      Parameters:
      roleType - the roleType value to set.
      Returns:
      the RoleDefinitionProperties object itself.
    • permissions

      public List<PermissionInner> permissions()
      Get the permissions property: Role definition permissions.
      Returns:
      the permissions value.
    • withPermissions

      public RoleDefinitionProperties withPermissions(List<PermissionInner> permissions)
      Set the permissions property: Role definition permissions.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the RoleDefinitionProperties object itself.
    • assignableScopes

      public List<String> assignableScopes()
      Get the assignableScopes property: Role definition assignable scopes.
      Returns:
      the assignableScopes value.
    • withAssignableScopes

      public RoleDefinitionProperties withAssignableScopes(List<String> assignableScopes)
      Set the assignableScopes property: Role definition assignable scopes.
      Parameters:
      assignableScopes - the assignableScopes value to set.
      Returns:
      the RoleDefinitionProperties 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.
    • validate

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