@Generated(value="software.amazon.awssdk:codegen") public final class ParallelDataProperties extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ParallelDataProperties.Builder,ParallelDataProperties>
The properties of a parallel data resource.
Modifier and Type | Class and Description |
---|---|
static interface |
ParallelDataProperties.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the parallel data resource.
|
static ParallelDataProperties.Builder |
builder() |
Instant |
createdAt()
The time at which the parallel data resource was created.
|
String |
description()
The description assigned to the parallel data resource.
|
EncryptionKey |
encryptionKey()
Returns the value of the EncryptionKey property for this object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
failedRecordCount()
The number of records unsuccessfully imported from the parallel data input file.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTargetLanguageCodes()
For responses, this returns true if the service returned a value for the TargetLanguageCodes property.
|
Long |
importedDataSize()
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file.
|
Long |
importedRecordCount()
The number of records successfully imported from the parallel data input file.
|
Instant |
lastUpdatedAt()
The time at which the parallel data resource was last updated.
|
Instant |
latestUpdateAttemptAt()
The time that the most recent update was attempted.
|
ParallelDataStatus |
latestUpdateAttemptStatus()
The status of the most recent update attempt for the parallel data resource.
|
String |
latestUpdateAttemptStatusAsString()
The status of the most recent update attempt for the parallel data resource.
|
String |
message()
Additional information from Amazon Translate about the parallel data resource.
|
String |
name()
The custom name assigned to the parallel data resource.
|
ParallelDataConfig |
parallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ParallelDataProperties.Builder> |
serializableBuilderClass() |
Long |
skippedRecordCount()
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data
resource.
|
String |
sourceLanguageCode()
The source language of the translations in the parallel data file.
|
ParallelDataStatus |
status()
The status of the parallel data resource.
|
String |
statusAsString()
The status of the parallel data resource.
|
List<String> |
targetLanguageCodes()
The language codes for the target languages available in the parallel data file.
|
ParallelDataProperties.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String name()
The custom name assigned to the parallel data resource.
public final String arn()
The Amazon Resource Name (ARN) of the parallel data resource.
public final String description()
The description assigned to the parallel data resource.
public final ParallelDataStatus status()
The status of the parallel data resource. When the parallel data is ready for you to use, the status is
ACTIVE
.
If the service returns an enum value that is not available in the current SDK version, status
will
return ParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ACTIVE
.ParallelDataStatus
public final String statusAsString()
The status of the parallel data resource. When the parallel data is ready for you to use, the status is
ACTIVE
.
If the service returns an enum value that is not available in the current SDK version, status
will
return ParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ACTIVE
.ParallelDataStatus
public final String sourceLanguageCode()
The source language of the translations in the parallel data file.
public final boolean hasTargetLanguageCodes()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> targetLanguageCodes()
The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTargetLanguageCodes()
method.
public final ParallelDataConfig parallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
public final String message()
Additional information from Amazon Translate about the parallel data resource.
public final 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.
public final Long importedRecordCount()
The number of records successfully imported from the parallel data input file.
public final Long failedRecordCount()
The number of records unsuccessfully imported from the parallel data input file.
public final 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.
public final EncryptionKey encryptionKey()
public final Instant createdAt()
The time at which the parallel data resource was created.
public final Instant lastUpdatedAt()
The time at which the parallel data resource was last updated.
public final ParallelDataStatus latestUpdateAttemptStatus()
The status of the most recent update attempt for the parallel data resource.
If the service returns an enum value that is not available in the current SDK version,
latestUpdateAttemptStatus
will return ParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from latestUpdateAttemptStatusAsString()
.
ParallelDataStatus
public final String latestUpdateAttemptStatusAsString()
The status of the most recent update attempt for the parallel data resource.
If the service returns an enum value that is not available in the current SDK version,
latestUpdateAttemptStatus
will return ParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from latestUpdateAttemptStatusAsString()
.
ParallelDataStatus
public final Instant latestUpdateAttemptAt()
The time that the most recent update was attempted.
public ParallelDataProperties.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ParallelDataProperties.Builder,ParallelDataProperties>
public static ParallelDataProperties.Builder builder()
public static Class<? extends ParallelDataProperties.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.