* The test set Id for which update test operation to be performed. *
*/ private String testSetId; /** ** The test set name for the updated test set. *
*/ private String testSetName; /** ** The test set description for the updated test set. *
*/ private String description; /** ** Indicates whether audio or text is used for the updated test set. *
*/ private String modality; /** ** The status for the updated test set. *
*/ private String status; /** ** The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. *
*/ private String roleArn; /** ** The number of conversation turns from the updated test set. *
*/ private Integer numTurns; /** ** The Amazon S3 storage location for the updated test set. *
*/ private TestSetStorageLocation storageLocation; /** ** The creation date and time for the updated test set. *
*/ private java.util.Date creationDateTime; /** ** The date and time of the last update for the updated test set. *
*/ private java.util.Date lastUpdatedDateTime; /** ** The test set Id for which update test operation to be performed. *
* * @param testSetId * The test set Id for which update test operation to be performed. */ public void setTestSetId(String testSetId) { this.testSetId = testSetId; } /** ** The test set Id for which update test operation to be performed. *
* * @return The test set Id for which update test operation to be performed. */ public String getTestSetId() { return this.testSetId; } /** ** The test set Id for which update test operation to be performed. *
* * @param testSetId * The test set Id for which update test operation to be performed. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withTestSetId(String testSetId) { setTestSetId(testSetId); return this; } /** ** The test set name for the updated test set. *
* * @param testSetName * The test set name for the updated test set. */ public void setTestSetName(String testSetName) { this.testSetName = testSetName; } /** ** The test set name for the updated test set. *
* * @return The test set name for the updated test set. */ public String getTestSetName() { return this.testSetName; } /** ** The test set name for the updated test set. *
* * @param testSetName * The test set name for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withTestSetName(String testSetName) { setTestSetName(testSetName); return this; } /** ** The test set description for the updated test set. *
* * @param description * The test set description for the updated test set. */ public void setDescription(String description) { this.description = description; } /** ** The test set description for the updated test set. *
* * @return The test set description for the updated test set. */ public String getDescription() { return this.description; } /** ** The test set description for the updated test set. *
* * @param description * The test set description for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withDescription(String description) { setDescription(description); return this; } /** ** Indicates whether audio or text is used for the updated test set. *
* * @param modality * Indicates whether audio or text is used for the updated test set. * @see TestSetModality */ public void setModality(String modality) { this.modality = modality; } /** ** Indicates whether audio or text is used for the updated test set. *
* * @return Indicates whether audio or text is used for the updated test set. * @see TestSetModality */ public String getModality() { return this.modality; } /** ** Indicates whether audio or text is used for the updated test set. *
* * @param modality * Indicates whether audio or text is used for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetModality */ public UpdateTestSetResult withModality(String modality) { setModality(modality); return this; } /** ** Indicates whether audio or text is used for the updated test set. *
* * @param modality * Indicates whether audio or text is used for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetModality */ public UpdateTestSetResult withModality(TestSetModality modality) { this.modality = modality.toString(); return this; } /** ** The status for the updated test set. *
* * @param status * The status for the updated test set. * @see TestSetStatus */ public void setStatus(String status) { this.status = status; } /** ** The status for the updated test set. *
* * @return The status for the updated test set. * @see TestSetStatus */ public String getStatus() { return this.status; } /** ** The status for the updated test set. *
* * @param status * The status for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetStatus */ public UpdateTestSetResult withStatus(String status) { setStatus(status); return this; } /** ** The status for the updated test set. *
* * @param status * The status for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetStatus */ public UpdateTestSetResult withStatus(TestSetStatus status) { this.status = status.toString(); return this; } /** ** The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. *
* * @param roleArn * The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. *
* * @return The roleARN used for any operation in the test set to access resources in the Amazon Web Services * account. */ public String getRoleArn() { return this.roleArn; } /** ** The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. *
* * @param roleArn * The roleARN used for any operation in the test set to access resources in the Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The number of conversation turns from the updated test set. *
* * @param numTurns * The number of conversation turns from the updated test set. */ public void setNumTurns(Integer numTurns) { this.numTurns = numTurns; } /** ** The number of conversation turns from the updated test set. *
* * @return The number of conversation turns from the updated test set. */ public Integer getNumTurns() { return this.numTurns; } /** ** The number of conversation turns from the updated test set. *
* * @param numTurns * The number of conversation turns from the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withNumTurns(Integer numTurns) { setNumTurns(numTurns); return this; } /** ** The Amazon S3 storage location for the updated test set. *
* * @param storageLocation * The Amazon S3 storage location for the updated test set. */ public void setStorageLocation(TestSetStorageLocation storageLocation) { this.storageLocation = storageLocation; } /** ** The Amazon S3 storage location for the updated test set. *
* * @return The Amazon S3 storage location for the updated test set. */ public TestSetStorageLocation getStorageLocation() { return this.storageLocation; } /** ** The Amazon S3 storage location for the updated test set. *
* * @param storageLocation * The Amazon S3 storage location for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withStorageLocation(TestSetStorageLocation storageLocation) { setStorageLocation(storageLocation); return this; } /** ** The creation date and time for the updated test set. *
* * @param creationDateTime * The creation date and time for the updated test set. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The creation date and time for the updated test set. *
* * @return The creation date and time for the updated test set. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The creation date and time for the updated test set. *
* * @param creationDateTime * The creation date and time for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** The date and time of the last update for the updated test set. *
* * @param lastUpdatedDateTime * The date and time of the last update for the updated test set. */ public void setLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { this.lastUpdatedDateTime = lastUpdatedDateTime; } /** ** The date and time of the last update for the updated test set. *
* * @return The date and time of the last update for the updated test set. */ public java.util.Date getLastUpdatedDateTime() { return this.lastUpdatedDateTime; } /** ** The date and time of the last update for the updated test set. *
* * @param lastUpdatedDateTime * The date and time of the last update for the updated test set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTestSetResult withLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { setLastUpdatedDateTime(lastUpdatedDateTime); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTestSetId() != null) sb.append("TestSetId: ").append(getTestSetId()).append(","); if (getTestSetName() != null) sb.append("TestSetName: ").append(getTestSetName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getModality() != null) sb.append("Modality: ").append(getModality()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getNumTurns() != null) sb.append("NumTurns: ").append(getNumTurns()).append(","); if (getStorageLocation() != null) sb.append("StorageLocation: ").append(getStorageLocation()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getLastUpdatedDateTime() != null) sb.append("LastUpdatedDateTime: ").append(getLastUpdatedDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTestSetResult == false) return false; UpdateTestSetResult other = (UpdateTestSetResult) obj; if (other.getTestSetId() == null ^ this.getTestSetId() == null) return false; if (other.getTestSetId() != null && other.getTestSetId().equals(this.getTestSetId()) == false) return false; if (other.getTestSetName() == null ^ this.getTestSetName() == null) return false; if (other.getTestSetName() != null && other.getTestSetName().equals(this.getTestSetName()) == 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.getModality() == null ^ this.getModality() == null) return false; if (other.getModality() != null && other.getModality().equals(this.getModality()) == 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.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getNumTurns() == null ^ this.getNumTurns() == null) return false; if (other.getNumTurns() != null && other.getNumTurns().equals(this.getNumTurns()) == false) return false; if (other.getStorageLocation() == null ^ this.getStorageLocation() == null) return false; if (other.getStorageLocation() != null && other.getStorageLocation().equals(this.getStorageLocation()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getLastUpdatedDateTime() == null ^ this.getLastUpdatedDateTime() == null) return false; if (other.getLastUpdatedDateTime() != null && other.getLastUpdatedDateTime().equals(this.getLastUpdatedDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTestSetId() == null) ? 0 : getTestSetId().hashCode()); hashCode = prime * hashCode + ((getTestSetName() == null) ? 0 : getTestSetName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getModality() == null) ? 0 : getModality().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getNumTurns() == null) ? 0 : getNumTurns().hashCode()); hashCode = prime * hashCode + ((getStorageLocation() == null) ? 0 : getStorageLocation().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDateTime() == null) ? 0 : getLastUpdatedDateTime().hashCode()); return hashCode; } @Override public UpdateTestSetResult clone() { try { return (UpdateTestSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }