Class ParallelDataProperties
- java.lang.Object
-
- software.amazon.awssdk.services.translate.model.ParallelDataProperties
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ParallelDataProperties.Builder,ParallelDataProperties>
@Generated("software.amazon.awssdk:codegen") public final class ParallelDataProperties extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ParallelDataProperties.Builder,ParallelDataProperties>
The properties of a parallel data resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ParallelDataProperties.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The custom name assigned to the parallel data resource.
- Returns:
- The custom name assigned to the parallel data resource.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the parallel data resource.
- Returns:
- The Amazon Resource Name (ARN) of the parallel data resource.
-
description
public final String description()
The description assigned to the parallel data resource.
- Returns:
- The description assigned to the parallel data resource.
-
status
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 returnParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the parallel data resource. When the parallel data is ready for you to use, the status is
ACTIVE
. - See Also:
ParallelDataStatus
-
statusAsString
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 returnParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the parallel data resource. When the parallel data is ready for you to use, the status is
ACTIVE
. - See Also:
ParallelDataStatus
-
sourceLanguageCode
public final String sourceLanguageCode()
The source language of the translations in the parallel data file.
- Returns:
- The source language of the translations in the parallel data file.
-
hasTargetLanguageCodes
public final boolean hasTargetLanguageCodes()
For responses, this returns true if the service returned a value for the TargetLanguageCodes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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.
-
targetLanguageCodes
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.- Returns:
- The language codes for the target languages available in the parallel data file. All possible target languages are returned as an array.
-
parallelDataConfig
public final ParallelDataConfig parallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
- Returns:
- Specifies the format and S3 location of the parallel data input file.
-
message
public final String message()
Additional information from Amazon Translate about the parallel data resource.
- Returns:
- Additional information from Amazon Translate about the parallel data resource.
-
importedDataSize
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.
- Returns:
- 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.
-
importedRecordCount
public final Long importedRecordCount()
The number of records successfully imported from the parallel data input file.
- Returns:
- The number of records successfully imported from the parallel data input file.
-
failedRecordCount
public final Long failedRecordCount()
The number of records unsuccessfully imported from the parallel data input file.
- Returns:
- The number of records unsuccessfully imported from the parallel data input file.
-
skippedRecordCount
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.
- Returns:
- 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.
-
encryptionKey
public final EncryptionKey encryptionKey()
Returns the value of the EncryptionKey property for this object.- Returns:
- The value of the EncryptionKey property for this object.
-
createdAt
public final Instant createdAt()
The time at which the parallel data resource was created.
- Returns:
- The time at which the parallel data resource was created.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
The time at which the parallel data resource was last updated.
- Returns:
- The time at which the parallel data resource was last updated.
-
latestUpdateAttemptStatus
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 returnParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlatestUpdateAttemptStatusAsString()
.- Returns:
- The status of the most recent update attempt for the parallel data resource.
- See Also:
ParallelDataStatus
-
latestUpdateAttemptStatusAsString
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 returnParallelDataStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlatestUpdateAttemptStatusAsString()
.- Returns:
- The status of the most recent update attempt for the parallel data resource.
- See Also:
ParallelDataStatus
-
latestUpdateAttemptAt
public final Instant latestUpdateAttemptAt()
The time that the most recent update was attempted.
- Returns:
- The time that the most recent update was attempted.
-
toBuilder
public ParallelDataProperties.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ParallelDataProperties.Builder,ParallelDataProperties>
-
builder
public static ParallelDataProperties.Builder builder()
-
serializableBuilderClass
public static Class<? extends ParallelDataProperties.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-