public GuardrailWordPolicyAssessment withCustomWords(GuardrailCustomWord... customWords) {
        if (this.customWords == null) {
            setCustomWords(new java.util.ArrayList<GuardrailCustomWord>(customWords.length));
        }
        for (GuardrailCustomWord ele : customWords) {
            this.customWords.add(ele);
        }
        return this;
    }
<p>
Custom words in the assessment.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCustomWords(java.util.Collection)} or {@link #withCustomWords(java.util.Collection)} if you want to
override the existing values.
</p>

@param customWords
       Custom words in the assessment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/GuardrailWordPolicyAssessment.java