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

    if (obj instanceof GetEvaluationRequest == false) return false;
    GetEvaluationRequest other = (GetEvaluationRequest) obj;
    if (other.getEvaluationId() == null ^ this.getEvaluationId() == null) return false;
    if (other.getEvaluationId() != null
        && other.getEvaluationId().equals(this.getEvaluationId()) == false) return false;
    return true;
  }
  public Request<GetEvaluationRequest> marshall(GetEvaluationRequest getEvaluationRequest) {

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

    Request<GetEvaluationRequest> request =
        new DefaultRequest<GetEvaluationRequest>(getEvaluationRequest, "AmazonMachineLearning");
    request.addHeader("X-Amz-Target", "AmazonML_20141212.GetEvaluation");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      StringWriter stringWriter = new StringWriter();
      JSONWriter jsonWriter = new JSONWriter(stringWriter);

      jsonWriter.object();

      if (getEvaluationRequest.getEvaluationId() != null) {
        jsonWriter.key("EvaluationId").value(getEvaluationRequest.getEvaluationId());
      }

      jsonWriter.endObject();

      String snippet = stringWriter.toString();
      byte[] content = snippet.getBytes(UTF8);
      request.setContent(new StringInputStream(snippet));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", "application/x-amz-json-1.1");
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }