/* * 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; /** *
* You can provide Amazon Lex with hints to the phrases that a customer is likely to use for a slot. When a slot with * hints is resolved, the phrases in the runtime hints are preferred in the resolution. You can provide hints for a * maximum of 100 intents. You can provide a maximum of 100 slots. *
** Before you can use runtime hints with an existing bot, you must first rebuild the bot. *
** For more information, see Using runtime hints * to improve recognition of slot values. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RuntimeHints implements Serializable, Cloneable, StructuredPojo { /** ** A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for * each slot. *
*
* The first level of the slotHints
map is the name of the intent. The second level is the name of the
* slot within the intent. For more information, see Using hints to improve accuracy.
*
* The intent name and slot name must exist. *
*/ private java.util.Map* A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for * each slot. *
*
* The first level of the slotHints
map is the name of the intent. The second level is the name of the
* slot within the intent. For more information, see Using hints to improve accuracy.
*
* The intent name and slot name must exist. *
* * @return A list of the slots in the intent that should have runtime hints added, and the phrases that should be * added for each slot. *
* The first level of the slotHints
map is the name of the intent. The second level is the name
* of the slot within the intent. For more information, see Using hints to improve accuracy.
*
* The intent name and slot name must exist.
*/
public java.util.Map
* A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for
* each slot.
*
* The first level of the
* The intent name and slot name must exist.
* slotHints
map is the name of the intent. The second level is the name of the
* slot within the intent. For more information, see Using hints to improve accuracy.
*
* The first level of the slotHints
map is the name of the intent. The second level is the name
* of the slot within the intent. For more information, see Using hints to improve accuracy.
*
* The intent name and slot name must exist.
*/
public void setSlotHints(java.util.Map
* A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for
* each slot.
*
* The first level of the
* The intent name and slot name must exist.
* slotHints
map is the name of the intent. The second level is the name of the
* slot within the intent. For more information, see Using hints to improve accuracy.
*
* The first level of the slotHints
map is the name of the intent. The second level is the name
* of the slot within the intent. For more information, see Using hints to improve accuracy.
*
* The intent name and slot name must exist.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RuntimeHints withSlotHints(java.util.Map