Interface StartDocumentTextDetectionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartDocumentTextDetectionRequest.Builder,StartDocumentTextDetectionRequest>
,SdkBuilder<StartDocumentTextDetectionRequest.Builder,StartDocumentTextDetectionRequest>
,SdkPojo
,SdkRequest.Builder
,TextractRequest.Builder
- Enclosing class:
- StartDocumentTextDetectionRequest
public static interface StartDocumentTextDetectionRequest.Builder extends TextractRequest.Builder, SdkPojo, CopyableBuilder<StartDocumentTextDetectionRequest.Builder,StartDocumentTextDetectionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StartDocumentTextDetectionRequest.Builder
clientRequestToken(String clientRequestToken)
The idempotent token that's used to identify the start request.default StartDocumentTextDetectionRequest.Builder
documentLocation(Consumer<DocumentLocation.Builder> documentLocation)
The location of the document to be processed.StartDocumentTextDetectionRequest.Builder
documentLocation(DocumentLocation documentLocation)
The location of the document to be processed.StartDocumentTextDetectionRequest.Builder
jobTag(String jobTag)
An identifier that you specify that's included in the completion notification published to the Amazon SNS topic.StartDocumentTextDetectionRequest.Builder
kmsKeyId(String kmsKeyId)
The KMS key used to encrypt the inference results.default StartDocumentTextDetectionRequest.Builder
notificationChannel(Consumer<NotificationChannel.Builder> notificationChannel)
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.StartDocumentTextDetectionRequest.Builder
notificationChannel(NotificationChannel notificationChannel)
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.default StartDocumentTextDetectionRequest.Builder
outputConfig(Consumer<OutputConfig.Builder> outputConfig)
Sets if the output will go to a customer defined bucket.StartDocumentTextDetectionRequest.Builder
outputConfig(OutputConfig outputConfig)
Sets if the output will go to a customer defined bucket.StartDocumentTextDetectionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
StartDocumentTextDetectionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.textract.model.TextractRequest.Builder
build
-
-
-
-
Method Detail
-
documentLocation
StartDocumentTextDetectionRequest.Builder documentLocation(DocumentLocation documentLocation)
The location of the document to be processed.
- Parameters:
documentLocation
- The location of the document to be processed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentLocation
default StartDocumentTextDetectionRequest.Builder documentLocation(Consumer<DocumentLocation.Builder> documentLocation)
The location of the document to be processed.
This is a convenience method that creates an instance of theDocumentLocation.Builder
avoiding the need to create one manually viaDocumentLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentLocation(DocumentLocation)
.- Parameters:
documentLocation
- a consumer that will call methods onDocumentLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentLocation(DocumentLocation)
-
clientRequestToken
StartDocumentTextDetectionRequest.Builder clientRequestToken(String clientRequestToken)
The idempotent token that's used to identify the start request. If you use the same token with multiple
StartDocumentTextDetection
requests, the sameJobId
is returned. UseClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations.- Parameters:
clientRequestToken
- The idempotent token that's used to identify the start request. If you use the same token with multipleStartDocumentTextDetection
requests, the sameJobId
is returned. UseClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTag
StartDocumentTextDetectionRequest.Builder jobTag(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
JobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).- Parameters:
jobTag
- An identifier that you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can useJobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationChannel
StartDocumentTextDetectionRequest.Builder notificationChannel(NotificationChannel notificationChannel)
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
- Parameters:
notificationChannel
- The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationChannel
default StartDocumentTextDetectionRequest.Builder notificationChannel(Consumer<NotificationChannel.Builder> notificationChannel)
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
This is a convenience method that creates an instance of theNotificationChannel.Builder
avoiding the need to create one manually viaNotificationChannel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotificationChannel(NotificationChannel)
.- Parameters:
notificationChannel
- a consumer that will call methods onNotificationChannel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
notificationChannel(NotificationChannel)
-
outputConfig
StartDocumentTextDetectionRequest.Builder outputConfig(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 with the GetDocumentTextDetection operation.
- Parameters:
outputConfig
- Sets if the output will go to a customer defined bucket. By default Amazon Textract will save the results internally to be accessed with the GetDocumentTextDetection operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default StartDocumentTextDetectionRequest.Builder outputConfig(Consumer<OutputConfig.Builder> outputConfig)
Sets if the output will go to a customer defined bucket. By default Amazon Textract will save the results internally to be accessed with the GetDocumentTextDetection operation.
This is a convenience method that creates an instance of theOutputConfig.Builder
avoiding the need to create one manually viaOutputConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputConfig(OutputConfig)
.- Parameters:
outputConfig
- a consumer that will call methods onOutputConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
outputConfig(OutputConfig)
-
kmsKeyId
StartDocumentTextDetectionRequest.Builder kmsKeyId(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartDocumentTextDetectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
StartDocumentTextDetectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-