Class CfnEntityRecognizerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.comprehend.CfnEntityRecognizerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityRecognizerMixinProps>
- Enclosing interface:
CfnEntityRecognizerMixinProps
@Stability(Stable)
public static final class CfnEntityRecognizerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityRecognizerMixinProps>
A builder for
CfnEntityRecognizerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerMixinProps.getDataAccessRoleArn()inputDataConfig(CfnEntityRecognizerPropsMixin.EntityRecognizerInputDataConfigProperty inputDataConfig) Sets the value ofCfnEntityRecognizerMixinProps.getInputDataConfig()inputDataConfig(IResolvable inputDataConfig) Sets the value ofCfnEntityRecognizerMixinProps.getInputDataConfig()languageCode(String languageCode) Sets the value ofCfnEntityRecognizerMixinProps.getLanguageCode()modelKmsKeyId(String modelKmsKeyId) Sets the value ofCfnEntityRecognizerMixinProps.getModelKmsKeyId()modelPolicy(String modelPolicy) Sets the value ofCfnEntityRecognizerMixinProps.getModelPolicy()recognizerName(String recognizerName) Sets the value ofCfnEntityRecognizerMixinProps.getRecognizerName()Sets the value ofCfnEntityRecognizerMixinProps.getTags()versionName(String versionName) Sets the value ofCfnEntityRecognizerMixinProps.getVersionName()volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnEntityRecognizerMixinProps.getVolumeKmsKeyId()Sets the value ofCfnEntityRecognizerMixinProps.getVpcConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnEntityRecognizerMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataAccessRoleArn
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerMixinProps.getDataAccessRoleArn()- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.- Returns:
this
-
inputDataConfig
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder inputDataConfig(IResolvable inputDataConfig) Sets the value ofCfnEntityRecognizerMixinProps.getInputDataConfig()- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer.- Returns:
this
-
inputDataConfig
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder inputDataConfig(CfnEntityRecognizerPropsMixin.EntityRecognizerInputDataConfigProperty inputDataConfig) Sets the value ofCfnEntityRecognizerMixinProps.getInputDataConfig()- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer.- Returns:
this
-
languageCode
Sets the value ofCfnEntityRecognizerMixinProps.getLanguageCode()- Parameters:
languageCode- The language of the input documents. All documents must be in the same language.- Returns:
this
-
modelKmsKeyId
Sets the value ofCfnEntityRecognizerMixinProps.getModelKmsKeyId()- Parameters:
modelKmsKeyId- ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.- Returns:
this
-
modelPolicy
Sets the value ofCfnEntityRecognizerMixinProps.getModelPolicy()- Parameters:
modelPolicy- The JSON resource-based policy to attach to your custom entity recognizer model.- Returns:
this
-
recognizerName
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder recognizerName(String recognizerName) Sets the value ofCfnEntityRecognizerMixinProps.getRecognizerName()- Parameters:
recognizerName- The name given to the entity recognizer.- Returns:
this
-
tags
Sets the value ofCfnEntityRecognizerMixinProps.getTags()- Parameters:
tags- Tags to associate with the entity recognizer.- Returns:
this
-
versionName
Sets the value ofCfnEntityRecognizerMixinProps.getVersionName()- Parameters:
versionName- The version name given to the entity recognizer.- Returns:
this
-
volumeKmsKeyId
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnEntityRecognizerMixinProps.getVolumeKmsKeyId()- Parameters:
volumeKmsKeyId- ID for the AWS KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s).- Returns:
this
-
vpcConfig
Sets the value ofCfnEntityRecognizerMixinProps.getVpcConfig()- Parameters:
vpcConfig- Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnEntityRecognizerMixinProps.Builder vpcConfig(CfnEntityRecognizerPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnEntityRecognizerMixinProps.getVpcConfig()- Parameters:
vpcConfig- Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntityRecognizerMixinProps>- Returns:
- a new instance of
CfnEntityRecognizerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-