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

        if (obj instanceof EncryptionEntity == false)
            return false;
        EncryptionEntity other = (EncryptionEntity) obj;
        if (other.getPublicKeyId() == null ^ this.getPublicKeyId() == null)
            return false;
        if (other.getPublicKeyId() != null && other.getPublicKeyId().equals(this.getPublicKeyId()) == false)
            return false;
        if (other.getProviderId() == null ^ this.getProviderId() == null)
            return false;
        if (other.getProviderId() != null && other.getProviderId().equals(this.getProviderId()) == false)
            return false;
        if (other.getFieldPatterns() == null ^ this.getFieldPatterns() == null)
            return false;
        if (other.getFieldPatterns() != null && other.getFieldPatterns().equals(this.getFieldPatterns()) == false)
            return false;
        return true;
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/EncryptionEntity.java