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

        if (obj instanceof AwsS3BucketWebsiteConfigurationRoutingRuleRedirect == false)
            return false;
        AwsS3BucketWebsiteConfigurationRoutingRuleRedirect other = (AwsS3BucketWebsiteConfigurationRoutingRuleRedirect) obj;
        if (other.getHostname() == null ^ this.getHostname() == null)
            return false;
        if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false)
            return false;
        if (other.getHttpRedirectCode() == null ^ this.getHttpRedirectCode() == null)
            return false;
        if (other.getHttpRedirectCode() != null && other.getHttpRedirectCode().equals(this.getHttpRedirectCode()) == false)
            return false;
        if (other.getProtocol() == null ^ this.getProtocol() == null)
            return false;
        if (other.getProtocol() != null && other.getProtocol().equals(this.getProtocol()) == false)
            return false;
        if (other.getReplaceKeyPrefixWith() == null ^ this.getReplaceKeyPrefixWith() == null)
            return false;
        if (other.getReplaceKeyPrefixWith() != null && other.getReplaceKeyPrefixWith().equals(this.getReplaceKeyPrefixWith()) == false)
            return false;
        if (other.getReplaceKeyWith() == null ^ this.getReplaceKeyWith() == null)
            return false;
        if (other.getReplaceKeyWith() != null && other.getReplaceKeyWith().equals(this.getReplaceKeyWith()) == 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-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsS3BucketWebsiteConfigurationRoutingRuleRedirect.java