/* * 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; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeTestSetDiscrepancyReportResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The unique identifier of the test set discrepancy report to describe. *

*/ private String testSetDiscrepancyReportId; /** *

* The test set Id for the test set discrepancy report. *

*/ private String testSetId; /** *

* The time and date of creation for the test set discrepancy report. *

*/ private java.util.Date creationDateTime; /** *

* The target bot location for the test set discrepancy report. *

*/ private TestSetDiscrepancyReportResourceTarget target; /** *

* The status for the test set discrepancy report. *

*/ private String testSetDiscrepancyReportStatus; /** *

* The date and time of the last update for the test set discrepancy report. *

*/ private java.util.Date lastUpdatedDataTime; /** *

* The top 200 error results from the test set discrepancy report. *

*/ private TestSetDiscrepancyErrors testSetDiscrepancyTopErrors; /** *

* Pre-signed Amazon S3 URL to download the test set discrepancy report. *

*/ private String testSetDiscrepancyRawOutputUrl; /** *

* The failure report for the test set discrepancy report generation action. *

*/ private java.util.List failureReasons; /** *

* The unique identifier of the test set discrepancy report to describe. *

* * @param testSetDiscrepancyReportId * The unique identifier of the test set discrepancy report to describe. */ public void setTestSetDiscrepancyReportId(String testSetDiscrepancyReportId) { this.testSetDiscrepancyReportId = testSetDiscrepancyReportId; } /** *

* The unique identifier of the test set discrepancy report to describe. *

* * @return The unique identifier of the test set discrepancy report to describe. */ public String getTestSetDiscrepancyReportId() { return this.testSetDiscrepancyReportId; } /** *

* The unique identifier of the test set discrepancy report to describe. *

* * @param testSetDiscrepancyReportId * The unique identifier of the test set discrepancy report to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withTestSetDiscrepancyReportId(String testSetDiscrepancyReportId) { setTestSetDiscrepancyReportId(testSetDiscrepancyReportId); return this; } /** *

* The test set Id for the test set discrepancy report. *

* * @param testSetId * The test set Id for the test set discrepancy report. */ public void setTestSetId(String testSetId) { this.testSetId = testSetId; } /** *

* The test set Id for the test set discrepancy report. *

* * @return The test set Id for the test set discrepancy report. */ public String getTestSetId() { return this.testSetId; } /** *

* The test set Id for the test set discrepancy report. *

* * @param testSetId * The test set Id for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withTestSetId(String testSetId) { setTestSetId(testSetId); return this; } /** *

* The time and date of creation for the test set discrepancy report. *

* * @param creationDateTime * The time and date of creation for the test set discrepancy report. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** *

* The time and date of creation for the test set discrepancy report. *

* * @return The time and date of creation for the test set discrepancy report. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** *

* The time and date of creation for the test set discrepancy report. *

* * @param creationDateTime * The time and date of creation for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** *

* The target bot location for the test set discrepancy report. *

* * @param target * The target bot location for the test set discrepancy report. */ public void setTarget(TestSetDiscrepancyReportResourceTarget target) { this.target = target; } /** *

* The target bot location for the test set discrepancy report. *

* * @return The target bot location for the test set discrepancy report. */ public TestSetDiscrepancyReportResourceTarget getTarget() { return this.target; } /** *

* The target bot location for the test set discrepancy report. *

* * @param target * The target bot location for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withTarget(TestSetDiscrepancyReportResourceTarget target) { setTarget(target); return this; } /** *

* The status for the test set discrepancy report. *

* * @param testSetDiscrepancyReportStatus * The status for the test set discrepancy report. * @see TestSetDiscrepancyReportStatus */ public void setTestSetDiscrepancyReportStatus(String testSetDiscrepancyReportStatus) { this.testSetDiscrepancyReportStatus = testSetDiscrepancyReportStatus; } /** *

* The status for the test set discrepancy report. *

* * @return The status for the test set discrepancy report. * @see TestSetDiscrepancyReportStatus */ public String getTestSetDiscrepancyReportStatus() { return this.testSetDiscrepancyReportStatus; } /** *

* The status for the test set discrepancy report. *

* * @param testSetDiscrepancyReportStatus * The status for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetDiscrepancyReportStatus */ public DescribeTestSetDiscrepancyReportResult withTestSetDiscrepancyReportStatus(String testSetDiscrepancyReportStatus) { setTestSetDiscrepancyReportStatus(testSetDiscrepancyReportStatus); return this; } /** *

* The status for the test set discrepancy report. *

* * @param testSetDiscrepancyReportStatus * The status for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetDiscrepancyReportStatus */ public DescribeTestSetDiscrepancyReportResult withTestSetDiscrepancyReportStatus(TestSetDiscrepancyReportStatus testSetDiscrepancyReportStatus) { this.testSetDiscrepancyReportStatus = testSetDiscrepancyReportStatus.toString(); return this; } /** *

* The date and time of the last update for the test set discrepancy report. *

* * @param lastUpdatedDataTime * The date and time of the last update for the test set discrepancy report. */ public void setLastUpdatedDataTime(java.util.Date lastUpdatedDataTime) { this.lastUpdatedDataTime = lastUpdatedDataTime; } /** *

* The date and time of the last update for the test set discrepancy report. *

* * @return The date and time of the last update for the test set discrepancy report. */ public java.util.Date getLastUpdatedDataTime() { return this.lastUpdatedDataTime; } /** *

* The date and time of the last update for the test set discrepancy report. *

* * @param lastUpdatedDataTime * The date and time of the last update for the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withLastUpdatedDataTime(java.util.Date lastUpdatedDataTime) { setLastUpdatedDataTime(lastUpdatedDataTime); return this; } /** *

* The top 200 error results from the test set discrepancy report. *

* * @param testSetDiscrepancyTopErrors * The top 200 error results from the test set discrepancy report. */ public void setTestSetDiscrepancyTopErrors(TestSetDiscrepancyErrors testSetDiscrepancyTopErrors) { this.testSetDiscrepancyTopErrors = testSetDiscrepancyTopErrors; } /** *

* The top 200 error results from the test set discrepancy report. *

* * @return The top 200 error results from the test set discrepancy report. */ public TestSetDiscrepancyErrors getTestSetDiscrepancyTopErrors() { return this.testSetDiscrepancyTopErrors; } /** *

* The top 200 error results from the test set discrepancy report. *

* * @param testSetDiscrepancyTopErrors * The top 200 error results from the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withTestSetDiscrepancyTopErrors(TestSetDiscrepancyErrors testSetDiscrepancyTopErrors) { setTestSetDiscrepancyTopErrors(testSetDiscrepancyTopErrors); return this; } /** *

* Pre-signed Amazon S3 URL to download the test set discrepancy report. *

* * @param testSetDiscrepancyRawOutputUrl * Pre-signed Amazon S3 URL to download the test set discrepancy report. */ public void setTestSetDiscrepancyRawOutputUrl(String testSetDiscrepancyRawOutputUrl) { this.testSetDiscrepancyRawOutputUrl = testSetDiscrepancyRawOutputUrl; } /** *

* Pre-signed Amazon S3 URL to download the test set discrepancy report. *

* * @return Pre-signed Amazon S3 URL to download the test set discrepancy report. */ public String getTestSetDiscrepancyRawOutputUrl() { return this.testSetDiscrepancyRawOutputUrl; } /** *

* Pre-signed Amazon S3 URL to download the test set discrepancy report. *

* * @param testSetDiscrepancyRawOutputUrl * Pre-signed Amazon S3 URL to download the test set discrepancy report. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withTestSetDiscrepancyRawOutputUrl(String testSetDiscrepancyRawOutputUrl) { setTestSetDiscrepancyRawOutputUrl(testSetDiscrepancyRawOutputUrl); return this; } /** *

* The failure report for the test set discrepancy report generation action. *

* * @return The failure report for the test set discrepancy report generation action. */ public java.util.List getFailureReasons() { return failureReasons; } /** *

* The failure report for the test set discrepancy report generation action. *

* * @param failureReasons * The failure report for the test set discrepancy report generation action. */ public void setFailureReasons(java.util.Collection failureReasons) { if (failureReasons == null) { this.failureReasons = null; return; } this.failureReasons = new java.util.ArrayList(failureReasons); } /** *

* The failure report for the test set discrepancy report generation action. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFailureReasons(java.util.Collection)} or {@link #withFailureReasons(java.util.Collection)} if you want * to override the existing values. *

* * @param failureReasons * The failure report for the test set discrepancy report generation action. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withFailureReasons(String... failureReasons) { if (this.failureReasons == null) { setFailureReasons(new java.util.ArrayList(failureReasons.length)); } for (String ele : failureReasons) { this.failureReasons.add(ele); } return this; } /** *

* The failure report for the test set discrepancy report generation action. *

* * @param failureReasons * The failure report for the test set discrepancy report generation action. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTestSetDiscrepancyReportResult withFailureReasons(java.util.Collection failureReasons) { setFailureReasons(failureReasons); 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 (getTestSetDiscrepancyReportId() != null) sb.append("TestSetDiscrepancyReportId: ").append(getTestSetDiscrepancyReportId()).append(","); if (getTestSetId() != null) sb.append("TestSetId: ").append(getTestSetId()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getTestSetDiscrepancyReportStatus() != null) sb.append("TestSetDiscrepancyReportStatus: ").append(getTestSetDiscrepancyReportStatus()).append(","); if (getLastUpdatedDataTime() != null) sb.append("LastUpdatedDataTime: ").append(getLastUpdatedDataTime()).append(","); if (getTestSetDiscrepancyTopErrors() != null) sb.append("TestSetDiscrepancyTopErrors: ").append(getTestSetDiscrepancyTopErrors()).append(","); if (getTestSetDiscrepancyRawOutputUrl() != null) sb.append("TestSetDiscrepancyRawOutputUrl: ").append(getTestSetDiscrepancyRawOutputUrl()).append(","); if (getFailureReasons() != null) sb.append("FailureReasons: ").append(getFailureReasons()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTestSetDiscrepancyReportResult == false) return false; DescribeTestSetDiscrepancyReportResult other = (DescribeTestSetDiscrepancyReportResult) obj; if (other.getTestSetDiscrepancyReportId() == null ^ this.getTestSetDiscrepancyReportId() == null) return false; if (other.getTestSetDiscrepancyReportId() != null && other.getTestSetDiscrepancyReportId().equals(this.getTestSetDiscrepancyReportId()) == 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.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == 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.getTestSetDiscrepancyReportStatus() == null ^ this.getTestSetDiscrepancyReportStatus() == null) return false; if (other.getTestSetDiscrepancyReportStatus() != null && other.getTestSetDiscrepancyReportStatus().equals(this.getTestSetDiscrepancyReportStatus()) == false) return false; if (other.getLastUpdatedDataTime() == null ^ this.getLastUpdatedDataTime() == null) return false; if (other.getLastUpdatedDataTime() != null && other.getLastUpdatedDataTime().equals(this.getLastUpdatedDataTime()) == false) return false; if (other.getTestSetDiscrepancyTopErrors() == null ^ this.getTestSetDiscrepancyTopErrors() == null) return false; if (other.getTestSetDiscrepancyTopErrors() != null && other.getTestSetDiscrepancyTopErrors().equals(this.getTestSetDiscrepancyTopErrors()) == false) return false; if (other.getTestSetDiscrepancyRawOutputUrl() == null ^ this.getTestSetDiscrepancyRawOutputUrl() == null) return false; if (other.getTestSetDiscrepancyRawOutputUrl() != null && other.getTestSetDiscrepancyRawOutputUrl().equals(this.getTestSetDiscrepancyRawOutputUrl()) == false) return false; if (other.getFailureReasons() == null ^ this.getFailureReasons() == null) return false; if (other.getFailureReasons() != null && other.getFailureReasons().equals(this.getFailureReasons()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTestSetDiscrepancyReportId() == null) ? 0 : getTestSetDiscrepancyReportId().hashCode()); hashCode = prime * hashCode + ((getTestSetId() == null) ? 0 : getTestSetId().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getTestSetDiscrepancyReportStatus() == null) ? 0 : getTestSetDiscrepancyReportStatus().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDataTime() == null) ? 0 : getLastUpdatedDataTime().hashCode()); hashCode = prime * hashCode + ((getTestSetDiscrepancyTopErrors() == null) ? 0 : getTestSetDiscrepancyTopErrors().hashCode()); hashCode = prime * hashCode + ((getTestSetDiscrepancyRawOutputUrl() == null) ? 0 : getTestSetDiscrepancyRawOutputUrl().hashCode()); hashCode = prime * hashCode + ((getFailureReasons() == null) ? 0 : getFailureReasons().hashCode()); return hashCode; } @Override public DescribeTestSetDiscrepancyReportResult clone() { try { return (DescribeTestSetDiscrepancyReportResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }