hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/web/client/OzoneRestClient.java
public List<OzoneVolume> listVolumes(String onBehalfOf, String prefix,
      int maxKeys, OzoneVolume prevKey) throws OzoneException {
    String volumeName = null;

    if (prevKey != null) {
      volumeName = prevKey.getVolumeName();
    }

    return listVolumes(onBehalfOf, prefix, maxKeys, volumeName);
  }
/**
   * List all the volumes owned by the user or Owned by the user specified in
   * the behalf of string.
   *
   * @param onBehalfOf - User Name of the user if it is not the caller. for
   *                   example, an admin wants to list some other users
   *                   volumes.
   * @param prefix     - Return only volumes that match this prefix.
   * @param maxKeys    - Maximum number of results to return, if the result set
   *                   is smaller than requested size, it means that list is
   *                   complete.
   * @param prevKey    - The last key that client got, server will continue
   *                   returning results from that point.
   * @return List of Volumes
   * @throws OzoneException
   */
List all the volumes owned by the user or Owned by the user specified in
the behalf of string.

@param onBehalfOf - User Name of the user if it is not the caller. for
example, an admin wants to list some other users
volumes.
@param prefix     - Return only volumes that match this prefix.
@param maxKeys    - Maximum number of results to return, if the result set
is smaller than requested size, it means that list is
complete.
@param prevKey    - The last key that client got, server will continue
returning results from that point.
@return List of Volumes
@throws OzoneException
List all the volumes owned by the user or Owned by the user specified in the behalf of string . @param onBehalfOf - User Name of the user if it is not the caller . for example an admin wants to list some other users volumes . @param prefix - Return only volumes that match this prefix . @param maxKeys - Maximum number of results to return if the result set is smaller than requested size it means that list is complete . @param prevKey - The last key that client got server will continue returning results from that point . @return List of Volumes @throws OzoneException
public List<OzoneVolume> listVolumes(String onBehalfOf, String prefix,
      int maxKeys, OzoneVolume prevKey) throws OzoneException {
    String volumeName = null;
    if (prevKey != null) {
      volumeName = prevKey.getVolumeName();
    }
    return listVolumes(onBehalfOf, prefix, maxKeys, volumeName);
  }
public List < OzoneVolume > listVolumes ( String onBehalfOf , String prefix , int maxKeys , OzoneVolume prevKey ) throws OzoneException { String volumeName = null ; if ( prevKey != null ) { volumeName = prevKey . getVolumeName ( ) ; } return listVolumes ( onBehalfOf , prefix , maxKeys , volumeName ) ; }
List all the volumes owned by the user or Owned by the user specified in
 the behalf of string.
List all the volumes owned by the user or Owned by the user specified in the behalf of string .