/* * 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.lexruntimev2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides an array of phrases that should be given preference when resolving values for a slot. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RuntimeHintDetails implements Serializable, Cloneable, StructuredPojo { /** ** One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference * when deciding on slot values. *
*/ private java.util.List* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added * for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot * phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the * constituent sub slot names must exist. *
*/ private java.util.Map* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference * when deciding on slot values. *
* * @return One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given * preference when deciding on slot values. */ public java.util.List* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference * when deciding on slot values. *
* * @param runtimeHintValues * One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given * preference when deciding on slot values. */ public void setRuntimeHintValues(java.util.Collection* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference * when deciding on slot values. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuntimeHintValues(java.util.Collection)} or {@link #withRuntimeHintValues(java.util.Collection)} if * you want to override the existing values. *
* * @param runtimeHintValues * One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given * preference when deciding on slot values. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeHintDetails withRuntimeHintValues(RuntimeHintValue... runtimeHintValues) { if (this.runtimeHintValues == null) { setRuntimeHintValues(new java.util.ArrayList* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference * when deciding on slot values. *
* * @param runtimeHintValues * One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given * preference when deciding on slot values. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeHintDetails withRuntimeHintValues(java.util.Collection* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added * for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot * phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the * constituent sub slot names must exist. *
* * @return A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be * added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add * granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, * composite slot name and the constituent sub slot names must exist. */ public java.util.Map* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added * for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot * phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the * constituent sub slot names must exist. *
* * @param subSlotHints * A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be * added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add * granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, * composite slot name and the constituent sub slot names must exist. */ public void setSubSlotHints(java.util.Map* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added * for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot * phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the * constituent sub slot names must exist. *
* * @param subSlotHints * A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be * added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add * granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, * composite slot name and the constituent sub slot names must exist. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeHintDetails withSubSlotHints(java.util.Map