public ToxicityDetectionSettings withToxicityCategories(String... toxicityCategories) {
        if (this.toxicityCategories == null) {
            setToxicityCategories(new java.util.ArrayList<String>(toxicityCategories.length));
        }
        for (String ele : toxicityCategories) {
            this.toxicityCategories.add(ele);
        }
        return this;
    }
<p>
If you include <code>ToxicityDetection</code> in your transcription request, you must also include
<code>ToxicityCategories</code>. The only accepted value for this parameter is <code>ALL</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setToxicityCategories(java.util.Collection)} or {@link #withToxicityCategories(java.util.Collection)} if
you want to override the existing values.
</p>

@param toxicityCategories
       If you include <code>ToxicityDetection</code> in your transcription request, you must also include
       <code>ToxicityCategories</code>. The only accepted value for this parameter is <code>ALL</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ToxicityCategory
aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/ToxicityDetectionSettings.java