code: @Override
      public ListLocationsResult listLocations(ListLocationsRequest request) {
          request = beforeClientExecution(request);
          return executeListLocations(request);
      }
docs: <p>
  Returns a lists of source and destination locations.
  </p>
  <p>
  If you have more locations than are returned in a response (that is, the response returns only a truncated list
  of your agents), the response contains a token that you can specify in your next request to fetch the next page
  of locations.
  </p>
  
  @param listLocationsRequest
  ListLocationsRequest
  @return Result of the ListLocations operation returned by the service.
  @throws InvalidRequestException
  This exception is thrown when the client submits a malformed request.
  @sample AWSDataSync.ListLocations
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocations" target="_top">AWS API
  Documentation</a>