@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportModelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ImportModelRequest() |
Modifier and Type | Method and Description |
---|---|
ImportModelRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDataAccessRoleArn()
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.
|
String |
getModelKmsKeyId()
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.
|
String |
getModelName()
The name to assign to the custom model that is created in Amazon Comprehend by this import.
|
String |
getSourceModelArn()
The Amazon Resource Name (ARN) of the custom model to import.
|
List<Tag> |
getTags()
Tags to associate with the custom model that is created by this import.
|
String |
getVersionName()
The version name given to the custom model that is created by this import.
|
int |
hashCode() |
void |
setDataAccessRoleArn(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.
|
void |
setModelKmsKeyId(String modelKmsKeyId)
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.
|
void |
setModelName(String modelName)
The name to assign to the custom model that is created in Amazon Comprehend by this import.
|
void |
setSourceModelArn(String sourceModelArn)
The Amazon Resource Name (ARN) of the custom model to import.
|
void |
setTags(Collection<Tag> tags)
Tags to associate with the custom model that is created by this import.
|
void |
setVersionName(String versionName)
The version name given to the custom model that is created by this import.
|
String |
toString()
Returns a string representation of this object.
|
ImportModelRequest |
withDataAccessRoleArn(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 |
withModelKmsKeyId(String modelKmsKeyId)
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models.
|
ImportModelRequest |
withModelName(String modelName)
The name to assign to the custom model that is created in Amazon Comprehend by this import.
|
ImportModelRequest |
withSourceModelArn(String sourceModelArn)
The Amazon Resource Name (ARN) of the custom model to import.
|
ImportModelRequest |
withTags(Collection<Tag> tags)
Tags to associate with the custom model that is created by this import.
|
ImportModelRequest |
withTags(Tag... tags)
Tags to associate with the custom model that is created by this import.
|
ImportModelRequest |
withVersionName(String versionName)
The version name given to the custom model that is created by this import.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSourceModelArn(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.public String getSourceModelArn()
The Amazon Resource Name (ARN) of the custom model to import.
public ImportModelRequest withSourceModelArn(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.public void setModelName(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.public String getModelName()
The name to assign to the custom model that is created in Amazon Comprehend by this import.
public ImportModelRequest withModelName(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.public void setVersionName(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.public String getVersionName()
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.
public ImportModelRequest withVersionName(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.public void setModelKmsKeyId(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"
public String getModelKmsKeyId()
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"
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"
public ImportModelRequest withModelKmsKeyId(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"
public void setDataAccessRoleArn(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.public String getDataAccessRoleArn()
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.
public ImportModelRequest withDataAccessRoleArn(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.public List<Tag> getTags()
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.
public void setTags(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.public ImportModelRequest withTags(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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
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.public ImportModelRequest withTags(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.public String toString()
toString
in class Object
Object.toString()
public ImportModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()