/* * 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; /** *

* The conversation level details of the conversation used in the test set. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConversationLevelResultDetail implements Serializable, Cloneable, StructuredPojo { /** *

* The success or failure of the streaming of the conversation. *

*/ private String endToEndResult; /** *

* The speech transcription success or failure details of the conversation. *

*/ private String speechTranscriptionResult; /** *

* The success or failure of the streaming of the conversation. *

* * @param endToEndResult * The success or failure of the streaming of the conversation. * @see TestResultMatchStatus */ public void setEndToEndResult(String endToEndResult) { this.endToEndResult = endToEndResult; } /** *

* The success or failure of the streaming of the conversation. *

* * @return The success or failure of the streaming of the conversation. * @see TestResultMatchStatus */ public String getEndToEndResult() { return this.endToEndResult; } /** *

* The success or failure of the streaming of the conversation. *

* * @param endToEndResult * The success or failure of the streaming of the conversation. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelResultDetail withEndToEndResult(String endToEndResult) { setEndToEndResult(endToEndResult); return this; } /** *

* The success or failure of the streaming of the conversation. *

* * @param endToEndResult * The success or failure of the streaming of the conversation. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelResultDetail withEndToEndResult(TestResultMatchStatus endToEndResult) { this.endToEndResult = endToEndResult.toString(); return this; } /** *

* The speech transcription success or failure details of the conversation. *

* * @param speechTranscriptionResult * The speech transcription success or failure details of the conversation. * @see TestResultMatchStatus */ public void setSpeechTranscriptionResult(String speechTranscriptionResult) { this.speechTranscriptionResult = speechTranscriptionResult; } /** *

* The speech transcription success or failure details of the conversation. *

* * @return The speech transcription success or failure details of the conversation. * @see TestResultMatchStatus */ public String getSpeechTranscriptionResult() { return this.speechTranscriptionResult; } /** *

* The speech transcription success or failure details of the conversation. *

* * @param speechTranscriptionResult * The speech transcription success or failure details of the conversation. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelResultDetail withSpeechTranscriptionResult(String speechTranscriptionResult) { setSpeechTranscriptionResult(speechTranscriptionResult); return this; } /** *

* The speech transcription success or failure details of the conversation. *

* * @param speechTranscriptionResult * The speech transcription success or failure details of the conversation. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelResultDetail withSpeechTranscriptionResult(TestResultMatchStatus speechTranscriptionResult) { this.speechTranscriptionResult = speechTranscriptionResult.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 (getEndToEndResult() != null) sb.append("EndToEndResult: ").append(getEndToEndResult()).append(","); if (getSpeechTranscriptionResult() != null) sb.append("SpeechTranscriptionResult: ").append(getSpeechTranscriptionResult()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConversationLevelResultDetail == false) return false; ConversationLevelResultDetail other = (ConversationLevelResultDetail) obj; if (other.getEndToEndResult() == null ^ this.getEndToEndResult() == null) return false; if (other.getEndToEndResult() != null && other.getEndToEndResult().equals(this.getEndToEndResult()) == false) return false; if (other.getSpeechTranscriptionResult() == null ^ this.getSpeechTranscriptionResult() == null) return false; if (other.getSpeechTranscriptionResult() != null && other.getSpeechTranscriptionResult().equals(this.getSpeechTranscriptionResult()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndToEndResult() == null) ? 0 : getEndToEndResult().hashCode()); hashCode = prime * hashCode + ((getSpeechTranscriptionResult() == null) ? 0 : getSpeechTranscriptionResult().hashCode()); return hashCode; } @Override public ConversationLevelResultDetail clone() { try { return (ConversationLevelResultDetail) 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.ConversationLevelResultDetailMarshaller.getInstance().marshall(this, protocolMarshaller); } }