code: public PagedList<CloudPool> listPools(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
              throws BatchErrorException, IOException {
          PoolListOptions options = new PoolListOptions();
  
          BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
          bhMgr.appendDetailLevelToPerCallBehaviors(detailLevel);
          bhMgr.applyRequestBehaviors(options);
  
          return this.parentBatchClient.protocolLayer().pools().list(options);
      }
docs: Lists the {@link CloudPool pools} in the Batch account.
  
  @param detailLevel
  A {@link DetailLevel} used for filtering the list and for
  controlling which properties are retrieved from the service.
  @param additionalBehaviors
  A collection of {@link BatchClientBehavior} instances that are
  applied to the Batch service request.
  @return A list of {@link CloudPool} objects.
  @throws BatchErrorException
  Exception thrown when an error response is received from the
  Batch service.
  @throws IOException
  Exception thrown when there is an error in
  serialization/deserialization of data sent to/received from the
  Batch service.