Class ParallelDataProperties
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ParallelDataProperties.Builder,
ParallelDataProperties>
The properties of a parallel data resource.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The Amazon Resource Name (ARN) of the parallel data resource.builder()
final Instant
The time at which the parallel data resource was created.final String
The description assigned to the parallel data resource.final EncryptionKey
Returns the value of the EncryptionKey property for this object.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Long
The number of records unsuccessfully imported from the parallel data input file.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the TargetLanguageCodes property.final Long
The number of UTF-8 characters that Amazon Translate imported from the parallel data input file.final Long
The number of records successfully imported from the parallel data input file.final Instant
The time at which the parallel data resource was last updated.final Instant
The time that the most recent update was attempted.final ParallelDataStatus
The status of the most recent update attempt for the parallel data resource.final String
The status of the most recent update attempt for the parallel data resource.final String
message()
Additional information from Amazon Translate about the parallel data resource.final String
name()
The custom name assigned to the parallel data resource.final ParallelDataConfig
Specifies the format and S3 location of the parallel data input file.static Class
<? extends ParallelDataProperties.Builder> final Long
The number of items in the input file that Amazon Translate skipped when you created or updated the parallel data resource.final String
The source language of the translations in the parallel data file.final ParallelDataStatus
status()
The status of the parallel data resource.final String
The status of the parallel data resource.The language codes for the target languages available in the parallel data file.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The custom name assigned to the parallel data resource.
- Returns:
- The custom name assigned to the parallel data resource.
-
arn
The Amazon Resource Name (ARN) of the parallel data resource.
- Returns:
- The Amazon Resource Name (ARN) of the parallel data resource.
-
description
The description assigned to the parallel data resource.
- Returns:
- The description assigned to the parallel data resource.
-
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:
-
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:
-
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
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
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
Additional information from Amazon Translate about the parallel data resource.
- Returns:
- Additional information from Amazon Translate about the parallel data resource.
-
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
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
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
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
Returns the value of the EncryptionKey property for this object.- Returns:
- The value of the EncryptionKey property for this object.
-
createdAt
The time at which the parallel data resource was created.
- Returns:
- The time at which the parallel data resource was created.
-
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
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:
-
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:
-
latestUpdateAttemptAt
The time that the most recent update was attempted.
- Returns:
- The time that the most recent update was attempted.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ParallelDataProperties.Builder,
ParallelDataProperties> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-