public ResourceEntity getResource() {
    return resource;
  }
Get the associated resource entity.

@return the resource entity
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/PrivilegeEntity.java