Interface SlotDefaultValueSpec.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlotDefaultValueSpec.Builder,SlotDefaultValueSpec>,SdkBuilder<SlotDefaultValueSpec.Builder,SlotDefaultValueSpec>,SdkPojo
- Enclosing class:
- SlotDefaultValueSpec
public static interface SlotDefaultValueSpec.Builder extends SdkPojo, CopyableBuilder<SlotDefaultValueSpec.Builder,SlotDefaultValueSpec>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SlotDefaultValueSpec.BuilderdefaultValueList(Collection<SlotDefaultValue> defaultValueList)The default values for a slot.SlotDefaultValueSpec.BuilderdefaultValueList(Consumer<SlotDefaultValue.Builder>... defaultValueList)The default values for a slot.SlotDefaultValueSpec.BuilderdefaultValueList(SlotDefaultValue... defaultValueList)The default values for a slot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
defaultValueList
SlotDefaultValueSpec.Builder defaultValueList(Collection<SlotDefaultValue> 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(SlotDefaultValue... 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 to#defaultValueList(List.) - 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:
#defaultValueList(java.util.Collection)
-
-