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

        if (obj instanceof GuardrailUsage == false)
            return false;
        GuardrailUsage other = (GuardrailUsage) obj;
        if (other.getTopicPolicyUnits() == null ^ this.getTopicPolicyUnits() == null)
            return false;
        if (other.getTopicPolicyUnits() != null && other.getTopicPolicyUnits().equals(this.getTopicPolicyUnits()) == false)
            return false;
        if (other.getContentPolicyUnits() == null ^ this.getContentPolicyUnits() == null)
            return false;
        if (other.getContentPolicyUnits() != null && other.getContentPolicyUnits().equals(this.getContentPolicyUnits()) == false)
            return false;
        if (other.getWordPolicyUnits() == null ^ this.getWordPolicyUnits() == null)
            return false;
        if (other.getWordPolicyUnits() != null && other.getWordPolicyUnits().equals(this.getWordPolicyUnits()) == false)
            return false;
        if (other.getSensitiveInformationPolicyUnits() == null ^ this.getSensitiveInformationPolicyUnits() == null)
            return false;
        if (other.getSensitiveInformationPolicyUnits() != null
                && other.getSensitiveInformationPolicyUnits().equals(this.getSensitiveInformationPolicyUnits()) == false)
            return false;
        if (other.getSensitiveInformationPolicyFreeUnits() == null ^ this.getSensitiveInformationPolicyFreeUnits() == null)
            return false;
        if (other.getSensitiveInformationPolicyFreeUnits() != null
                && other.getSensitiveInformationPolicyFreeUnits().equals(this.getSensitiveInformationPolicyFreeUnits()) == false)
            return false;
        if (other.getContextualGroundingPolicyUnits() == null ^ this.getContextualGroundingPolicyUnits() == null)
            return false;
        if (other.getContextualGroundingPolicyUnits() != null
                && other.getContextualGroundingPolicyUnits().equals(this.getContextualGroundingPolicyUnits()) == 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-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/GuardrailUsage.java