@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || ! (obj instanceof RestoreObjectRequest)) {
            return false;
        }

        final RestoreObjectRequest other = (RestoreObjectRequest) obj;

        if (other.getExpirationInDays() != this.getExpirationInDays())
            return false;
        if (other.getBucketName() == null ^ this.getBucketName() == null)
            return false;
        if (other.getBucketName() != null && !other.getBucketName().equals(this.getBucketName()))
            return false;
        if (other.getKey() == null ^ this.getKey() == null)
            return false;
        if (other.getKey() != null && !other.getKey().equals(this.getKey()))
            return false;
        if (other.getVersionId() == null ^ this.getVersionId() == null)
            return false;
        if (other.getVersionId() != null && !other.getVersionId().equals(this.getVersionId()))
            return false;
        if (other.getGlacierJobParameters() == null ^ this.getGlacierJobParameters() == null)
            return false;
        if (other.getGlacierJobParameters() != null && !other.getGlacierJobParameters().equals(this.getGlacierJobParameters()))
            return false;
        if (other.getType() == null ^ this.getType() == null)
            return false;
        if (other.getType() != null && !other.getType().equals(this.getType()))
            return false;
        if (other.getTier() == null ^ this.getTier() == null)
            return false;
        if (other.getTier() != null && !other.getTier().equals(this.getTier()))
            return false;
        if (other.getDescription() == null ^ this.getDescription() == null)
            return false;
        if (other.getDescription() != null && !other.getDescription().equals(this.getDescription()))
            return false;
        if (other.getSelectParameters() == null ^ this.getSelectParameters() == null)
            return false;
        if (other.getSelectParameters() != null && !other.getSelectParameters().equals(this.getSelectParameters()))
            return false;
        if (other.getOutputLocation() == null ^ this.getOutputLocation() == null)
            return false;
        if (other.getOutputLocation() != null && !other.getOutputLocation().equals(this.getOutputLocation()))
            return false;
        if (other.isRequesterPays() != this.isRequesterPays())
            return false;
        return true;
    }
Sets the location where the restore job's output is stored.

@param outputLocation New value for output location
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java