public static interface ImportModelRequest.Builder extends ComprehendRequest.Builder, SdkPojo, CopyableBuilder<ImportModelRequest.Builder,ImportModelRequest>
| Modifier and Type | Method and Description |
|---|---|
ImportModelRequest.Builder |
dataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to use Amazon Key
Management Service (KMS) to encrypt or decrypt the custom model.
|
ImportModelRequest.Builder |
modelKmsKeyId(String modelKmsKeyId)
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.
|
ImportModelRequest.Builder |
modelName(String modelName)
The name to assign to the custom model that is created in Amazon Comprehend by this import.
|
ImportModelRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
ImportModelRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
ImportModelRequest.Builder |
sourceModelArn(String sourceModelArn)
The Amazon Resource Name (ARN) of the custom model to import.
|
ImportModelRequest.Builder |
tags(Collection<Tag> tags)
Tags to associate with the custom model that is created by this import.
|
ImportModelRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
Tags to associate with the custom model that is created by this import.
|
ImportModelRequest.Builder |
tags(Tag... tags)
Tags to associate with the custom model that is created by this import.
|
ImportModelRequest.Builder |
versionName(String versionName)
The version name given to the custom model that is created by this import.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildImportModelRequest.Builder sourceModelArn(String sourceModelArn)
The Amazon Resource Name (ARN) of the custom model to import.
sourceModelArn - The Amazon Resource Name (ARN) of the custom model to import.ImportModelRequest.Builder modelName(String modelName)
The name to assign to the custom model that is created in Amazon Comprehend by this import.
modelName - The name to assign to the custom model that is created in Amazon Comprehend by this import.ImportModelRequest.Builder versionName(String versionName)
The version name given to the custom model that is created by this import. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/Region.
versionName - The version name given to the custom model that is created by this import. Version names can have a
maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The
version name must be unique among all models with the same classifier name in the account/Region.ImportModelRequest.Builder modelKmsKeyId(String modelKmsKeyId)
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
modelKmsKeyId - ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can
be either of the following formats:
KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
ImportModelRequest.Builder dataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to use Amazon Key Management Service (KMS) to encrypt or decrypt the custom model.
dataAccessRoleArn - The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to use Amazon
Key Management Service (KMS) to encrypt or decrypt the custom model.ImportModelRequest.Builder tags(Collection<Tag> tags)
Tags to associate with the custom model that is created by this import. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
tags - Tags to associate with the custom model that is created by this import. A tag is a key-value pair that
adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key
might be added to a resource to indicate its use by the sales department.ImportModelRequest.Builder tags(Tag... tags)
Tags to associate with the custom model that is created by this import. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
tags - Tags to associate with the custom model that is created by this import. A tag is a key-value pair that
adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key
might be added to a resource to indicate its use by the sales department.ImportModelRequest.Builder tags(Consumer<Tag.Builder>... tags)
Tags to associate with the custom model that is created by this import. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) ImportModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderImportModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.