Interface CreateSlotTypeRequest.Builder

    • Method Detail

      • slotTypeName

        CreateSlotTypeRequest.Builder slotTypeName​(String slotTypeName)

        The name for the slot. A slot type name must be unique within the intent.

        Parameters:
        slotTypeName - The name for the slot. A slot type name must be unique within the intent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateSlotTypeRequest.Builder description​(String description)

        A description of the slot type. Use the description to help identify the slot type in lists.

        Parameters:
        description - A description of the slot type. Use the description to help identify the slot type in lists.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slotTypeValues

        CreateSlotTypeRequest.Builder slotTypeValues​(Collection<SlotTypeValue> slotTypeValues)

        A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.

        Parameters:
        slotTypeValues - A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slotTypeValues

        CreateSlotTypeRequest.Builder slotTypeValues​(SlotTypeValue... slotTypeValues)

        A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.

        Parameters:
        slotTypeValues - A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • slotTypeValues

        CreateSlotTypeRequest.Builder slotTypeValues​(Consumer<SlotTypeValue.Builder>... slotTypeValues)

        A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.

        This is a convenience method that creates an instance of the SlotTypeValue.Builder avoiding the need to create one manually via SlotTypeValue.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #slotTypeValues(List).

        Parameters:
        slotTypeValues - a consumer that will call methods on SlotTypeValue.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #slotTypeValues(java.util.Collection)
      • valueSelectionSetting

        CreateSlotTypeRequest.Builder valueSelectionSetting​(SlotValueSelectionSetting valueSelectionSetting)

        Determines the strategy that Amazon Lex uses to select a value from the list of possible 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. If there is no resolution list, return null.

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

        Parameters:
        valueSelectionSetting - Determines the strategy that Amazon Lex uses to select a value from the list of possible 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. If there is no resolution list, return null.

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

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentSlotTypeSignature

        CreateSlotTypeRequest.Builder parentSlotTypeSignature​(String parentSlotTypeSignature)

        The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.

        Only AMAZON.AlphaNumeric is supported.

        Parameters:
        parentSlotTypeSignature - The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.

        Only AMAZON.AlphaNumeric is supported.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • botId

        CreateSlotTypeRequest.Builder botId​(String botId)

        The identifier of the bot associated with this slot type.

        Parameters:
        botId - The identifier of the bot associated with this slot type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • botVersion

        CreateSlotTypeRequest.Builder botVersion​(String botVersion)

        The identifier of the bot version associated with this slot type.

        Parameters:
        botVersion - The identifier of the bot version associated with this slot type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • localeId

        CreateSlotTypeRequest.Builder localeId​(String localeId)

        The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.

        Parameters:
        localeId - The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • externalSourceSetting

        CreateSlotTypeRequest.Builder externalSourceSetting​(ExternalSourceSetting externalSourceSetting)

        Sets the type of external information used to create the slot type.

        Parameters:
        externalSourceSetting - Sets the type of external information used to create the slot type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • compositeSlotTypeSetting

        CreateSlotTypeRequest.Builder compositeSlotTypeSetting​(CompositeSlotTypeSetting compositeSlotTypeSetting)

        Specifications for a composite slot type.

        Parameters:
        compositeSlotTypeSetting - Specifications for a composite slot type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.