/* * Copyright 2018-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.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Summarizes metadata about the test execution. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestExecutionSummary implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier of the test execution. *
*/ private String testExecutionId; /** ** The date and time at which the test execution was created. *
*/ private java.util.Date creationDateTime; /** ** The date and time at which the test execution was last updated. *
*/ private java.util.Date lastUpdatedDateTime; /** ** The current status of the test execution. *
*/ private String testExecutionStatus; /** ** The unique identifier of the test set used in the test execution. *
*/ private String testSetId; /** ** The name of the test set used in the test execution. *
*/ private String testSetName; /** ** Contains information about the bot used for the test execution.. *
*/ private TestExecutionTarget target; /** ** Specifies whether the API mode for the test execution is streaming or non-streaming. *
*/ private String apiMode; /** ** Specifies whether the data used for the test execution is written or spoken. *
*/ private String testExecutionModality; /** ** The unique identifier of the test execution. *
* * @param testExecutionId * The unique identifier of the test execution. */ public void setTestExecutionId(String testExecutionId) { this.testExecutionId = testExecutionId; } /** ** The unique identifier of the test execution. *
* * @return The unique identifier of the test execution. */ public String getTestExecutionId() { return this.testExecutionId; } /** ** The unique identifier of the test execution. *
* * @param testExecutionId * The unique identifier of the test execution. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withTestExecutionId(String testExecutionId) { setTestExecutionId(testExecutionId); return this; } /** ** The date and time at which the test execution was created. *
* * @param creationDateTime * The date and time at which the test execution was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The date and time at which the test execution was created. *
* * @return The date and time at which the test execution was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The date and time at which the test execution was created. *
* * @param creationDateTime * The date and time at which the test execution was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** The date and time at which the test execution was last updated. *
* * @param lastUpdatedDateTime * The date and time at which the test execution was last updated. */ public void setLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { this.lastUpdatedDateTime = lastUpdatedDateTime; } /** ** The date and time at which the test execution was last updated. *
* * @return The date and time at which the test execution was last updated. */ public java.util.Date getLastUpdatedDateTime() { return this.lastUpdatedDateTime; } /** ** The date and time at which the test execution was last updated. *
* * @param lastUpdatedDateTime * The date and time at which the test execution was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { setLastUpdatedDateTime(lastUpdatedDateTime); return this; } /** ** The current status of the test execution. *
* * @param testExecutionStatus * The current status of the test execution. * @see TestExecutionStatus */ public void setTestExecutionStatus(String testExecutionStatus) { this.testExecutionStatus = testExecutionStatus; } /** ** The current status of the test execution. *
* * @return The current status of the test execution. * @see TestExecutionStatus */ public String getTestExecutionStatus() { return this.testExecutionStatus; } /** ** The current status of the test execution. *
* * @param testExecutionStatus * The current status of the test execution. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionStatus */ public TestExecutionSummary withTestExecutionStatus(String testExecutionStatus) { setTestExecutionStatus(testExecutionStatus); return this; } /** ** The current status of the test execution. *
* * @param testExecutionStatus * The current status of the test execution. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionStatus */ public TestExecutionSummary withTestExecutionStatus(TestExecutionStatus testExecutionStatus) { this.testExecutionStatus = testExecutionStatus.toString(); return this; } /** ** The unique identifier of the test set used in the test execution. *
* * @param testSetId * The unique identifier of the test set used in the test execution. */ public void setTestSetId(String testSetId) { this.testSetId = testSetId; } /** ** The unique identifier of the test set used in the test execution. *
* * @return The unique identifier of the test set used in the test execution. */ public String getTestSetId() { return this.testSetId; } /** ** The unique identifier of the test set used in the test execution. *
* * @param testSetId * The unique identifier of the test set used in the test execution. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withTestSetId(String testSetId) { setTestSetId(testSetId); return this; } /** ** The name of the test set used in the test execution. *
* * @param testSetName * The name of the test set used in the test execution. */ public void setTestSetName(String testSetName) { this.testSetName = testSetName; } /** ** The name of the test set used in the test execution. *
* * @return The name of the test set used in the test execution. */ public String getTestSetName() { return this.testSetName; } /** ** The name of the test set used in the test execution. *
* * @param testSetName * The name of the test set used in the test execution. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withTestSetName(String testSetName) { setTestSetName(testSetName); return this; } /** ** Contains information about the bot used for the test execution.. *
* * @param target * Contains information about the bot used for the test execution.. */ public void setTarget(TestExecutionTarget target) { this.target = target; } /** ** Contains information about the bot used for the test execution.. *
* * @return Contains information about the bot used for the test execution.. */ public TestExecutionTarget getTarget() { return this.target; } /** ** Contains information about the bot used for the test execution.. *
* * @param target * Contains information about the bot used for the test execution.. * @return Returns a reference to this object so that method calls can be chained together. */ public TestExecutionSummary withTarget(TestExecutionTarget target) { setTarget(target); return this; } /** ** Specifies whether the API mode for the test execution is streaming or non-streaming. *
* * @param apiMode * Specifies whether the API mode for the test execution is streaming or non-streaming. * @see TestExecutionApiMode */ public void setApiMode(String apiMode) { this.apiMode = apiMode; } /** ** Specifies whether the API mode for the test execution is streaming or non-streaming. *
* * @return Specifies whether the API mode for the test execution is streaming or non-streaming. * @see TestExecutionApiMode */ public String getApiMode() { return this.apiMode; } /** ** Specifies whether the API mode for the test execution is streaming or non-streaming. *
* * @param apiMode * Specifies whether the API mode for the test execution is streaming or non-streaming. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionApiMode */ public TestExecutionSummary withApiMode(String apiMode) { setApiMode(apiMode); return this; } /** ** Specifies whether the API mode for the test execution is streaming or non-streaming. *
* * @param apiMode * Specifies whether the API mode for the test execution is streaming or non-streaming. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionApiMode */ public TestExecutionSummary withApiMode(TestExecutionApiMode apiMode) { this.apiMode = apiMode.toString(); return this; } /** ** Specifies whether the data used for the test execution is written or spoken. *
* * @param testExecutionModality * Specifies whether the data used for the test execution is written or spoken. * @see TestExecutionModality */ public void setTestExecutionModality(String testExecutionModality) { this.testExecutionModality = testExecutionModality; } /** ** Specifies whether the data used for the test execution is written or spoken. *
* * @return Specifies whether the data used for the test execution is written or spoken. * @see TestExecutionModality */ public String getTestExecutionModality() { return this.testExecutionModality; } /** ** Specifies whether the data used for the test execution is written or spoken. *
* * @param testExecutionModality * Specifies whether the data used for the test execution is written or spoken. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionModality */ public TestExecutionSummary withTestExecutionModality(String testExecutionModality) { setTestExecutionModality(testExecutionModality); return this; } /** ** Specifies whether the data used for the test execution is written or spoken. *
* * @param testExecutionModality * Specifies whether the data used for the test execution is written or spoken. * @return Returns a reference to this object so that method calls can be chained together. * @see TestExecutionModality */ public TestExecutionSummary withTestExecutionModality(TestExecutionModality testExecutionModality) { this.testExecutionModality = testExecutionModality.toString(); 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 (getTestExecutionId() != null) sb.append("TestExecutionId: ").append(getTestExecutionId()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getLastUpdatedDateTime() != null) sb.append("LastUpdatedDateTime: ").append(getLastUpdatedDateTime()).append(","); if (getTestExecutionStatus() != null) sb.append("TestExecutionStatus: ").append(getTestExecutionStatus()).append(","); if (getTestSetId() != null) sb.append("TestSetId: ").append(getTestSetId()).append(","); if (getTestSetName() != null) sb.append("TestSetName: ").append(getTestSetName()).append(","); if (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getApiMode() != null) sb.append("ApiMode: ").append(getApiMode()).append(","); if (getTestExecutionModality() != null) sb.append("TestExecutionModality: ").append(getTestExecutionModality()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TestExecutionSummary == false) return false; TestExecutionSummary other = (TestExecutionSummary) obj; if (other.getTestExecutionId() == null ^ this.getTestExecutionId() == null) return false; if (other.getTestExecutionId() != null && other.getTestExecutionId().equals(this.getTestExecutionId()) == 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; if (other.getTestExecutionStatus() == null ^ this.getTestExecutionStatus() == null) return false; if (other.getTestExecutionStatus() != null && other.getTestExecutionStatus().equals(this.getTestExecutionStatus()) == false) return false; 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.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getApiMode() == null ^ this.getApiMode() == null) return false; if (other.getApiMode() != null && other.getApiMode().equals(this.getApiMode()) == false) return false; if (other.getTestExecutionModality() == null ^ this.getTestExecutionModality() == null) return false; if (other.getTestExecutionModality() != null && other.getTestExecutionModality().equals(this.getTestExecutionModality()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTestExecutionId() == null) ? 0 : getTestExecutionId().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDateTime() == null) ? 0 : getLastUpdatedDateTime().hashCode()); hashCode = prime * hashCode + ((getTestExecutionStatus() == null) ? 0 : getTestExecutionStatus().hashCode()); hashCode = prime * hashCode + ((getTestSetId() == null) ? 0 : getTestSetId().hashCode()); hashCode = prime * hashCode + ((getTestSetName() == null) ? 0 : getTestSetName().hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getApiMode() == null) ? 0 : getApiMode().hashCode()); hashCode = prime * hashCode + ((getTestExecutionModality() == null) ? 0 : getTestExecutionModality().hashCode()); return hashCode; } @Override public TestExecutionSummary clone() { try { return (TestExecutionSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.lexmodelsv2.model.transform.TestExecutionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }