public Request<DescribeEnvironmentResourcesRequest> marshall(
      DescribeEnvironmentResourcesRequest describeEnvironmentResourcesRequest) {

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

    Request<DescribeEnvironmentResourcesRequest> request =
        new DefaultRequest<DescribeEnvironmentResourcesRequest>(
            describeEnvironmentResourcesRequest, "AWSElasticBeanstalk");
    request.addParameter("Action", "DescribeEnvironmentResources");
    request.addParameter("Version", "2010-12-01");

    if (describeEnvironmentResourcesRequest.getEnvironmentId() != null) {
      request.addParameter(
          "EnvironmentId",
          StringUtils.fromString(describeEnvironmentResourcesRequest.getEnvironmentId()));
    }
    if (describeEnvironmentResourcesRequest.getEnvironmentName() != null) {
      request.addParameter(
          "EnvironmentName",
          StringUtils.fromString(describeEnvironmentResourcesRequest.getEnvironmentName()));
    }

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

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

    if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false;
    if (other.getEnvironmentId() != null
        && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false;
    if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false;
    if (other.getEnvironmentName() != null
        && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false;
    return true;
  }