Interface VocabularySettingsEntry.Builder

  • Method Details

    • language

      The language this custom vocabulary applies to, as a base language code (for example, en). Each language can appear in only one entry.

      Parameters:
      language - The language this custom vocabulary applies to, as a base language code (for example, en ). Each language can appear in only one entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • language

      The language this custom vocabulary applies to, as a base language code (for example, en). Each language can appear in only one entry.

      Parameters:
      language - The language this custom vocabulary applies to, as a base language code (for example, en ). Each language can appear in only one entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • vocabularyName

      VocabularySettingsEntry.Builder vocabularyName(String vocabularyName)

      The name of a custom vocabulary you created. The vocabulary must be in the READY state, and its language must match this entry's Language.

      Vocabulary names are case sensitive.

      Include either VocabularyName or Phrases in each entry, but not both.

      Parameters:
      vocabularyName - The name of a custom vocabulary you created. The vocabulary must be in the READY state, and its language must match this entry's Language.

      Vocabulary names are case sensitive.

      Include either VocabularyName or Phrases in each entry, but not both.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phrases

      Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to create the vocabulary first.

      Include either Phrases or VocabularyName in each entry, but not both.

      Parameters:
      phrases - Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to create the vocabulary first.

      Include either Phrases or VocabularyName in each entry, but not both.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phrases

      Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to create the vocabulary first.

      Include either Phrases or VocabularyName in each entry, but not both.

      Parameters:
      phrases - Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to create the vocabulary first.

      Include either Phrases or VocabularyName in each entry, but not both.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phrases

      Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to create the vocabulary first.

      Include either Phrases or VocabularyName in each entry, but not both.

      This is a convenience method that creates an instance of the VocabularyPhrase.Builder avoiding the need to create one manually via VocabularyPhrase.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to phrases(List<VocabularyPhrase>).

      Parameters:
      phrases - a consumer that will call methods on VocabularyPhrase.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: