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

        final InputSerialization other = (InputSerialization) obj;

        if (other.getCsv() == null ^ this.getCsv() == null)
            return false;
        if (other.getCsv() != null && !other.getCsv().equals(this.getCsv()))
            return false;
        if (other.getJson() == null ^ this.getJson() == null)
            return false;
        if (other.getJson() != null && !other.getJson().equals(this.getJson()))
            return false;
        if (other.getCompressionType() == null ^ this.getCompressionType() == null)
            return false;
        if (other.getCompressionType() != null && !other.getCompressionType().equals(this.getCompressionType()))
            return false;
        return true;
    }
Specifies object's compression format. Valid values: NONE, GZIP. Default Value: NONE.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/InputSerialization.java