@Generated(value="software.amazon.awssdk:codegen") public final class ClassifyDocumentRequest extends ComprehendRequest implements ToCopyableBuilder<ClassifyDocumentRequest.Builder,ClassifyDocumentRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassifyDocumentRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ClassifyDocumentRequest.Builder |
builder() |
SdkBytes |
bytes()
Use the
Bytes parameter to input a text, PDF, Word or image file. |
DocumentReaderConfig |
documentReaderConfig()
Provides configuration parameters to override the default actions for extracting text from PDF documents and
image files.
|
String |
endpointArn()
The Amazon Resource Number (ARN) of the endpoint.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ClassifyDocumentRequest.Builder> |
serializableBuilderClass() |
String |
text()
The document text to be analyzed.
|
ClassifyDocumentRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String text()
The document text to be analyzed. If you enter text using this parameter, do not use the Bytes
parameter.
Bytes parameter.public final String endpointArn()
The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.
public final SdkBytes bytes()
Use the Bytes parameter to input a text, PDF, Word or image file. You can also use the
Bytes parameter to input an Amazon Textract DetectDocumentText or
AnalyzeDocument output file.
Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.
The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.
If you use the Bytes parameter, do not use the Text parameter.
Bytes parameter to input a text, PDF, Word or image file. You can also use the
Bytes parameter to input an Amazon Textract DetectDocumentText or
AnalyzeDocument output file.
Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.
The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.
If you use the Bytes parameter, do not use the Text parameter.
public final DocumentReaderConfig documentReaderConfig()
Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.
public ClassifyDocumentRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ClassifyDocumentRequest.Builder,ClassifyDocumentRequest>toBuilder in class ComprehendRequestpublic static ClassifyDocumentRequest.Builder builder()
public static Class<? extends ClassifyDocumentRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.