public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) {
    Request<ListQueuesRequest> request =
        new DefaultRequest<ListQueuesRequest>(listQueuesRequest, "AmazonSQS");
    request.addParameter("Action", "ListQueues");
    request.addParameter("Version", "2009-02-01");
    if (listQueuesRequest != null) {
      if (listQueuesRequest.getQueueNamePrefix() != null) {
        request.addParameter(
            "QueueNamePrefix", StringUtils.fromString(listQueuesRequest.getQueueNamePrefix()));
      }
    }

    return request;
  }
  public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) {

    if (listQueuesRequest == null) {
      throw new AmazonClientException("Invalid argument passed to marshall(...)");
    }

    Request<ListQueuesRequest> request =
        new DefaultRequest<ListQueuesRequest>(listQueuesRequest, "AmazonSQS");
    request.addParameter("Action", "ListQueues");
    request.addParameter("Version", "2012-11-05");

    if (listQueuesRequest.getQueueNamePrefix() != null) {
      request.addParameter(
          "QueueNamePrefix", StringUtils.fromString(listQueuesRequest.getQueueNamePrefix()));
    }

    return request;
  }