public class TerminologyProperties extends Object implements Serializable
The properties of the custom terminology.
| Constructor and Description |
|---|
TerminologyProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the custom terminology.
|
Date |
getCreatedAt()
The time at which the custom terminology was created, based on the
timestamp.
|
String |
getDescription()
The description of the custom terminology properties.
|
EncryptionKey |
getEncryptionKey()
The encryption key for the custom terminology.
|
Date |
getLastUpdatedAt()
The time at which the custom terminology was last update, based on the
timestamp.
|
String |
getName()
The name of the custom terminology.
|
Integer |
getSizeBytes()
The size of the file used when importing a custom terminology.
|
String |
getSourceLanguageCode()
The language code for the source text of the translation request for
which the custom terminology is being used.
|
List<String> |
getTargetLanguageCodes()
The language codes for the target languages available with the custom
terminology file.
|
Integer |
getTermCount()
The number of terms included in the custom terminology.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the custom terminology.
|
void |
setCreatedAt(Date createdAt)
The time at which the custom terminology was created, based on the
timestamp.
|
void |
setDescription(String description)
The description of the custom terminology properties.
|
void |
setEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the
timestamp.
|
void |
setName(String name)
The name of the custom terminology.
|
void |
setSizeBytes(Integer sizeBytes)
The size of the file used when importing a custom terminology.
|
void |
setSourceLanguageCode(String sourceLanguageCode)
The language code for the source text of the translation request for
which the custom terminology is being used.
|
void |
setTargetLanguageCodes(Collection<String> targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
void |
setTermCount(Integer termCount)
The number of terms included in the custom terminology.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminologyProperties |
withArn(String arn)
The Amazon Resource Name (ARN) of the custom terminology.
|
TerminologyProperties |
withCreatedAt(Date createdAt)
The time at which the custom terminology was created, based on the
timestamp.
|
TerminologyProperties |
withDescription(String description)
The description of the custom terminology properties.
|
TerminologyProperties |
withEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
|
TerminologyProperties |
withLastUpdatedAt(Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the
timestamp.
|
TerminologyProperties |
withName(String name)
The name of the custom terminology.
|
TerminologyProperties |
withSizeBytes(Integer sizeBytes)
The size of the file used when importing a custom terminology.
|
TerminologyProperties |
withSourceLanguageCode(String sourceLanguageCode)
The language code for the source text of the translation request for
which the custom terminology is being used.
|
TerminologyProperties |
withTargetLanguageCodes(Collection<String> targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
TerminologyProperties |
withTargetLanguageCodes(String... targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
TerminologyProperties |
withTermCount(Integer termCount)
The number of terms included in the custom terminology.
|
public String getName()
The name of the custom terminology.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
The name of the custom terminology.
public void setName(String name)
The name of the custom terminology.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name - The name of the custom terminology.
public TerminologyProperties withName(String name)
The name of the custom terminology.
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.
public String getDescription()
The description of the custom terminology properties.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
The description of the custom terminology properties.
public void setDescription(String description)
The description of the custom terminology properties.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description - The description of the custom terminology properties.
public TerminologyProperties withDescription(String description)
The description of the custom terminology properties.
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 properties.
public String getArn()
The Amazon Resource Name (ARN) of the custom terminology.
Constraints:
Pattern:
^arn:aws((-us-gov)|(-cn))?:translate:[a-zA-Z0-9-]+:[0-9]{12
}:terminology/.+?/.+?$
The Amazon Resource Name (ARN) of the custom terminology.
public void setArn(String arn)
The Amazon Resource Name (ARN) of the custom terminology.
Constraints:
Pattern:
^arn:aws((-us-gov)|(-cn))?:translate:[a-zA-Z0-9-]+:[0-9]{12
}:terminology/.+?/.+?$
arn - The Amazon Resource Name (ARN) of the custom terminology.
public TerminologyProperties withArn(String arn)
The Amazon Resource Name (ARN) of the custom terminology.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern:
^arn:aws((-us-gov)|(-cn))?:translate:[a-zA-Z0-9-]+:[0-9]{12
}:terminology/.+?/.+?$
arn - The Amazon Resource Name (ARN) of the custom terminology.
public String getSourceLanguageCode()
The language code for the source text of the translation request for which the custom terminology is being used.
Constraints:
Length: 2 - 5
The language code for the source text of the translation request for which the custom terminology is being used.
public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the source text of the translation request for which the custom terminology is being used.
Constraints:
Length: 2 - 5
sourceLanguageCode - The language code for the source text of the translation request for which the custom terminology is being used.
public TerminologyProperties withSourceLanguageCode(String sourceLanguageCode)
The language code for the source text of the translation request for which the custom terminology is being used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 5
sourceLanguageCode - The language code for the source text of the translation request for which the custom terminology is being used.
public List<String> getTargetLanguageCodes()
The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
public void setTargetLanguageCodes(Collection<String> targetLanguageCodes)
The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
targetLanguageCodes - The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
public TerminologyProperties withTargetLanguageCodes(String... targetLanguageCodes)
The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes - The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
public TerminologyProperties withTargetLanguageCodes(Collection<String> targetLanguageCodes)
The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes - The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.
public EncryptionKey getEncryptionKey()
The encryption key for the custom terminology.
The encryption key for the custom terminology.
public void setEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
encryptionKey - The encryption key for the custom terminology.
public TerminologyProperties withEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
Returns a reference to this object so that method calls can be chained together.
encryptionKey - The encryption key for the custom terminology.
public Integer getSizeBytes()
The size of the file used when importing a custom terminology.
The size of the file used when importing a custom terminology.
public void setSizeBytes(Integer sizeBytes)
The size of the file used when importing a custom terminology.
sizeBytes - The size of the file used when importing a custom terminology.
public TerminologyProperties withSizeBytes(Integer sizeBytes)
The size of the file used when importing a custom terminology.
Returns a reference to this object so that method calls can be chained together.
sizeBytes - The size of the file used when importing a custom terminology.
public Integer getTermCount()
The number of terms included in the custom terminology.
The number of terms included in the custom terminology.
public void setTermCount(Integer termCount)
The number of terms included in the custom terminology.
termCount - The number of terms included in the custom terminology.
public TerminologyProperties withTermCount(Integer termCount)
The number of terms included in the custom terminology.
Returns a reference to this object so that method calls can be chained together.
termCount - The number of terms included in the custom terminology.
public Date getCreatedAt()
The time at which the custom terminology was created, based on the timestamp.
The time at which the custom terminology was created, based on the timestamp.
public void setCreatedAt(Date createdAt)
The time at which the custom terminology was created, based on the timestamp.
createdAt - The time at which the custom terminology was created, based on the timestamp.
public TerminologyProperties withCreatedAt(Date createdAt)
The time at which the custom terminology was created, based on the timestamp.
Returns a reference to this object so that method calls can be chained together.
createdAt - The time at which the custom terminology was created, based on the timestamp.
public Date getLastUpdatedAt()
The time at which the custom terminology was last update, based on the timestamp.
The time at which the custom terminology was last update, based on the timestamp.
public void setLastUpdatedAt(Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the timestamp.
lastUpdatedAt - The time at which the custom terminology was last update, based on the timestamp.
public TerminologyProperties withLastUpdatedAt(Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the timestamp.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedAt - The time at which the custom terminology was last update, based on the timestamp.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.