Class CfnFlywheelPropsMixin.DocumentClassificationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.comprehend.CfnFlywheelPropsMixin.DocumentClassificationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlywheelPropsMixin.DocumentClassificationConfigProperty>
- Enclosing interface:
CfnFlywheelPropsMixin.DocumentClassificationConfigProperty
@Stability(Stable)
public static final class CfnFlywheelPropsMixin.DocumentClassificationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlywheelPropsMixin.DocumentClassificationConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFlywheelPropsMixin.DocumentClassificationConfigProperty.getLabels()Sets the value ofCfnFlywheelPropsMixin.DocumentClassificationConfigProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
labels
@Stability(Stable) public CfnFlywheelPropsMixin.DocumentClassificationConfigProperty.Builder labels(List<String> labels) Sets the value ofCfnFlywheelPropsMixin.DocumentClassificationConfigProperty.getLabels()- Parameters:
labels- One or more labels to associate with the custom classifier.- Returns:
this
-
mode
@Stability(Stable) public CfnFlywheelPropsMixin.DocumentClassificationConfigProperty.Builder mode(String mode) Sets the value ofCfnFlywheelPropsMixin.DocumentClassificationConfigProperty.getMode()- Parameters:
mode- Classification mode indicates whether the documents areMULTI_CLASSorMULTI_LABEL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlywheelPropsMixin.DocumentClassificationConfigProperty>- Returns:
- a new instance of
CfnFlywheelPropsMixin.DocumentClassificationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-