Struct aws_sdk_comprehend::model::document_reader_config::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DocumentReaderConfig.
Implementations§
source§impl Builder
impl Builder
sourcepub fn document_read_action(self, input: DocumentReadAction) -> Self
pub fn document_read_action(self, input: DocumentReadAction) -> Self
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.
sourcepub fn set_document_read_action(self, input: Option<DocumentReadAction>) -> Self
pub fn set_document_read_action(self, input: Option<DocumentReadAction>) -> Self
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.
sourcepub fn document_read_mode(self, input: DocumentReadMode) -> Self
pub fn document_read_mode(self, input: DocumentReadMode) -> Self
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.
sourcepub fn set_document_read_mode(self, input: Option<DocumentReadMode>) -> Self
pub fn set_document_read_mode(self, input: Option<DocumentReadMode>) -> Self
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.
sourcepub fn feature_types(self, input: DocumentReadFeatureTypes) -> Self
pub fn feature_types(self, input: DocumentReadFeatureTypes) -> Self
Appends an item to feature_types.
To override the contents of this collection use set_feature_types.
Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:
-
TABLES- Returns information about any tables that are detected in the input document. -
FORMS- Returns information and the data from any forms that are detected in the input document.
sourcepub fn set_feature_types(
self,
input: Option<Vec<DocumentReadFeatureTypes>>
) -> Self
pub fn set_feature_types(
self,
input: Option<Vec<DocumentReadFeatureTypes>>
) -> Self
Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:
-
TABLES- Returns information about any tables that are detected in the input document. -
FORMS- Returns information and the data from any forms that are detected in the input document.
sourcepub fn build(self) -> DocumentReaderConfig
pub fn build(self) -> DocumentReaderConfig
Consumes the builder and constructs a DocumentReaderConfig.