Class CfnVocabularyProps.Builder
java.lang.Object
software.amazon.awscdk.services.transcribe.CfnVocabularyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVocabularyProps>
- Enclosing interface:
CfnVocabularyProps
@Stability(Stable)
public static final class CfnVocabularyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVocabularyProps>
A builder for
CfnVocabularyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnVocabularyProps.getDataAccessRoleArn()languageCode(String languageCode) Sets the value ofCfnVocabularyProps.getLanguageCode()Sets the value ofCfnVocabularyProps.getPhrases()Sets the value ofCfnVocabularyProps.getTags()vocabularyFileUri(String vocabularyFileUri) Sets the value ofCfnVocabularyProps.getVocabularyFileUri()vocabularyName(String vocabularyName) Sets the value ofCfnVocabularyProps.getVocabularyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageCode
Sets the value ofCfnVocabularyProps.getLanguageCode()- Parameters:
languageCode- The language code that represents the language of the entries in your custom vocabulary. This parameter is required. Each custom vocabulary must contain terms in only one language.- Returns:
this
-
vocabularyName
Sets the value ofCfnVocabularyProps.getVocabularyName()- Parameters:
vocabularyName- A unique name, chosen by you, for your custom vocabulary. This parameter is required. This name is case sensitive, cannot contain spaces, and must be unique within an AWS account.- Returns:
this
-
dataAccessRoleArn
Sets the value ofCfnVocabularyProps.getDataAccessRoleArn()- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input file.- Returns:
this
-
phrases
Sets the value ofCfnVocabularyProps.getPhrases()- Parameters:
phrases- Use this parameter if you want to create your custom vocabulary by including all desired terms, as comma-separated values, within your request. You cannot use this parameter together with VocabularyFileUri.- Returns:
this
-
tags
Sets the value ofCfnVocabularyProps.getTags()- Parameters:
tags- Adds one or more custom tags, each in the form of a key:value pair, to the custom vocabulary.- Returns:
this
-
vocabularyFileUri
Sets the value ofCfnVocabularyProps.getVocabularyFileUri()- Parameters:
vocabularyFileUri- The Amazon S3 location of the text file that contains your custom vocabulary. You cannot use this parameter together with Phrases.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVocabularyProps>- Returns:
- a new instance of
CfnVocabularyProps - Throws:
NullPointerException- if any required attribute was not provided
-