/* * 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 test result evaluation item at the conversation level. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConversationLevelTestResultItem implements Serializable, Cloneable, StructuredPojo { /** ** The conversation Id of the test result evaluation item. *
*/ private String conversationId; /** ** The end-to-end success or failure of the test result evaluation item. *
*/ private String endToEndResult; /** ** The speech transcription success or failure of the test result evaluation item. *
*/ private String speechTranscriptionResult; /** ** The intent classification of the test result evaluation item. *
*/ private java.util.List* The slot success or failure of the test result evaluation item. *
*/ private java.util.List* The conversation Id of the test result evaluation item. *
* * @param conversationId * The conversation Id of the test result evaluation item. */ public void setConversationId(String conversationId) { this.conversationId = conversationId; } /** ** The conversation Id of the test result evaluation item. *
* * @return The conversation Id of the test result evaluation item. */ public String getConversationId() { return this.conversationId; } /** ** The conversation Id of the test result evaluation item. *
* * @param conversationId * The conversation Id of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. */ public ConversationLevelTestResultItem withConversationId(String conversationId) { setConversationId(conversationId); return this; } /** ** The end-to-end success or failure of the test result evaluation item. *
* * @param endToEndResult * The end-to-end success or failure of the test result evaluation item. * @see TestResultMatchStatus */ public void setEndToEndResult(String endToEndResult) { this.endToEndResult = endToEndResult; } /** ** The end-to-end success or failure of the test result evaluation item. *
* * @return The end-to-end success or failure of the test result evaluation item. * @see TestResultMatchStatus */ public String getEndToEndResult() { return this.endToEndResult; } /** ** The end-to-end success or failure of the test result evaluation item. *
* * @param endToEndResult * The end-to-end success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelTestResultItem withEndToEndResult(String endToEndResult) { setEndToEndResult(endToEndResult); return this; } /** ** The end-to-end success or failure of the test result evaluation item. *
* * @param endToEndResult * The end-to-end success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelTestResultItem withEndToEndResult(TestResultMatchStatus endToEndResult) { this.endToEndResult = endToEndResult.toString(); return this; } /** ** The speech transcription success or failure of the test result evaluation item. *
* * @param speechTranscriptionResult * The speech transcription success or failure of the test result evaluation item. * @see TestResultMatchStatus */ public void setSpeechTranscriptionResult(String speechTranscriptionResult) { this.speechTranscriptionResult = speechTranscriptionResult; } /** ** The speech transcription success or failure of the test result evaluation item. *
* * @return The speech transcription success or failure of the test result evaluation item. * @see TestResultMatchStatus */ public String getSpeechTranscriptionResult() { return this.speechTranscriptionResult; } /** ** The speech transcription success or failure of the test result evaluation item. *
* * @param speechTranscriptionResult * The speech transcription success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelTestResultItem withSpeechTranscriptionResult(String speechTranscriptionResult) { setSpeechTranscriptionResult(speechTranscriptionResult); return this; } /** ** The speech transcription success or failure of the test result evaluation item. *
* * @param speechTranscriptionResult * The speech transcription success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. * @see TestResultMatchStatus */ public ConversationLevelTestResultItem withSpeechTranscriptionResult(TestResultMatchStatus speechTranscriptionResult) { this.speechTranscriptionResult = speechTranscriptionResult.toString(); return this; } /** ** The intent classification of the test result evaluation item. *
* * @return The intent classification of the test result evaluation item. */ public java.util.List* The intent classification of the test result evaluation item. *
* * @param intentClassificationResults * The intent classification of the test result evaluation item. */ public void setIntentClassificationResults(java.util.Collection* The intent classification of the test result evaluation item. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIntentClassificationResults(java.util.Collection)} or * {@link #withIntentClassificationResults(java.util.Collection)} if you want to override the existing values. *
* * @param intentClassificationResults * The intent classification of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. */ public ConversationLevelTestResultItem withIntentClassificationResults(ConversationLevelIntentClassificationResultItem... intentClassificationResults) { if (this.intentClassificationResults == null) { setIntentClassificationResults(new java.util.ArrayList* The intent classification of the test result evaluation item. *
* * @param intentClassificationResults * The intent classification of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. */ public ConversationLevelTestResultItem withIntentClassificationResults( java.util.Collection* The slot success or failure of the test result evaluation item. *
* * @return The slot success or failure of the test result evaluation item. */ public java.util.List* The slot success or failure of the test result evaluation item. *
* * @param slotResolutionResults * The slot success or failure of the test result evaluation item. */ public void setSlotResolutionResults(java.util.Collection* The slot success or failure of the test result evaluation item. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSlotResolutionResults(java.util.Collection)} or * {@link #withSlotResolutionResults(java.util.Collection)} if you want to override the existing values. *
* * @param slotResolutionResults * The slot success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. */ public ConversationLevelTestResultItem withSlotResolutionResults(ConversationLevelSlotResolutionResultItem... slotResolutionResults) { if (this.slotResolutionResults == null) { setSlotResolutionResults(new java.util.ArrayList* The slot success or failure of the test result evaluation item. *
* * @param slotResolutionResults * The slot success or failure of the test result evaluation item. * @return Returns a reference to this object so that method calls can be chained together. */ public ConversationLevelTestResultItem withSlotResolutionResults(java.util.Collection