@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getTopicPolicyUnits() != null)
            sb.append("TopicPolicyUnits: ").append(getTopicPolicyUnits()).append(",");
        if (getContentPolicyUnits() != null)
            sb.append("ContentPolicyUnits: ").append(getContentPolicyUnits()).append(",");
        if (getWordPolicyUnits() != null)
            sb.append("WordPolicyUnits: ").append(getWordPolicyUnits()).append(",");
        if (getSensitiveInformationPolicyUnits() != null)
            sb.append("SensitiveInformationPolicyUnits: ").append(getSensitiveInformationPolicyUnits()).append(",");
        if (getSensitiveInformationPolicyFreeUnits() != null)
            sb.append("SensitiveInformationPolicyFreeUnits: ").append(getSensitiveInformationPolicyFreeUnits()).append(",");
        if (getContextualGroundingPolicyUnits() != null)
            sb.append("ContextualGroundingPolicyUnits: ").append(getContextualGroundingPolicyUnits());
        sb.append("}");
        return sb.toString();
    }
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