Class CfnEntityRecognizerProps.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnEntityRecognizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityRecognizerProps>
- Enclosing interface:
CfnEntityRecognizerProps
@Stability(Stable)
public static final class CfnEntityRecognizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityRecognizerProps>
A builder for
CfnEntityRecognizerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerProps.getDataAccessRoleArn()inputDataConfig(IResolvable inputDataConfig) Sets the value ofCfnEntityRecognizerProps.getInputDataConfig()Sets the value ofCfnEntityRecognizerProps.getInputDataConfig()languageCode(String languageCode) Sets the value ofCfnEntityRecognizerProps.getLanguageCode()modelKmsKeyId(String modelKmsKeyId) Sets the value ofCfnEntityRecognizerProps.getModelKmsKeyId()modelPolicy(String modelPolicy) Sets the value ofCfnEntityRecognizerProps.getModelPolicy()recognizerName(String recognizerName) Sets the value ofCfnEntityRecognizerProps.getRecognizerName()Sets the value ofCfnEntityRecognizerProps.getTags()versionName(String versionName) Sets the value ofCfnEntityRecognizerProps.getVersionName()volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnEntityRecognizerProps.getVolumeKmsKeyId()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnEntityRecognizerProps.getVpcConfig()vpcConfig(CfnEntityRecognizer.VpcConfigProperty vpcConfig) Sets the value ofCfnEntityRecognizerProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataAccessRoleArn
@Stability(Stable) public CfnEntityRecognizerProps.Builder dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerProps.getDataAccessRoleArn()- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. This parameter is required.- Returns:
this
-
inputDataConfig
@Stability(Stable) public CfnEntityRecognizerProps.Builder inputDataConfig(IResolvable inputDataConfig) Sets the value ofCfnEntityRecognizerProps.getInputDataConfig()- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer. This parameter is required.- Returns:
this
-
inputDataConfig
@Stability(Stable) public CfnEntityRecognizerProps.Builder inputDataConfig(CfnEntityRecognizer.EntityRecognizerInputDataConfigProperty inputDataConfig) Sets the value ofCfnEntityRecognizerProps.getInputDataConfig()- Parameters:
inputDataConfig- Specifies the format and location of the input data for an entity recognizer. This parameter is required.- Returns:
this
-
languageCode
Sets the value ofCfnEntityRecognizerProps.getLanguageCode()- Parameters:
languageCode- The language of the input documents. This parameter is required. All documents must be in the same language.- Returns:
this
-
recognizerName
Sets the value ofCfnEntityRecognizerProps.getRecognizerName()- Parameters:
recognizerName- The name given to the entity recognizer. This parameter is required.- Returns:
this
-
modelKmsKeyId
Sets the value ofCfnEntityRecognizerProps.getModelKmsKeyId()- Parameters:
modelKmsKeyId- ID for the AWS KMS key that Amazon Comprehend uses to encrypt trained custom models.- Returns:
this
-
modelPolicy
Sets the value ofCfnEntityRecognizerProps.getModelPolicy()- Parameters:
modelPolicy- The JSON resource-based policy to attach to your custom entity recognizer model.- Returns:
this
-
tags
Sets the value ofCfnEntityRecognizerProps.getTags()- Parameters:
tags- Tags to associate with the entity recognizer.- Returns:
this
-
versionName
Sets the value ofCfnEntityRecognizerProps.getVersionName()- Parameters:
versionName- The version name given to the entity recognizer.- Returns:
this
-
volumeKmsKeyId
Sets the value ofCfnEntityRecognizerProps.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 ofCfnEntityRecognizerProps.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 CfnEntityRecognizerProps.Builder vpcConfig(CfnEntityRecognizer.VpcConfigProperty vpcConfig) Sets the value ofCfnEntityRecognizerProps.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<CfnEntityRecognizerProps>- Returns:
- a new instance of
CfnEntityRecognizerProps - Throws:
NullPointerException- if any required attribute was not provided
-