public void setResource(ResourceEntity resource) {
    this.resource = resource;
  }
Set the admin resource entity.

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