@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) |
ExternalSourceSetting |
externalSourceSetting()
Sets the type of external information used to create the slot type.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSlotTypeValues()
For responses, this returns true if the service returned a value for the SlotTypeValues property.
|
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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSlotTypeValues() method.
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 Supported languages.
public final ExternalSourceSetting externalSourceSetting()
Sets the type of external information used to create the slot type.
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 © 2022. All rights reserved.