Interface CfnBot.SlotValueSelectionSettingProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBot.SlotValueSelectionSettingProperty.Jsii$Proxy
Enclosing class:
CfnBot

@Stability(Stable) public static interface CfnBot.SlotValueSelectionSettingProperty extends software.amazon.jsii.JsiiSerializable
Contains settings used by Amazon Lex to select a slot value.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lex.*;
 SlotValueSelectionSettingProperty slotValueSelectionSettingProperty = SlotValueSelectionSettingProperty.builder()
         .resolutionStrategy("resolutionStrategy")
         // the properties below are optional
         .advancedRecognitionSetting(AdvancedRecognitionSettingProperty.builder()
                 .audioRecognitionStrategy("audioRecognitionStrategy")
                 .build())
         .regexFilter(SlotValueRegexFilterProperty.builder()
                 .pattern("pattern")
                 .build())
         .build();
 
  • Method Details

    • getResolutionStrategy

      @Stability(Stable) @NotNull String getResolutionStrategy()
      Determines the slot resolution strategy that Amazon Lex uses to return slot type values.

      The field can be set to one of the following values:

      • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.
      • TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.

      If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE .

    • getAdvancedRecognitionSetting

      @Stability(Stable) @Nullable default Object getAdvancedRecognitionSetting()
      Provides settings that enable advanced recognition settings for slot values.

      You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.

    • getRegexFilter

      @Stability(Stable) @Nullable default Object getRegexFilter()
      A regular expression used to validate the value of a slot.
    • builder

      @Stability(Stable) static CfnBot.SlotValueSelectionSettingProperty.Builder builder()
      Returns:
      a CfnBot.SlotValueSelectionSettingProperty.Builder of CfnBot.SlotValueSelectionSettingProperty