public CreateVocabularyRequest withPhrases(String... phrases) {
        if (this.phrases == null) {
            setPhrases(new java.util.ArrayList<String>(phrases.length));
        }
        for (String ele : phrases) {
            this.phrases.add(ele);
        }
        return this;
    }
<p>
Use this parameter if you want to create your custom vocabulary by including all desired terms, as
comma-separated values, within your request. The other option for creating your custom vocabulary is to save your
entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your file using the
<code>VocabularyFileUri</code> parameter.
</p>
<p>
Note that if you include <code>Phrases</code> in your request, you cannot use <code>VocabularyFileUri</code>; you
must choose one or the other.
</p>
<p>
Each language has a character set that contains all allowed characters for that specific language. If you use
unsupported characters, your custom vocabulary filter request fails. Refer to <a
href="https://docs.aws.amazon.com/transcribe/latest/dg/charsets.html">Character Sets for Custom Vocabularies</a>
to get the character set for your language.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPhrases(java.util.Collection)} or {@link #withPhrases(java.util.Collection)} if you want to override
the existing values.
</p>

@param phrases
       Use this parameter if you want to create your custom vocabulary by including all desired terms, as
       comma-separated values, within your request. The other option for creating your custom vocabulary is to
       save your entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your
       file using the <code>VocabularyFileUri</code> parameter.</p>
       <p>
       Note that if you include <code>Phrases</code> in your request, you cannot use
       <code>VocabularyFileUri</code>; you must choose one or the other.
       </p>
       <p>
       Each language has a character set that contains all allowed characters for that specific language. If you
       use unsupported characters, your custom vocabulary filter request fails. Refer to <a
       href="https://docs.aws.amazon.com/transcribe/latest/dg/charsets.html">Character Sets for Custom
       Vocabularies</a> to get the character set for your language.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/CreateVocabularyRequest.java