public ToxicityDetectionSettings withToxicityCategories(ToxicityCategory... toxicityCategories) {
        java.util.ArrayList<String> toxicityCategoriesCopy = new java.util.ArrayList<String>(toxicityCategories.length);
        for (ToxicityCategory value : toxicityCategories) {
            toxicityCategoriesCopy.add(value.toString());
        }
        if (getToxicityCategories() == null) {
            setToxicityCategories(toxicityCategoriesCopy);
        } else {
            getToxicityCategories().addAll(toxicityCategoriesCopy);
        }
        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>

@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