@ApiModelProperty(name = PrivilegeResourceProvider.TYPE_PROPERTY_ID)
  public ResourceType getType() {
    return type;
  }
Returns resource type
@return resource type
ambari-server/src/main/java/org/apache/ambari/server/controller/PrivilegeResponse.java