Interface CreateAdapterVersionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAdapterVersionRequest.Builder,CreateAdapterVersionRequest>
,SdkBuilder<CreateAdapterVersionRequest.Builder,CreateAdapterVersionRequest>
,SdkPojo
,SdkRequest.Builder
,TextractRequest.Builder
- Enclosing class:
- CreateAdapterVersionRequest
public static interface CreateAdapterVersionRequest.Builder extends TextractRequest.Builder, SdkPojo, CopyableBuilder<CreateAdapterVersionRequest.Builder,CreateAdapterVersionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAdapterVersionRequest.Builder
adapterId(String adapterId)
A string containing a unique ID for the adapter that will receive a new version.CreateAdapterVersionRequest.Builder
clientRequestToken(String clientRequestToken)
Idempotent token is used to recognize the request.default CreateAdapterVersionRequest.Builder
datasetConfig(Consumer<AdapterVersionDatasetConfig.Builder> datasetConfig)
Specifies a dataset used to train a new adapter version.CreateAdapterVersionRequest.Builder
datasetConfig(AdapterVersionDatasetConfig datasetConfig)
Specifies a dataset used to train a new adapter version.CreateAdapterVersionRequest.Builder
kmsKeyId(String kmsKeyId)
The identifier for your AWS Key Management Service key (AWS KMS key).default CreateAdapterVersionRequest.Builder
outputConfig(Consumer<OutputConfig.Builder> outputConfig)
Sets the value of the OutputConfig property for this object.CreateAdapterVersionRequest.Builder
outputConfig(OutputConfig outputConfig)
Sets the value of the OutputConfig property for this object.CreateAdapterVersionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateAdapterVersionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateAdapterVersionRequest.Builder
tags(Map<String,String> tags)
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 Detail
-
adapterId
CreateAdapterVersionRequest.Builder adapterId(String 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
CreateAdapterVersionRequest.Builder clientRequestToken(String 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
CreateAdapterVersionRequest.Builder datasetConfig(AdapterVersionDatasetConfig 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:
datasetConfig(AdapterVersionDatasetConfig)
-
kmsKeyId
CreateAdapterVersionRequest.Builder kmsKeyId(String 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
CreateAdapterVersionRequest.Builder outputConfig(OutputConfig 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:
outputConfig(OutputConfig)
-
tags
CreateAdapterVersionRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAdapterVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-