Class CfnVocabularyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.transcribe.CfnVocabularyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVocabularyMixinProps>
- Enclosing interface:
CfnVocabularyMixinProps
@Stability(Stable)
public static final class CfnVocabularyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVocabularyMixinProps>
A builder for
CfnVocabularyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnVocabularyMixinProps.getDataAccessRoleArn()languageCode(String languageCode) Sets the value ofCfnVocabularyMixinProps.getLanguageCode()Sets the value ofCfnVocabularyMixinProps.getPhrases()Sets the value ofCfnVocabularyMixinProps.getTags()vocabularyFileUri(String vocabularyFileUri) Sets the value ofCfnVocabularyMixinProps.getVocabularyFileUri()vocabularyName(String vocabularyName) Sets the value ofCfnVocabularyMixinProps.getVocabularyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataAccessRoleArn
@Stability(Stable) public CfnVocabularyMixinProps.Builder dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnVocabularyMixinProps.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
-
languageCode
Sets the value ofCfnVocabularyMixinProps.getLanguageCode()- Parameters:
languageCode- The language code that represents the language of the entries in your custom vocabulary. Each custom vocabulary must contain terms in only one language.- Returns:
this
-
phrases
Sets the value ofCfnVocabularyMixinProps.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 ofCfnVocabularyMixinProps.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
@Stability(Stable) public CfnVocabularyMixinProps.Builder vocabularyFileUri(String vocabularyFileUri) Sets the value ofCfnVocabularyMixinProps.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
-
vocabularyName
Sets the value ofCfnVocabularyMixinProps.getVocabularyName()- Parameters:
vocabularyName- A unique name, chosen by you, for your custom vocabulary. This name is case sensitive, cannot contain spaces, and must be unique within an AWS account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVocabularyMixinProps>- Returns:
- a new instance of
CfnVocabularyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-