Class CfnFlywheel.TaskConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnFlywheel.TaskConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlywheel.TaskConfigProperty>
- Enclosing interface:
CfnFlywheel.TaskConfigProperty
@Stability(Stable)
public static final class CfnFlywheel.TaskConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlywheel.TaskConfigProperty>
A builder for
CfnFlywheel.TaskConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.documentClassificationConfig(IResolvable documentClassificationConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getDocumentClassificationConfig()documentClassificationConfig(CfnFlywheel.DocumentClassificationConfigProperty documentClassificationConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getDocumentClassificationConfig()entityRecognitionConfig(IResolvable entityRecognitionConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getEntityRecognitionConfig()entityRecognitionConfig(CfnFlywheel.EntityRecognitionConfigProperty entityRecognitionConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getEntityRecognitionConfig()languageCode(String languageCode) Sets the value ofCfnFlywheel.TaskConfigProperty.getLanguageCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageCode
Sets the value ofCfnFlywheel.TaskConfigProperty.getLanguageCode()- Parameters:
languageCode- Language code for the language that the model supports. This parameter is required.- Returns:
this
-
documentClassificationConfig
@Stability(Stable) public CfnFlywheel.TaskConfigProperty.Builder documentClassificationConfig(IResolvable documentClassificationConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getDocumentClassificationConfig()- Parameters:
documentClassificationConfig- Configuration required for a document classification model.- Returns:
this
-
documentClassificationConfig
@Stability(Stable) public CfnFlywheel.TaskConfigProperty.Builder documentClassificationConfig(CfnFlywheel.DocumentClassificationConfigProperty documentClassificationConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getDocumentClassificationConfig()- Parameters:
documentClassificationConfig- Configuration required for a document classification model.- Returns:
this
-
entityRecognitionConfig
@Stability(Stable) public CfnFlywheel.TaskConfigProperty.Builder entityRecognitionConfig(IResolvable entityRecognitionConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getEntityRecognitionConfig()- Parameters:
entityRecognitionConfig- Configuration required for an entity recognition model.- Returns:
this
-
entityRecognitionConfig
@Stability(Stable) public CfnFlywheel.TaskConfigProperty.Builder entityRecognitionConfig(CfnFlywheel.EntityRecognitionConfigProperty entityRecognitionConfig) Sets the value ofCfnFlywheel.TaskConfigProperty.getEntityRecognitionConfig()- Parameters:
entityRecognitionConfig- Configuration required for an entity recognition model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlywheel.TaskConfigProperty>- Returns:
- a new instance of
CfnFlywheel.TaskConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-