public static interface ClassifyDocumentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<ClassifyDocumentResponse.Builder,ClassifyDocumentResponse>
| Modifier and Type | Method and Description |
|---|---|
ClassifyDocumentResponse.Builder |
classes(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResponse.Builder |
classes(Consumer<DocumentClass.Builder>... classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResponse.Builder |
classes(DocumentClass... classes)
The classes used by the document being analyzed.
|
default ClassifyDocumentResponse.Builder |
documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Extraction information about the document.
|
ClassifyDocumentResponse.Builder |
documentMetadata(DocumentMetadata documentMetadata)
Extraction information about the document.
|
ClassifyDocumentResponse.Builder |
documentType(Collection<DocumentTypeListItem> documentType)
The document type for each page in the input document.
|
ClassifyDocumentResponse.Builder |
documentType(Consumer<DocumentTypeListItem.Builder>... documentType)
The document type for each page in the input document.
|
ClassifyDocumentResponse.Builder |
documentType(DocumentTypeListItem... documentType)
The document type for each page in the input document.
|
ClassifyDocumentResponse.Builder |
errors(Collection<ErrorsListItem> errors)
Page-level errors that the system detected while processing the input document.
|
ClassifyDocumentResponse.Builder |
errors(Consumer<ErrorsListItem.Builder>... errors)
Page-level errors that the system detected while processing the input document.
|
ClassifyDocumentResponse.Builder |
errors(ErrorsListItem... errors)
Page-level errors that the system detected while processing the input document.
|
ClassifyDocumentResponse.Builder |
labels(Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
ClassifyDocumentResponse.Builder |
labels(Consumer<DocumentLabel.Builder>... labels)
The labels used the document being analyzed.
|
ClassifyDocumentResponse.Builder |
labels(DocumentLabel... labels)
The labels used the document being analyzed.
|
ClassifyDocumentResponse.Builder |
warnings(Collection<WarningsListItem> warnings)
Warnings detected while processing the input document.
|
ClassifyDocumentResponse.Builder |
warnings(Consumer<WarningsListItem.Builder>... warnings)
Warnings detected while processing the input document.
|
ClassifyDocumentResponse.Builder |
warnings(WarningsListItem... warnings)
Warnings detected while processing the input document.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildClassifyDocumentResponse.Builder classes(Collection<DocumentClass> classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
classes - The classes used by the document being analyzed. These are used for multi-class trained models.
Individual classes are mutually exclusive and each document is expected to have only a single class
assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.ClassifyDocumentResponse.Builder classes(DocumentClass... classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
classes - The classes used by the document being analyzed. These are used for multi-class trained models.
Individual classes are mutually exclusive and each document is expected to have only a single class
assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.ClassifyDocumentResponse.Builder classes(Consumer<DocumentClass.Builder>... classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
This is a convenience method that creates an instance of theDocumentClass.Builder avoiding the need to create
one manually via DocumentClass.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #classes(List.
classes - a consumer that will call methods on
DocumentClass.Builder#classes(java.util.Collection) ClassifyDocumentResponse.Builder labels(Collection<DocumentLabel> labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
labels - The labels used the document being analyzed. These are used for multi-label trained models. Individual
labels represent different categories that are related in some manner and are not mutually exclusive.
For example, a movie can be just an action movie, or it can be an action movie, a science fiction
movie, and a comedy, all at the same time.ClassifyDocumentResponse.Builder labels(DocumentLabel... labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
labels - The labels used the document being analyzed. These are used for multi-label trained models. Individual
labels represent different categories that are related in some manner and are not mutually exclusive.
For example, a movie can be just an action movie, or it can be an action movie, a science fiction
movie, and a comedy, all at the same time.ClassifyDocumentResponse.Builder labels(Consumer<DocumentLabel.Builder>... labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
This is a convenience method that creates an instance of theDocumentLabel.Builder avoiding the need to create
one manually via DocumentLabel.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #labels(List.
labels - a consumer that will call methods on
DocumentLabel.Builder#labels(java.util.Collection) ClassifyDocumentResponse.Builder documentMetadata(DocumentMetadata documentMetadata)
Extraction information about the document. This field is present in the response only if your request
includes the Byte parameter.
documentMetadata - Extraction information about the document. This field is present in the response only if your request
includes the Byte parameter.default ClassifyDocumentResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Extraction information about the document. This field is present in the response only if your request
includes the Byte parameter.
DocumentMetadata.Builder avoiding the
need to create one manually via DocumentMetadata.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentMetadata(DocumentMetadata).
documentMetadata - a consumer that will call methods on DocumentMetadata.BuilderdocumentMetadata(DocumentMetadata)ClassifyDocumentResponse.Builder documentType(Collection<DocumentTypeListItem> documentType)
The document type for each page in the input document. This field is present in the response only if your
request includes the Byte parameter.
documentType - The document type for each page in the input document. This field is present in the response only if
your request includes the Byte parameter.ClassifyDocumentResponse.Builder documentType(DocumentTypeListItem... documentType)
The document type for each page in the input document. This field is present in the response only if your
request includes the Byte parameter.
documentType - The document type for each page in the input document. This field is present in the response only if
your request includes the Byte parameter.ClassifyDocumentResponse.Builder documentType(Consumer<DocumentTypeListItem.Builder>... documentType)
The document type for each page in the input document. This field is present in the response only if your
request includes the Byte parameter.
DocumentTypeListItem.Builder avoiding the need to
create one manually via
DocumentTypeListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #documentType(List.
documentType - a consumer that will call methods on
DocumentTypeListItem.Builder#documentType(java.util.Collection) ClassifyDocumentResponse.Builder errors(Collection<ErrorsListItem> errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
errors - Page-level errors that the system detected while processing the input document. The field is empty if
the system encountered no errors.ClassifyDocumentResponse.Builder errors(ErrorsListItem... errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
errors - Page-level errors that the system detected while processing the input document. The field is empty if
the system encountered no errors.ClassifyDocumentResponse.Builder errors(Consumer<ErrorsListItem.Builder>... errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
This is a convenience method that creates an instance of theErrorsListItem.Builder avoiding the need to create
one manually via ErrorsListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #errors(List.
errors - a consumer that will call methods on
ErrorsListItem.Builder#errors(java.util.Collection) ClassifyDocumentResponse.Builder warnings(Collection<WarningsListItem> warnings)
Warnings detected while processing the input document. The response includes a warning if there is a mismatch between the input document type and the model type associated with the endpoint that you specified. The response can also include warnings for individual pages that have a mismatch.
The field is empty if the system generated no warnings.
warnings - Warnings detected while processing the input document. The response includes a warning if there is a
mismatch between the input document type and the model type associated with the endpoint that you
specified. The response can also include warnings for individual pages that have a mismatch.
The field is empty if the system generated no warnings.
ClassifyDocumentResponse.Builder warnings(WarningsListItem... warnings)
Warnings detected while processing the input document. The response includes a warning if there is a mismatch between the input document type and the model type associated with the endpoint that you specified. The response can also include warnings for individual pages that have a mismatch.
The field is empty if the system generated no warnings.
warnings - Warnings detected while processing the input document. The response includes a warning if there is a
mismatch between the input document type and the model type associated with the endpoint that you
specified. The response can also include warnings for individual pages that have a mismatch.
The field is empty if the system generated no warnings.
ClassifyDocumentResponse.Builder warnings(Consumer<WarningsListItem.Builder>... warnings)
Warnings detected while processing the input document. The response includes a warning if there is a mismatch between the input document type and the model type associated with the endpoint that you specified. The response can also include warnings for individual pages that have a mismatch.
The field is empty if the system generated no warnings.
This is a convenience method that creates an instance of theWarningsListItem.Builder avoiding the need to create
one manually via WarningsListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #warnings(List.
warnings - a consumer that will call methods on
WarningsListItem.Builder#warnings(java.util.Collection) Copyright © 2023. All rights reserved.