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

        if (obj instanceof GetBucketEncryptionResult == false) {
            return false;
        }
        GetBucketEncryptionResult other = (GetBucketEncryptionResult) obj;
        if (other.getServerSideEncryptionConfiguration() == null ^ this.getServerSideEncryptionConfiguration() == null) {
            return false;
        }
        if (other.getServerSideEncryptionConfiguration() != null
            && other.getServerSideEncryptionConfiguration().equals(this.getServerSideEncryptionConfiguration()) == false) {
            return false;
        }

        return true;
    }
Returns a string representation of this object; useful for testing and debugging.

@return A string representation of this object.
@see java.lang.Object#toString()
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/GetBucketEncryptionResult.java