@Generated(value="software.amazon.awssdk:codegen") public final class DocumentReaderConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentReaderConfig.Builder,DocumentReaderConfig>
The input properties for a topic detection job.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocumentReaderConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DocumentReaderConfig.Builder |
builder() |
DocumentReadAction |
documentReadAction()
This enum field will start with two values which will apply to PDFs:
|
String |
documentReadActionAsString()
This enum field will start with two values which will apply to PDFs:
|
DocumentReadMode |
documentReadMode()
This enum field provides two values:
|
String |
documentReadModeAsString()
This enum field provides two values:
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<DocumentReadFeatureTypes> |
featureTypes()
Specifies how the text in an input file should be processed:
|
List<String> |
featureTypesAsStrings()
Specifies how the text in an input file should be processed:
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFeatureTypes()
For responses, this returns true if the service returned a value for the FeatureTypes property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DocumentReaderConfig.Builder> |
serializableBuilderClass() |
DocumentReaderConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final DocumentReadAction documentReadAction()
This enum field will start with two values which will apply to PDFs:
TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per page.
TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.
If the service returns an enum value that is not available in the current SDK version,
documentReadAction will return DocumentReadAction.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from documentReadActionAsString().
TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per
page.
TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.
DocumentReadActionpublic final String documentReadActionAsString()
This enum field will start with two values which will apply to PDFs:
TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per page.
TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.
If the service returns an enum value that is not available in the current SDK version,
documentReadAction will return DocumentReadAction.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from documentReadActionAsString().
TEXTRACT_DETECT_DOCUMENT_TEXT - The service calls DetectDocumentText for PDF documents per
page.
TEXTRACT_ANALYZE_DOCUMENT - The service calls AnalyzeDocument for PDF documents per page.
DocumentReadActionpublic final DocumentReadMode documentReadMode()
This enum field provides two values:
SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean using an
internal parser instead of Textract APIs
FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including Digital
PDF.
If the service returns an enum value that is not available in the current SDK version, documentReadMode
will return DocumentReadMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from documentReadModeAsString().
SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean
using an internal parser instead of Textract APIs
FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including
Digital PDF.
DocumentReadModepublic final String documentReadModeAsString()
This enum field provides two values:
SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean using an
internal parser instead of Textract APIs
FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including Digital
PDF.
If the service returns an enum value that is not available in the current SDK version, documentReadMode
will return DocumentReadMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from documentReadModeAsString().
SERVICE_DEFAULT - use service defaults for Document reading. For Digital PDF it would mean
using an internal parser instead of Textract APIs
FORCE_DOCUMENT_READ_ACTION - Always use specified action for DocumentReadAction, including
Digital PDF.
DocumentReadModepublic final List<DocumentReadFeatureTypes> featureTypes()
Specifies how the text in an input file should be processed:
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeatureTypes() method.
public final boolean hasFeatureTypes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> featureTypesAsStrings()
Specifies how the text in an input file should be processed:
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeatureTypes() method.
public DocumentReaderConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DocumentReaderConfig.Builder,DocumentReaderConfig>public static DocumentReaderConfig.Builder builder()
public static Class<? extends DocumentReaderConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.