public class ImportTerminologyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.
Constructor and Description |
---|
ImportTerminologyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the custom terminology being imported.
|
EncryptionKey |
getEncryptionKey()
The encryption key for the custom terminology being imported.
|
java.lang.String |
getMergeStrategy()
The merge strategy of the custom terminology being imported.
|
java.lang.String |
getName()
The name of the custom terminology being imported.
|
TerminologyData |
getTerminologyData()
The terminology data for the custom terminology being imported.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description of the custom terminology being imported.
|
void |
setEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology being imported.
|
void |
setMergeStrategy(MergeStrategy mergeStrategy)
The merge strategy of the custom terminology being imported.
|
void |
setMergeStrategy(java.lang.String mergeStrategy)
The merge strategy of the custom terminology being imported.
|
void |
setName(java.lang.String name)
The name of the custom terminology being imported.
|
void |
setTerminologyData(TerminologyData terminologyData)
The terminology data for the custom terminology being imported.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportTerminologyRequest |
withDescription(java.lang.String description)
The description of the custom terminology being imported.
|
ImportTerminologyRequest |
withEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology being imported.
|
ImportTerminologyRequest |
withMergeStrategy(MergeStrategy mergeStrategy)
The merge strategy of the custom terminology being imported.
|
ImportTerminologyRequest |
withMergeStrategy(java.lang.String mergeStrategy)
The merge strategy of the custom terminology being imported.
|
ImportTerminologyRequest |
withName(java.lang.String name)
The name of the custom terminology being imported.
|
ImportTerminologyRequest |
withTerminologyData(TerminologyData terminologyData)
The terminology data for the custom terminology being imported.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getName()
The name of the custom terminology being imported.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
The name of the custom terminology being imported.
public void setName(java.lang.String name)
The name of the custom terminology being imported.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name
- The name of the custom terminology being imported.
public ImportTerminologyRequest withName(java.lang.String name)
The name of the custom terminology being imported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name
- The name of the custom terminology being imported.
public java.lang.String getMergeStrategy()
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
Constraints:
Allowed Values: OVERWRITE
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
MergeStrategy
public void setMergeStrategy(java.lang.String mergeStrategy)
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
Constraints:
Allowed Values: OVERWRITE
mergeStrategy
- The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
MergeStrategy
public ImportTerminologyRequest withMergeStrategy(java.lang.String mergeStrategy)
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OVERWRITE
mergeStrategy
- The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
MergeStrategy
public void setMergeStrategy(MergeStrategy mergeStrategy)
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
Constraints:
Allowed Values: OVERWRITE
mergeStrategy
- The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
MergeStrategy
public ImportTerminologyRequest withMergeStrategy(MergeStrategy mergeStrategy)
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OVERWRITE
mergeStrategy
- The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
MergeStrategy
public java.lang.String getDescription()
The description of the custom terminology being imported.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
The description of the custom terminology being imported.
public void setDescription(java.lang.String description)
The description of the custom terminology being imported.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description
- The description of the custom terminology being imported.
public ImportTerminologyRequest withDescription(java.lang.String description)
The description of the custom terminology being imported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description
- The description of the custom terminology being imported.
public TerminologyData getTerminologyData()
The terminology data for the custom terminology being imported.
The terminology data for the custom terminology being imported.
public void setTerminologyData(TerminologyData terminologyData)
The terminology data for the custom terminology being imported.
terminologyData
- The terminology data for the custom terminology being imported.
public ImportTerminologyRequest withTerminologyData(TerminologyData terminologyData)
The terminology data for the custom terminology being imported.
Returns a reference to this object so that method calls can be chained together.
terminologyData
- The terminology data for the custom terminology being imported.
public EncryptionKey getEncryptionKey()
The encryption key for the custom terminology being imported.
The encryption key for the custom terminology being imported.
public void setEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology being imported.
encryptionKey
- The encryption key for the custom terminology being imported.
public ImportTerminologyRequest withEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology being imported.
Returns a reference to this object so that method calls can be chained together.
encryptionKey
- The encryption key for the custom terminology being imported.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.