public class ParallelDataProperties
extends java.lang.Object
implements java.io.Serializable
The properties of a parallel data resource.
Constructor and Description |
---|
ParallelDataProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the parallel data resource.
|
java.util.Date |
getCreatedAt()
The time at which the parallel data resource was created.
|
java.lang.String |
getDescription()
The description assigned to the parallel data resource.
|
EncryptionKey |
getEncryptionKey()
The encryption key used to encrypt this object.
|
java.lang.Long |
getFailedRecordCount()
The number of records unsuccessfully imported from the parallel data
input file.
|
java.lang.Long |
getImportedDataSize()
The number of UTF-8 characters that Amazon Translate imported from the
parallel data input file.
|
java.lang.Long |
getImportedRecordCount()
The number of records successfully imported from the parallel data input
file.
|
java.util.Date |
getLastUpdatedAt()
The time at which the parallel data resource was last updated.
|
java.util.Date |
getLatestUpdateAttemptAt()
The time that the most recent update was attempted.
|
java.lang.String |
getLatestUpdateAttemptStatus()
The status of the most recent update attempt for the parallel data
resource.
|
java.lang.String |
getMessage()
Additional information from Amazon Translate about the parallel data
resource.
|
java.lang.String |
getName()
The custom name assigned to the parallel data resource.
|
ParallelDataConfig |
getParallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
|
java.lang.Long |
getSkippedRecordCount()
The number of items in the input file that Amazon Translate skipped when
you created or updated the parallel data resource.
|
java.lang.String |
getSourceLanguageCode()
The source language of the translations in the parallel data file.
|
java.lang.String |
getStatus()
The status of the parallel data resource.
|
java.util.List<java.lang.String> |
getTargetLanguageCodes()
The language codes for the target languages available in the parallel
data file.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the parallel data resource.
|
void |
setCreatedAt(java.util.Date createdAt)
The time at which the parallel data resource was created.
|
void |
setDescription(java.lang.String description)
The description assigned to the parallel data resource.
|
void |
setEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
|
void |
setFailedRecordCount(java.lang.Long failedRecordCount)
The number of records unsuccessfully imported from the parallel data
input file.
|
void |
setImportedDataSize(java.lang.Long importedDataSize)
The number of UTF-8 characters that Amazon Translate imported from the
parallel data input file.
|
void |
setImportedRecordCount(java.lang.Long importedRecordCount)
The number of records successfully imported from the parallel data input
file.
|
void |
setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the parallel data resource was last updated.
|
void |
setLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt)
The time that the most recent update was attempted.
|
void |
setLatestUpdateAttemptStatus(ParallelDataStatus latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data
resource.
|
void |
setLatestUpdateAttemptStatus(java.lang.String latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data
resource.
|
void |
setMessage(java.lang.String message)
Additional information from Amazon Translate about the parallel data
resource.
|
void |
setName(java.lang.String name)
The custom name assigned to the parallel data resource.
|
void |
setParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
|
void |
setSkippedRecordCount(java.lang.Long skippedRecordCount)
The number of items in the input file that Amazon Translate skipped when
you created or updated the parallel data resource.
|
void |
setSourceLanguageCode(java.lang.String sourceLanguageCode)
The source language of the translations in the parallel data file.
|
void |
setStatus(ParallelDataStatus status)
The status of the parallel data resource.
|
void |
setStatus(java.lang.String status)
The status of the parallel data resource.
|
void |
setTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available in the parallel
data file.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ParallelDataProperties |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the parallel data resource.
|
ParallelDataProperties |
withCreatedAt(java.util.Date createdAt)
The time at which the parallel data resource was created.
|
ParallelDataProperties |
withDescription(java.lang.String description)
The description assigned to the parallel data resource.
|
ParallelDataProperties |
withEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
|
ParallelDataProperties |
withFailedRecordCount(java.lang.Long failedRecordCount)
The number of records unsuccessfully imported from the parallel data
input file.
|
ParallelDataProperties |
withImportedDataSize(java.lang.Long importedDataSize)
The number of UTF-8 characters that Amazon Translate imported from the
parallel data input file.
|
ParallelDataProperties |
withImportedRecordCount(java.lang.Long importedRecordCount)
The number of records successfully imported from the parallel data input
file.
|
ParallelDataProperties |
withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the parallel data resource was last updated.
|
ParallelDataProperties |
withLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt)
The time that the most recent update was attempted.
|
ParallelDataProperties |
withLatestUpdateAttemptStatus(ParallelDataStatus latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data
resource.
|
ParallelDataProperties |
withLatestUpdateAttemptStatus(java.lang.String latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data
resource.
|
ParallelDataProperties |
withMessage(java.lang.String message)
Additional information from Amazon Translate about the parallel data
resource.
|
ParallelDataProperties |
withName(java.lang.String name)
The custom name assigned to the parallel data resource.
|
ParallelDataProperties |
withParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
|
ParallelDataProperties |
withSkippedRecordCount(java.lang.Long skippedRecordCount)
The number of items in the input file that Amazon Translate skipped when
you created or updated the parallel data resource.
|
ParallelDataProperties |
withSourceLanguageCode(java.lang.String sourceLanguageCode)
The source language of the translations in the parallel data file.
|
ParallelDataProperties |
withStatus(ParallelDataStatus status)
The status of the parallel data resource.
|
ParallelDataProperties |
withStatus(java.lang.String status)
The status of the parallel data resource.
|
ParallelDataProperties |
withTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available in the parallel
data file.
|
ParallelDataProperties |
withTargetLanguageCodes(java.lang.String... targetLanguageCodes)
The language codes for the target languages available in the parallel
data file.
|
public java.lang.String getName()
The custom name assigned to the parallel data resource.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
The custom name assigned to the parallel data resource.
public void setName(java.lang.String name)
The custom name assigned to the parallel data resource.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name
- The custom name assigned to the parallel data resource.
public ParallelDataProperties withName(java.lang.String name)
The custom name assigned to the parallel data resource.
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 custom name assigned to the parallel data resource.
public java.lang.String getArn()
The Amazon Resource Name (ARN) of the parallel data resource.
Constraints:
Length: 1 - 512
The Amazon Resource Name (ARN) of the parallel data resource.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the parallel data resource.
Constraints:
Length: 1 - 512
arn
- The Amazon Resource Name (ARN) of the parallel data resource.
public ParallelDataProperties withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the parallel data resource.
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 parallel data resource.
public java.lang.String getDescription()
The description assigned to the parallel data resource.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
The description assigned to the parallel data resource.
public void setDescription(java.lang.String description)
The description assigned to the parallel data resource.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description
- The description assigned to the parallel data resource.
public ParallelDataProperties withDescription(java.lang.String description)
The description assigned to the parallel data resource.
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 assigned to the parallel data resource.
public java.lang.String getStatus()
The status of the parallel data resource. When the parallel data is ready
for you to use, the status is ACTIVE
.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
The status of the parallel data resource. When the parallel data
is ready for you to use, the status is ACTIVE
.
ParallelDataStatus
public void setStatus(java.lang.String status)
The status of the parallel data resource. When the parallel data is ready
for you to use, the status is ACTIVE
.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
status
-
The status of the parallel data resource. When the parallel
data is ready for you to use, the status is
ACTIVE
.
ParallelDataStatus
public ParallelDataProperties withStatus(java.lang.String status)
The status of the parallel data resource. When the parallel data is ready
for you to use, the status is ACTIVE
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
status
-
The status of the parallel data resource. When the parallel
data is ready for you to use, the status is
ACTIVE
.
ParallelDataStatus
public void setStatus(ParallelDataStatus status)
The status of the parallel data resource. When the parallel data is ready
for you to use, the status is ACTIVE
.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
status
-
The status of the parallel data resource. When the parallel
data is ready for you to use, the status is
ACTIVE
.
ParallelDataStatus
public ParallelDataProperties withStatus(ParallelDataStatus status)
The status of the parallel data resource. When the parallel data is ready
for you to use, the status is ACTIVE
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
status
-
The status of the parallel data resource. When the parallel
data is ready for you to use, the status is
ACTIVE
.
ParallelDataStatus
public java.lang.String getSourceLanguageCode()
The source language of the translations in the parallel data file.
Constraints:
Length: 2 - 5
The source language of the translations in the parallel data file.
public void setSourceLanguageCode(java.lang.String sourceLanguageCode)
The source language of the translations in the parallel data file.
Constraints:
Length: 2 - 5
sourceLanguageCode
- The source language of the translations in the parallel data file.
public ParallelDataProperties withSourceLanguageCode(java.lang.String sourceLanguageCode)
The source language of the translations in the parallel data file.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 5
sourceLanguageCode
- The source language of the translations in the parallel data file.
public java.util.List<java.lang.String> getTargetLanguageCodes()
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
public void setTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
targetLanguageCodes
- The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
public ParallelDataProperties withTargetLanguageCodes(java.lang.String... targetLanguageCodes)
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes
- The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
public ParallelDataProperties withTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes
- The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
public ParallelDataConfig getParallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
Specifies the format and S3 location of the parallel data input file.
public void setParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
public ParallelDataProperties withParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
Returns a reference to this object so that method calls can be chained together.
parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
public java.lang.String getMessage()
Additional information from Amazon Translate about the parallel data resource.
Additional information from Amazon Translate about the parallel data resource.
public void setMessage(java.lang.String message)
Additional information from Amazon Translate about the parallel data resource.
message
- Additional information from Amazon Translate about the parallel data resource.
public ParallelDataProperties withMessage(java.lang.String message)
Additional information from Amazon Translate about the parallel data resource.
Returns a reference to this object so that method calls can be chained together.
message
- Additional information from Amazon Translate about the parallel data resource.
public java.lang.Long getImportedDataSize()
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
public void setImportedDataSize(java.lang.Long importedDataSize)
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
importedDataSize
- The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
public ParallelDataProperties withImportedDataSize(java.lang.Long importedDataSize)
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
Returns a reference to this object so that method calls can be chained together.
importedDataSize
- The number of UTF-8 characters that Amazon Translate imported from the parallel data input file. This number includes only the characters in your translation examples. It does not include characters that are used to format your file. For example, if you provided a Translation Memory Exchange (.tmx) file, this number does not include the tags.
public java.lang.Long getImportedRecordCount()
The number of records successfully imported from the parallel data input file.
The number of records successfully imported from the parallel data input file.
public void setImportedRecordCount(java.lang.Long importedRecordCount)
The number of records successfully imported from the parallel data input file.
importedRecordCount
- The number of records successfully imported from the parallel data input file.
public ParallelDataProperties withImportedRecordCount(java.lang.Long importedRecordCount)
The number of records successfully imported from the parallel data input file.
Returns a reference to this object so that method calls can be chained together.
importedRecordCount
- The number of records successfully imported from the parallel data input file.
public java.lang.Long getFailedRecordCount()
The number of records unsuccessfully imported from the parallel data input file.
The number of records unsuccessfully imported from the parallel data input file.
public void setFailedRecordCount(java.lang.Long failedRecordCount)
The number of records unsuccessfully imported from the parallel data input file.
failedRecordCount
- The number of records unsuccessfully imported from the parallel data input file.
public ParallelDataProperties withFailedRecordCount(java.lang.Long failedRecordCount)
The number of records unsuccessfully imported from the parallel data input file.
Returns a reference to this object so that method calls can be chained together.
failedRecordCount
- The number of records unsuccessfully imported from the parallel data input file.
public java.lang.Long getSkippedRecordCount()
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
public void setSkippedRecordCount(java.lang.Long skippedRecordCount)
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
skippedRecordCount
- The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
public ParallelDataProperties withSkippedRecordCount(java.lang.Long skippedRecordCount)
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
Returns a reference to this object so that method calls can be chained together.
skippedRecordCount
- The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource. For example, Amazon Translate skips empty records, empty target texts, and empty lines.
public EncryptionKey getEncryptionKey()
The encryption key used to encrypt this object.
The encryption key used to encrypt this object.
public void setEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
encryptionKey
- The encryption key used to encrypt this object.
public ParallelDataProperties withEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
Returns a reference to this object so that method calls can be chained together.
encryptionKey
- The encryption key used to encrypt this object.
public java.util.Date getCreatedAt()
The time at which the parallel data resource was created.
The time at which the parallel data resource was created.
public void setCreatedAt(java.util.Date createdAt)
The time at which the parallel data resource was created.
createdAt
- The time at which the parallel data resource was created.
public ParallelDataProperties withCreatedAt(java.util.Date createdAt)
The time at which the parallel data resource was created.
Returns a reference to this object so that method calls can be chained together.
createdAt
- The time at which the parallel data resource was created.
public java.util.Date getLastUpdatedAt()
The time at which the parallel data resource was last updated.
The time at which the parallel data resource was last updated.
public void setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the parallel data resource was last updated.
lastUpdatedAt
- The time at which the parallel data resource was last updated.
public ParallelDataProperties withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time at which the parallel data resource was last updated.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedAt
- The time at which the parallel data resource was last updated.
public java.lang.String getLatestUpdateAttemptStatus()
The status of the most recent update attempt for the parallel data resource.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
The status of the most recent update attempt for the parallel data resource.
ParallelDataStatus
public void setLatestUpdateAttemptStatus(java.lang.String latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data resource.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
latestUpdateAttemptStatus
- The status of the most recent update attempt for the parallel data resource.
ParallelDataStatus
public ParallelDataProperties withLatestUpdateAttemptStatus(java.lang.String latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
latestUpdateAttemptStatus
- The status of the most recent update attempt for the parallel data resource.
ParallelDataStatus
public void setLatestUpdateAttemptStatus(ParallelDataStatus latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data resource.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
latestUpdateAttemptStatus
- The status of the most recent update attempt for the parallel data resource.
ParallelDataStatus
public ParallelDataProperties withLatestUpdateAttemptStatus(ParallelDataStatus latestUpdateAttemptStatus)
The status of the most recent update attempt for the parallel data resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
latestUpdateAttemptStatus
- The status of the most recent update attempt for the parallel data resource.
ParallelDataStatus
public java.util.Date getLatestUpdateAttemptAt()
The time that the most recent update was attempted.
The time that the most recent update was attempted.
public void setLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt)
The time that the most recent update was attempted.
latestUpdateAttemptAt
- The time that the most recent update was attempted.
public ParallelDataProperties withLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt)
The time that the most recent update was attempted.
Returns a reference to this object so that method calls can be chained together.
latestUpdateAttemptAt
- The time that the most recent update was attempted.
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.