/* * 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.lexruntime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An intent that Amazon Lex suggests satisfies the user's intent. Includes the name of the intent, the confidence that * Amazon Lex has that the user's intent is satisfied, and the slots defined for the intent. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PredictedIntent implements Serializable, Cloneable, StructuredPojo { /** ** The name of the intent that Amazon Lex suggests satisfies the user's intent. *
*/ private String intentName; /** ** Indicates how confident Amazon Lex is that an intent satisfies the user's intent. *
*/ private IntentConfidence nluIntentConfidence; /** ** The slot and slot values associated with the predicted intent. *
*/ private java.util.Map* The name of the intent that Amazon Lex suggests satisfies the user's intent. *
* * @param intentName * The name of the intent that Amazon Lex suggests satisfies the user's intent. */ public void setIntentName(String intentName) { this.intentName = intentName; } /** ** The name of the intent that Amazon Lex suggests satisfies the user's intent. *
* * @return The name of the intent that Amazon Lex suggests satisfies the user's intent. */ public String getIntentName() { return this.intentName; } /** ** The name of the intent that Amazon Lex suggests satisfies the user's intent. *
* * @param intentName * The name of the intent that Amazon Lex suggests satisfies the user's intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PredictedIntent withIntentName(String intentName) { setIntentName(intentName); return this; } /** ** Indicates how confident Amazon Lex is that an intent satisfies the user's intent. *
* * @param nluIntentConfidence * Indicates how confident Amazon Lex is that an intent satisfies the user's intent. */ public void setNluIntentConfidence(IntentConfidence nluIntentConfidence) { this.nluIntentConfidence = nluIntentConfidence; } /** ** Indicates how confident Amazon Lex is that an intent satisfies the user's intent. *
* * @return Indicates how confident Amazon Lex is that an intent satisfies the user's intent. */ public IntentConfidence getNluIntentConfidence() { return this.nluIntentConfidence; } /** ** Indicates how confident Amazon Lex is that an intent satisfies the user's intent. *
* * @param nluIntentConfidence * Indicates how confident Amazon Lex is that an intent satisfies the user's intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PredictedIntent withNluIntentConfidence(IntentConfidence nluIntentConfidence) { setNluIntentConfidence(nluIntentConfidence); return this; } /** ** The slot and slot values associated with the predicted intent. *
* * @return The slot and slot values associated with the predicted intent. */ public java.util.Map* The slot and slot values associated with the predicted intent. *
* * @param slots * The slot and slot values associated with the predicted intent. */ public void setSlots(java.util.Map* The slot and slot values associated with the predicted intent. *
* * @param slots * The slot and slot values associated with the predicted intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PredictedIntent withSlots(java.util.Map