Interface CreateAdapterVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAdapterVersionRequest.Builder,
,CreateAdapterVersionRequest> SdkBuilder<CreateAdapterVersionRequest.Builder,
,CreateAdapterVersionRequest> SdkPojo
,SdkRequest.Builder
,TextractRequest.Builder
- Enclosing class:
CreateAdapterVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionA string containing a unique ID for the adapter that will receive a new version.clientRequestToken
(String clientRequestToken) Idempotent token is used to recognize the request.datasetConfig
(Consumer<AdapterVersionDatasetConfig.Builder> datasetConfig) Specifies a dataset used to train a new adapter version.datasetConfig
(AdapterVersionDatasetConfig datasetConfig) Specifies a dataset used to train a new adapter version.The identifier for your AWS Key Management Service key (AWS KMS key).outputConfig
(Consumer<OutputConfig.Builder> outputConfig) Sets the value of the OutputConfig property for this object.outputConfig
(OutputConfig outputConfig) Sets the value of the OutputConfig property for this object.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A set of tags (key-value pairs) that you want to attach to the adapter version.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 Details
-
adapterId
A string containing a unique ID for the adapter that will receive a new version.
- Parameters:
adapterId
- A string containing a unique ID for the adapter that will receive a new version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.
- Parameters:
clientRequestToken
- Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetConfig
Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.
- Parameters:
datasetConfig
- Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetConfig
default CreateAdapterVersionRequest.Builder datasetConfig(Consumer<AdapterVersionDatasetConfig.Builder> datasetConfig) Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.
This is a convenience method that creates an instance of theAdapterVersionDatasetConfig.Builder
avoiding the need to create one manually viaAdapterVersionDatasetConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todatasetConfig(AdapterVersionDatasetConfig)
.- Parameters:
datasetConfig
- a consumer that will call methods onAdapterVersionDatasetConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKeyId
The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.
- Parameters:
kmsKeyId
- The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
Sets the value of the OutputConfig property for this object.- Parameters:
outputConfig
- The new value for the OutputConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CreateAdapterVersionRequest.Builder outputConfig(Consumer<OutputConfig.Builder> outputConfig) Sets the value of the OutputConfig property for this object. 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:
-
tags
A set of tags (key-value pairs) that you want to attach to the adapter version.
- Parameters:
tags
- A set of tags (key-value pairs) that you want to attach to the adapter version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAdapterVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAdapterVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-