public Request<ListPolicyVersionsRequest> marshall(
      ListPolicyVersionsRequest listPolicyVersionsRequest) {

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

    Request<ListPolicyVersionsRequest> request =
        new DefaultRequest<ListPolicyVersionsRequest>(listPolicyVersionsRequest, "AWSIot");

    request.setHttpMethod(HttpMethodName.GET);

    String uriResourcePath = "/policies/{policyName}/version";

    uriResourcePath =
        uriResourcePath.replace(
            "{policyName}",
            (listPolicyVersionsRequest.getPolicyName() == null)
                ? ""
                : StringUtils.fromString(listPolicyVersionsRequest.getPolicyName()));
    request.setResourcePath(uriResourcePath);

    request.setContent(new ByteArrayInputStream(new byte[0]));
    if (!request.getHeaders().containsKey("Content-Type")) {
      request.addHeader("Content-Type", DEFAULT_CONTENT_TYPE);
    }

    return request;
  }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof ListPolicyVersionsRequest == false) return false;
    ListPolicyVersionsRequest other = (ListPolicyVersionsRequest) obj;
    if (other.getPolicyName() == null ^ this.getPolicyName() == null) return false;
    if (other.getPolicyName() != null
        && other.getPolicyName().equals(this.getPolicyName()) == false) return false;
    return true;
  }