/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.translate.model; import java.io.Serializable; /** *
* The properties of a parallel data resource. *
*/ public class ParallelDataProperties implements Serializable { /** ** The custom name assigned to the parallel data resource. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([A-Za-z0-9-]_?)+$
*/
private String name;
/**
*
* The Amazon Resource Name (ARN) of the parallel data resource. *
*
* Constraints:
* Length: 1 - 512
*/
private String arn;
/**
*
* The description assigned to the parallel data resource. *
*
* Constraints:
* Length: - 256
* Pattern: [\P{M}\p{M}]{0,256}
*/
private String description;
/**
*
* 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
*/
private String status;
/**
*
* The source language of the translations in the parallel data file. *
*
* Constraints:
* Length: 2 - 5
*/
private String sourceLanguageCode;
/**
*
* The language codes for the target languages available in the parallel * data file. All possible target languages are returned as an array. *
*/ private java.util.List* Specifies the format and S3 location of the parallel data input file. *
*/ private ParallelDataConfig parallelDataConfig; /** ** Additional information from Amazon Translate about the parallel data * resource. *
*/ private String message; /** ** 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. *
*/ private Long importedDataSize; /** ** The number of records successfully imported from the parallel data input * file. *
*/ private Long importedRecordCount; /** ** The number of records unsuccessfully imported from the parallel data * input file. *
*/ private Long failedRecordCount; /** ** 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. *
*/ private Long skippedRecordCount; /** ** The encryption key used to encrypt this object. *
*/ private EncryptionKey encryptionKey; /** ** The time at which the parallel data resource was created. *
*/ private java.util.Date createdAt; /** ** The time at which the parallel data resource was last updated. *
*/ private java.util.Date lastUpdatedAt; /** ** The status of the most recent update attempt for the parallel data * resource. *
*
* Constraints:
* Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
*/
private String latestUpdateAttemptStatus;
/**
*
* The time that the most recent update was attempted. *
*/ private java.util.Date latestUpdateAttemptAt; /** ** The custom name assigned to the parallel data resource. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([A-Za-z0-9-]_?)+$
*
* @return
* The custom name assigned to the parallel data resource. *
*/ public String getName() { return name; } /** ** The custom name assigned to the parallel data resource. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([A-Za-z0-9-]_?)+$
*
* @param name
* The custom name assigned to the parallel data resource. *
*/ public void setName(String name) { this.name = 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-]_?)+$
*
* @param name
* The custom name assigned to the parallel data resource. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withName(String name) { this.name = name; return this; } /** ** The Amazon Resource Name (ARN) of the parallel data resource. *
*
* Constraints:
* Length: 1 - 512
*
* @return
* The Amazon Resource Name (ARN) of the parallel data resource. *
*/ public String getArn() { return arn; } /** ** The Amazon Resource Name (ARN) of the parallel data resource. *
*
* Constraints:
* Length: 1 - 512
*
* @param arn
* The Amazon Resource Name (ARN) of the parallel data resource. *
*/ public void setArn(String arn) { this.arn = 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
*
* @param arn
* The Amazon Resource Name (ARN) of the parallel data resource. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withArn(String arn) { this.arn = arn; return this; } /** ** The description assigned to the parallel data resource. *
*
* Constraints:
* Length: - 256
* Pattern: [\P{M}\p{M}]{0,256}
*
* @return
* The description assigned to the parallel data resource. *
*/ public String getDescription() { return description; } /** ** The description assigned to the parallel data resource. *
*
* Constraints:
* Length: - 256
* Pattern: [\P{M}\p{M}]{0,256}
*
* @param description
* The description assigned to the parallel data resource. *
*/ public void setDescription(String description) { this.description = 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}
*
* @param description
* The description assigned to the parallel data resource. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withDescription(String description) { this.description = description; return this; } /** *
* 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
*
* @return
* The status of the parallel data resource. When the parallel data
* is ready for you to use, the status is ACTIVE
.
*
* 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
*
* @param status
* The status of the parallel data resource. When the parallel
* data is ready for you to use, the status is
* ACTIVE
.
*
* 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
*
* @param status
* The status of the parallel data resource. When the parallel
* data is ready for you to use, the status is
* ACTIVE
.
*
* 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
*
* @param status
* The status of the parallel data resource. When the parallel
* data is ready for you to use, the status is
* ACTIVE
.
*
* 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
*
* @param status
* The status of the parallel data resource. When the parallel
* data is ready for you to use, the status is
* ACTIVE
.
*
* The source language of the translations in the parallel data file. *
*
* Constraints:
* Length: 2 - 5
*
* @return
* The source language of the translations in the parallel data * file. *
*/ public String getSourceLanguageCode() { return sourceLanguageCode; } /** ** The source language of the translations in the parallel data file. *
*
* Constraints:
* Length: 2 - 5
*
* @param sourceLanguageCode
* The source language of the translations in the parallel data * file. *
*/ public void setSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = 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
*
* @param sourceLanguageCode
* The source language of the translations in the parallel data * file. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; return this; } /** ** The language codes for the target languages available in the parallel * data file. All possible target languages are returned as an array. *
* * @return* The language codes for the target languages available in the * parallel data file. All possible target languages are returned as * an array. *
*/ public java.util.List* The language codes for the target languages available in the parallel * data file. All possible target languages are returned as an array. *
* * @param targetLanguageCodes* 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* 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. * * @param targetLanguageCodes
* The language codes for the target languages available in the * parallel data file. All possible target languages are returned * as an array. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withTargetLanguageCodes(String... targetLanguageCodes) { if (getTargetLanguageCodes() == null) { this.targetLanguageCodes = new java.util.ArrayList* 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. * * @param targetLanguageCodes
* The language codes for the target languages available in the * parallel data file. All possible target languages are returned * as an array. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withTargetLanguageCodes( java.util.Collection* Specifies the format and S3 location of the parallel data input file. *
* * @return* Specifies the format and S3 location of the parallel data input * file. *
*/ public ParallelDataConfig getParallelDataConfig() { return parallelDataConfig; } /** ** Specifies the format and S3 location of the parallel data input file. *
* * @param parallelDataConfig* Specifies the format and S3 location of the parallel data * input file. *
*/ public void setParallelDataConfig(ParallelDataConfig parallelDataConfig) { this.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. * * @param parallelDataConfig
* Specifies the format and S3 location of the parallel data * input file. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withParallelDataConfig(ParallelDataConfig parallelDataConfig) { this.parallelDataConfig = parallelDataConfig; return this; } /** ** Additional information from Amazon Translate about the parallel data * resource. *
* * @return* Additional information from Amazon Translate about the parallel * data resource. *
*/ public String getMessage() { return message; } /** ** Additional information from Amazon Translate about the parallel data * resource. *
* * @param message* Additional information from Amazon Translate about the * parallel data resource. *
*/ public void setMessage(String message) { this.message = 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. * * @param message
* Additional information from Amazon Translate about the * parallel data resource. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withMessage(String message) { this.message = message; return this; } /** ** 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. *
* * @return* 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 Long getImportedDataSize() { return 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. *
* * @param 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 void setImportedDataSize(Long importedDataSize) { this.importedDataSize = 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withImportedDataSize(Long importedDataSize) { this.importedDataSize = importedDataSize; return this; } /** ** The number of records successfully imported from the parallel data input * file. *
* * @return* The number of records successfully imported from the parallel * data input file. *
*/ public Long getImportedRecordCount() { return importedRecordCount; } /** ** The number of records successfully imported from the parallel data input * file. *
* * @param importedRecordCount* The number of records successfully imported from the parallel * data input file. *
*/ public void setImportedRecordCount(Long importedRecordCount) { this.importedRecordCount = 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. * * @param importedRecordCount
* The number of records successfully imported from the parallel * data input file. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withImportedRecordCount(Long importedRecordCount) { this.importedRecordCount = importedRecordCount; return this; } /** ** The number of records unsuccessfully imported from the parallel data * input file. *
* * @return* The number of records unsuccessfully imported from the parallel * data input file. *
*/ public Long getFailedRecordCount() { return failedRecordCount; } /** ** The number of records unsuccessfully imported from the parallel data * input file. *
* * @param failedRecordCount* The number of records unsuccessfully imported from the * parallel data input file. *
*/ public void setFailedRecordCount(Long failedRecordCount) { this.failedRecordCount = 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. * * @param failedRecordCount
* The number of records unsuccessfully imported from the * parallel data input file. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withFailedRecordCount(Long failedRecordCount) { this.failedRecordCount = failedRecordCount; return this; } /** ** 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. *
* * @return* 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 Long getSkippedRecordCount() { return 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. *
* * @param 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 void setSkippedRecordCount(Long skippedRecordCount) { this.skippedRecordCount = 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withSkippedRecordCount(Long skippedRecordCount) { this.skippedRecordCount = skippedRecordCount; return this; } /** ** The encryption key used to encrypt this object. *
* * @return* The encryption key used to encrypt this object. *
*/ public EncryptionKey getEncryptionKey() { return encryptionKey; } /** ** The encryption key used to encrypt this object. *
* * @param encryptionKey* The encryption key used to encrypt this object. *
*/ public void setEncryptionKey(EncryptionKey encryptionKey) { this.encryptionKey = encryptionKey; } /** ** The encryption key used to encrypt this object. *
** Returns a reference to this object so that method calls can be chained * together. * * @param encryptionKey
* The encryption key used to encrypt this object. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withEncryptionKey(EncryptionKey encryptionKey) { this.encryptionKey = encryptionKey; return this; } /** ** The time at which the parallel data resource was created. *
* * @return* The time at which the parallel data resource was created. *
*/ public java.util.Date getCreatedAt() { return createdAt; } /** ** The time at which the parallel data resource was created. *
* * @param createdAt* The time at which the parallel data resource was created. *
*/ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = 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. * * @param createdAt
* The time at which the parallel data resource was created. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; return this; } /** ** The time at which the parallel data resource was last updated. *
* * @return* The time at which the parallel data resource was last updated. *
*/ public java.util.Date getLastUpdatedAt() { return lastUpdatedAt; } /** ** The time at which the parallel data resource was last updated. *
* * @param lastUpdatedAt* The time at which the parallel data resource was last updated. *
*/ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = 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. * * @param lastUpdatedAt
* The time at which the parallel data resource was last updated. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; return this; } /** ** The status of the most recent update attempt for the parallel data * resource. *
*
* Constraints:
* Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
*
* @return
* The status of the most recent update attempt for the parallel * data resource. *
* @see ParallelDataStatus */ public String getLatestUpdateAttemptStatus() { return latestUpdateAttemptStatus; } /** ** The status of the most recent update attempt for the parallel data * resource. *
*
* Constraints:
* Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
*
* @param latestUpdateAttemptStatus
* The status of the most recent update attempt for the parallel * data resource. *
* @see ParallelDataStatus */ public void setLatestUpdateAttemptStatus(String latestUpdateAttemptStatus) { this.latestUpdateAttemptStatus = 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
*
* @param latestUpdateAttemptStatus
* The status of the most recent update attempt for the parallel * data resource. *
* @return A reference to this updated object so that method calls can be * chained together. * @see ParallelDataStatus */ public ParallelDataProperties withLatestUpdateAttemptStatus(String latestUpdateAttemptStatus) { this.latestUpdateAttemptStatus = latestUpdateAttemptStatus; return this; } /** ** The status of the most recent update attempt for the parallel data * resource. *
*
* Constraints:
* Allowed Values: CREATING, UPDATING, ACTIVE, DELETING, FAILED
*
* @param latestUpdateAttemptStatus
* The status of the most recent update attempt for the parallel * data resource. *
* @see ParallelDataStatus */ public void setLatestUpdateAttemptStatus(ParallelDataStatus latestUpdateAttemptStatus) { this.latestUpdateAttemptStatus = latestUpdateAttemptStatus.toString(); } /** ** 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
*
* @param latestUpdateAttemptStatus
* The status of the most recent update attempt for the parallel * data resource. *
* @return A reference to this updated object so that method calls can be * chained together. * @see ParallelDataStatus */ public ParallelDataProperties withLatestUpdateAttemptStatus( ParallelDataStatus latestUpdateAttemptStatus) { this.latestUpdateAttemptStatus = latestUpdateAttemptStatus.toString(); return this; } /** ** The time that the most recent update was attempted. *
* * @return* The time that the most recent update was attempted. *
*/ public java.util.Date getLatestUpdateAttemptAt() { return latestUpdateAttemptAt; } /** ** The time that the most recent update was attempted. *
* * @param latestUpdateAttemptAt* The time that the most recent update was attempted. *
*/ public void setLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt) { this.latestUpdateAttemptAt = latestUpdateAttemptAt; } /** ** The time that the most recent update was attempted. *
** Returns a reference to this object so that method calls can be chained * together. * * @param latestUpdateAttemptAt
* The time that the most recent update was attempted. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ParallelDataProperties withLatestUpdateAttemptAt(java.util.Date latestUpdateAttemptAt) { this.latestUpdateAttemptAt = latestUpdateAttemptAt; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: " + getName() + ","); if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getSourceLanguageCode() != null) sb.append("SourceLanguageCode: " + getSourceLanguageCode() + ","); if (getTargetLanguageCodes() != null) sb.append("TargetLanguageCodes: " + getTargetLanguageCodes() + ","); if (getParallelDataConfig() != null) sb.append("ParallelDataConfig: " + getParallelDataConfig() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getImportedDataSize() != null) sb.append("ImportedDataSize: " + getImportedDataSize() + ","); if (getImportedRecordCount() != null) sb.append("ImportedRecordCount: " + getImportedRecordCount() + ","); if (getFailedRecordCount() != null) sb.append("FailedRecordCount: " + getFailedRecordCount() + ","); if (getSkippedRecordCount() != null) sb.append("SkippedRecordCount: " + getSkippedRecordCount() + ","); if (getEncryptionKey() != null) sb.append("EncryptionKey: " + getEncryptionKey() + ","); if (getCreatedAt() != null) sb.append("CreatedAt: " + getCreatedAt() + ","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: " + getLastUpdatedAt() + ","); if (getLatestUpdateAttemptStatus() != null) sb.append("LatestUpdateAttemptStatus: " + getLatestUpdateAttemptStatus() + ","); if (getLatestUpdateAttemptAt() != null) sb.append("LatestUpdateAttemptAt: " + getLatestUpdateAttemptAt()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSourceLanguageCode() == null) ? 0 : getSourceLanguageCode().hashCode()); hashCode = prime * hashCode + ((getTargetLanguageCodes() == null) ? 0 : getTargetLanguageCodes().hashCode()); hashCode = prime * hashCode + ((getParallelDataConfig() == null) ? 0 : getParallelDataConfig().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getImportedDataSize() == null) ? 0 : getImportedDataSize().hashCode()); hashCode = prime * hashCode + ((getImportedRecordCount() == null) ? 0 : getImportedRecordCount().hashCode()); hashCode = prime * hashCode + ((getFailedRecordCount() == null) ? 0 : getFailedRecordCount().hashCode()); hashCode = prime * hashCode + ((getSkippedRecordCount() == null) ? 0 : getSkippedRecordCount().hashCode()); hashCode = prime * hashCode + ((getEncryptionKey() == null) ? 0 : getEncryptionKey().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getLatestUpdateAttemptStatus() == null) ? 0 : getLatestUpdateAttemptStatus() .hashCode()); hashCode = prime * hashCode + ((getLatestUpdateAttemptAt() == null) ? 0 : getLatestUpdateAttemptAt().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ParallelDataProperties == false) return false; ParallelDataProperties other = (ParallelDataProperties) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSourceLanguageCode() == null ^ this.getSourceLanguageCode() == null) return false; if (other.getSourceLanguageCode() != null && other.getSourceLanguageCode().equals(this.getSourceLanguageCode()) == false) return false; if (other.getTargetLanguageCodes() == null ^ this.getTargetLanguageCodes() == null) return false; if (other.getTargetLanguageCodes() != null && other.getTargetLanguageCodes().equals(this.getTargetLanguageCodes()) == false) return false; if (other.getParallelDataConfig() == null ^ this.getParallelDataConfig() == null) return false; if (other.getParallelDataConfig() != null && other.getParallelDataConfig().equals(this.getParallelDataConfig()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getImportedDataSize() == null ^ this.getImportedDataSize() == null) return false; if (other.getImportedDataSize() != null && other.getImportedDataSize().equals(this.getImportedDataSize()) == false) return false; if (other.getImportedRecordCount() == null ^ this.getImportedRecordCount() == null) return false; if (other.getImportedRecordCount() != null && other.getImportedRecordCount().equals(this.getImportedRecordCount()) == false) return false; if (other.getFailedRecordCount() == null ^ this.getFailedRecordCount() == null) return false; if (other.getFailedRecordCount() != null && other.getFailedRecordCount().equals(this.getFailedRecordCount()) == false) return false; if (other.getSkippedRecordCount() == null ^ this.getSkippedRecordCount() == null) return false; if (other.getSkippedRecordCount() != null && other.getSkippedRecordCount().equals(this.getSkippedRecordCount()) == false) return false; if (other.getEncryptionKey() == null ^ this.getEncryptionKey() == null) return false; if (other.getEncryptionKey() != null && other.getEncryptionKey().equals(this.getEncryptionKey()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getLatestUpdateAttemptStatus() == null ^ this.getLatestUpdateAttemptStatus() == null) return false; if (other.getLatestUpdateAttemptStatus() != null && other.getLatestUpdateAttemptStatus().equals(this.getLatestUpdateAttemptStatus()) == false) return false; if (other.getLatestUpdateAttemptAt() == null ^ this.getLatestUpdateAttemptAt() == null) return false; if (other.getLatestUpdateAttemptAt() != null && other.getLatestUpdateAttemptAt().equals(this.getLatestUpdateAttemptAt()) == false) return false; return true; } }