Interface VocabularySettingsEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VocabularySettingsEntry.Builder,,VocabularySettingsEntry> SdkBuilder<VocabularySettingsEntry.Builder,,VocabularySettingsEntry> SdkPojo
- Enclosing class:
VocabularySettingsEntry
-
Method Summary
Modifier and TypeMethodDescriptionThe language this custom vocabulary applies to, as a base language code (for example,en).language(SyncLanguage language) The language this custom vocabulary applies to, as a base language code (for example,en).phrases(Collection<VocabularyPhrase> phrases) Up to 100 phrases to use as a custom vocabulary, provided inline.phrases(Consumer<VocabularyPhrase.Builder>... phrases) Up to 100 phrases to use as a custom vocabulary, provided inline.phrases(VocabularyPhrase... phrases) Up to 100 phrases to use as a custom vocabulary, provided inline.vocabularyName(String vocabularyName) The name of a custom vocabulary you created.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
The name of a custom vocabulary you created. The vocabulary must be in the
READYstate, and its language must match this entry'sLanguage.Vocabulary names are case sensitive.
Include either
VocabularyNameorPhrasesin each entry, but not both.- Parameters:
vocabularyName- The name of a custom vocabulary you created. The vocabulary must be in theREADYstate, and its language must match this entry'sLanguage.Vocabulary names are case sensitive.
Include either
VocabularyNameorPhrasesin 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
PhrasesorVocabularyNamein 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
PhrasesorVocabularyNamein 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
PhrasesorVocabularyNamein 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
PhrasesorVocabularyNamein 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
This is a convenience method that creates an instance of thePhrasesorVocabularyNamein each entry, but not both.VocabularyPhrase.Builderavoiding the need to create one manually viaVocabularyPhrase.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tophrases(List<VocabularyPhrase>).- Parameters:
phrases- a consumer that will call methods onVocabularyPhrase.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-