Class StartDocumentAnalysisRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.textract.model.TextractRequest
-
- software.amazon.awssdk.services.textract.model.StartDocumentAnalysisRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartDocumentAnalysisRequest.Builder,StartDocumentAnalysisRequest>
@Generated("software.amazon.awssdk:codegen") public final class StartDocumentAnalysisRequest extends TextractRequest implements ToCopyableBuilder<StartDocumentAnalysisRequest.Builder,StartDocumentAnalysisRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartDocumentAnalysisRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdaptersConfigadaptersConfig()Specifies the adapter to be used when analyzing a document.static StartDocumentAnalysisRequest.Builderbuilder()StringclientRequestToken()The idempotent token that you use to identify the start request.DocumentLocationdocumentLocation()The location of the document to be processed.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<FeatureType>featureTypes()A list of the types of analysis to perform.List<String>featureTypesAsStrings()A list of the types of analysis to perform.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasFeatureTypes()For responses, this returns true if the service returned a value for the FeatureTypes property.inthashCode()StringjobTag()An identifier that you specify that's included in the completion notification published to the Amazon SNS topic.StringkmsKeyId()The KMS key used to encrypt the inference results.NotificationChannelnotificationChannel()The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.OutputConfigoutputConfig()Sets if the output will go to a customer defined bucket.QueriesConfigqueriesConfig()Returns the value of the QueriesConfig property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StartDocumentAnalysisRequest.Builder>serializableBuilderClass()StartDocumentAnalysisRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
documentLocation
public final DocumentLocation documentLocation()
The location of the document to be processed.
- Returns:
- The location of the document to be processed.
-
featureTypes
public final List<FeatureType> featureTypes()
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables that are detected in the input document. Add FORMS to return detected form data. To perform both types of analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).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.- Returns:
- A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).
-
hasFeatureTypes
public final boolean hasFeatureTypes()
For responses, this returns true if the service returned a value for the FeatureTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
featureTypesAsStrings
public final List<String> featureTypesAsStrings()
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables that are detected in the input document. Add FORMS to return detected form data. To perform both types of analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).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.- Returns:
- A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).
-
clientRequestToken
public final String clientRequestToken()
The idempotent token that you use to identify the start request. If you use the same token with multiple
StartDocumentAnalysisrequests, the sameJobIdis returned. UseClientRequestTokento prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations.- Returns:
- The idempotent token that you use to identify the start request. If you use the same token with multiple
StartDocumentAnalysisrequests, the sameJobIdis returned. UseClientRequestTokento prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations.
-
jobTag
public final String jobTag()
An identifier that you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can use
JobTagto identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).- Returns:
- An identifier that you specify that's included in the completion notification published to the Amazon SNS
topic. For example, you can use
JobTagto identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).
-
notificationChannel
public final NotificationChannel notificationChannel()
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
- Returns:
- The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
-
outputConfig
public final OutputConfig outputConfig()
Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetDocumentAnalysis operation.
- Returns:
- Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetDocumentAnalysis operation.
-
kmsKeyId
public final String kmsKeyId()
The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
- Returns:
- The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
-
queriesConfig
public final QueriesConfig queriesConfig()
Returns the value of the QueriesConfig property for this object.- Returns:
- The value of the QueriesConfig property for this object.
-
adaptersConfig
public final AdaptersConfig adaptersConfig()
Specifies the adapter to be used when analyzing a document.
- Returns:
- Specifies the adapter to be used when analyzing a document.
-
toBuilder
public StartDocumentAnalysisRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartDocumentAnalysisRequest.Builder,StartDocumentAnalysisRequest>- Specified by:
toBuilderin classTextractRequest
-
builder
public static StartDocumentAnalysisRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartDocumentAnalysisRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-