Interface SlotDefaultValueSpec.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SlotDefaultValueSpec.Builder,,SlotDefaultValueSpec> SdkBuilder<SlotDefaultValueSpec.Builder,,SlotDefaultValueSpec> SdkPojo
- Enclosing class:
SlotDefaultValueSpec
-
Method Summary
Modifier and TypeMethodDescriptiondefaultValueList(Collection<SlotDefaultValue> defaultValueList) The default values for a slot.defaultValueList(Consumer<SlotDefaultValue.Builder>... defaultValueList) The default values for a slot.defaultValueList(SlotDefaultValue... defaultValueList) The default values for a slot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
defaultValueList
The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.
The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.
- Parameters:
defaultValueList- The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValueList
The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.
The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.
- Parameters:
defaultValueList- The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValueList
SlotDefaultValueSpec.Builder defaultValueList(Consumer<SlotDefaultValue.Builder>... defaultValueList) The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.
The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.
This is a convenience method that creates an instance of theSlotDefaultValue.Builderavoiding the need to create one manually viaSlotDefaultValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultValueList(List<SlotDefaultValue>).- Parameters:
defaultValueList- a consumer that will call methods onSlotDefaultValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-