@Generated(value="software.amazon.awssdk:codegen") public final class CreateSlotTypeRequest extends LexModelsV2Request implements ToCopyableBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateSlotTypeRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
botId()
The identifier of the bot associated with this slot type.
|
String |
botVersion()
The identifier of the bot version associated with this slot type.
|
static CreateSlotTypeRequest.Builder |
builder() |
String |
description()
A description of the slot type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSlotTypeValues()
Returns true if the SlotTypeValues property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
localeId()
The identifier of the language and locale that the slot type will be used in.
|
String |
parentSlotTypeSignature()
The built-in slot type used as a parent of this slot type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateSlotTypeRequest.Builder> |
serializableBuilderClass() |
String |
slotTypeName()
The name for the slot.
|
List<SlotTypeValue> |
slotTypeValues()
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
CreateSlotTypeRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
SlotValueSelectionSetting |
valueSelectionSetting()
Determines the strategy that Amazon Lex uses to select a value from the list of possible values.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String slotTypeName()
The name for the slot. A slot type name must be unique within the account.
public final String description()
A description of the slot type. Use the description to help identify the slot type in lists.
public final boolean hasSlotTypeValues()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSlotTypeValues() to see if a value was sent in this field.
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.public final 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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot
value.
TopResolution - 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 OriginalValue.
OriginalValue - Returns the value entered by the user, if the user value is similar to the
slot value.
TopResolution - 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
OriginalValue.
public final 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.
Only AMAZON.AlphaNumeric is supported.
public final String botId()
The identifier of the bot associated with this slot type.
public final String botVersion()
The identifier of the bot version associated with this slot type.
public final 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 https://docs.aws.amazon .com/lex/latest/dg/supported-locales.html.
public CreateSlotTypeRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>toBuilder in class LexModelsV2Requestpublic static CreateSlotTypeRequest.Builder builder()
public static Class<? extends CreateSlotTypeRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.