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

    if (obj instanceof GetDistributionConfigRequest == false) return false;
    GetDistributionConfigRequest other = (GetDistributionConfigRequest) obj;

    if (other.getId() == null ^ this.getId() == null) return false;
    if (other.getId() != null && other.getId().equals(this.getId()) == false) return false;
    return true;
  }
  public Request<GetDistributionConfigRequest> marshall(
      GetDistributionConfigRequest getDistributionConfigRequest) {
    if (getDistributionConfigRequest == null) {
      throw new AmazonClientException("Invalid argument passed to marshall(...)");
    }

    Request<GetDistributionConfigRequest> request =
        new DefaultRequest<GetDistributionConfigRequest>(
            getDistributionConfigRequest, "AmazonCloudFront");
    request.setHttpMethod(HttpMethodName.GET);

    String uriResourcePath = "2012-03-15/distribution/{Id}/config";
    uriResourcePath =
        uriResourcePath.replace("{Id}", getString(getDistributionConfigRequest.getId()));

    if (uriResourcePath.contains("?")) {
      String queryString = uriResourcePath.substring(uriResourcePath.indexOf("?") + 1);
      uriResourcePath = uriResourcePath.substring(0, uriResourcePath.indexOf("?"));

      for (String s : queryString.split("[;&]")) {
        String[] nameValuePair = s.split("=");
        if (nameValuePair.length == 2) {
          request.addParameter(nameValuePair[0], nameValuePair[1]);
        } else {
          request.addParameter(s, null);
        }
      }
    }

    request.setResourcePath(uriResourcePath);

    return request;
  }