public class TerminologyProperties
extends java.lang.Object
implements java.io.Serializable
The properties of the custom terminology.
Constructor and Description |
---|
TerminologyProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the custom terminology.
|
java.util.Date |
getCreatedAt()
The time at which the custom terminology was created, based on the
timestamp.
|
java.lang.String |
getDescription()
The description of the custom terminology properties.
|
EncryptionKey |
getEncryptionKey()
The encryption key for the custom terminology.
|
java.util.Date |
getLastUpdatedAt()
The time at which the custom terminology was last update, based on the
timestamp.
|
java.lang.String |
getName()
The name of the custom terminology.
|
java.lang.Integer |
getSizeBytes()
The size of the file used when importing a custom terminology.
|
java.lang.String |
getSourceLanguageCode()
The language code for the source text of the translation request for
which the custom terminology is being used.
|
java.util.List<java.lang.String> |
getTargetLanguageCodes()
The language codes for the target languages available with the custom
terminology file.
|
java.lang.Integer |
getTermCount()
The number of terms included in the custom terminology.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom terminology.
|
void |
setCreatedAt(java.util.Date createdAt)
The time at which the custom terminology was created, based on the
timestamp.
|
void |
setDescription(java.lang.String description)
The description of the custom terminology properties.
|
void |
setEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
|
void |
setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the
timestamp.
|
void |
setName(java.lang.String name)
The name of the custom terminology.
|
void |
setSizeBytes(java.lang.Integer sizeBytes)
The size of the file used when importing a custom terminology.
|
void |
setSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code for the source text of the translation request for
which the custom terminology is being used.
|
void |
setTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
void |
setTermCount(java.lang.Integer termCount)
The number of terms included in the custom terminology.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminologyProperties |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom terminology.
|
TerminologyProperties |
withCreatedAt(java.util.Date createdAt)
The time at which the custom terminology was created, based on the
timestamp.
|
TerminologyProperties |
withDescription(java.lang.String description)
The description of the custom terminology properties.
|
TerminologyProperties |
withEncryptionKey(EncryptionKey encryptionKey)
The encryption key for the custom terminology.
|
TerminologyProperties |
withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the custom terminology was last update, based on the
timestamp.
|
TerminologyProperties |
withName(java.lang.String name)
The name of the custom terminology.
|
TerminologyProperties |
withSizeBytes(java.lang.Integer sizeBytes)
The size of the file used when importing a custom terminology.
|
TerminologyProperties |
withSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code for the source text of the translation request for
which the custom terminology is being used.
|
TerminologyProperties |
withTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
TerminologyProperties |
withTargetLanguageCodes(java.lang.String... targetLanguageCodes)
The language codes for the target languages available with the custom
terminology file.
|
TerminologyProperties |
withTermCount(java.lang.Integer termCount)
The number of terms included in the custom terminology.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getArn()
The Amazon Resource Name (ARN) of the custom terminology.
Constraints:
Length: 1 - 512
The Amazon Resource Name (ARN) of the custom terminology.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom terminology.
Constraints:
Length: 1 - 512
arn
- The Amazon Resource Name (ARN) of the custom terminology.
public TerminologyProperties withArn(java.lang.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:
Length: 1 - 512
arn
- The Amazon Resource Name (ARN) of the custom terminology.
public java.lang.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(java.lang.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(java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.Integer getTermCount()
The number of terms included in the custom terminology.
The number of terms included in the custom terminology.
public void setTermCount(java.lang.Integer termCount)
The number of terms included in the custom terminology.
termCount
- The number of terms included in the custom terminology.
public TerminologyProperties withTermCount(java.lang.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 java.util.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(java.util.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(java.util.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 java.util.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(java.util.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(java.util.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 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.