Class CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.comprehend.CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty>
- Enclosing interface:
CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty
@Stability(Stable)
public static final class CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.documentReadAction(String documentReadAction) documentReadMode(String documentReadMode) featureTypes(List<String> featureTypes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentReadAction
@Stability(Stable) public CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder documentReadAction(String documentReadAction) Sets the value ofCfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.getDocumentReadAction()- Parameters:
documentReadAction- This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:TEXTRACT_DETECT_DOCUMENT_TEXT- The Amazon Comprehend service uses theDetectDocumentTextAPI operation.TEXTRACT_ANALYZE_DOCUMENT- The Amazon Comprehend service uses theAnalyzeDocumentAPI operation.
- Returns:
this
-
documentReadMode
@Stability(Stable) public CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder documentReadMode(String documentReadMode) Sets the value ofCfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.getDocumentReadMode()- Parameters:
documentReadMode- Determines the text extraction actions for PDF files. Enter one of the following values:.SERVICE_DEFAULT- use the Amazon Comprehend service defaults for PDF files.FORCE_DOCUMENT_READ_ACTION- Amazon Comprehend uses the Textract API specified by DocumentReadAction for all PDF files, including digital PDF files.
- Returns:
this
-
featureTypes
@Stability(Stable) public CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty.Builder featureTypes(List<String> featureTypes) - Parameters:
featureTypes- Specifies the type of Amazon Textract features to apply. If you choseTEXTRACT_ANALYZE_DOCUMENTas the read action, you must specify one or both of the following values:TABLES- Returns additional information about any tables that are detected in the input document.FORMS- Returns additional information about any forms that are detected in the input document.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty>- Returns:
- a new instance of
CfnDocumentClassifierPropsMixin.DocumentReaderConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-