@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSlotTypeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSlotTypeRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSlotTypeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBotId()
The identifier of the bot associated with this slot type.
|
String |
getBotVersion()
The identifier of the bot version associated with this slot type.
|
CompositeSlotTypeSetting |
getCompositeSlotTypeSetting()
Specifications for a composite slot type.
|
String |
getDescription()
A description of the slot type.
|
ExternalSourceSetting |
getExternalSourceSetting()
Sets the type of external information used to create the slot type.
|
String |
getLocaleId()
The identifier of the language and locale that the slot type will be used in.
|
String |
getParentSlotTypeSignature()
The built-in slot type used as a parent of this slot type.
|
String |
getSlotTypeName()
The name for the slot.
|
List<SlotTypeValue> |
getSlotTypeValues()
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
SlotValueSelectionSetting |
getValueSelectionSetting()
Determines the strategy that Amazon Lex uses to select a value from the list of possible values.
|
int |
hashCode() |
void |
setBotId(String botId)
The identifier of the bot associated with this slot type.
|
void |
setBotVersion(String botVersion)
The identifier of the bot version associated with this slot type.
|
void |
setCompositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)
Specifications for a composite slot type.
|
void |
setDescription(String description)
A description of the slot type.
|
void |
setExternalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
|
void |
setLocaleId(String localeId)
The identifier of the language and locale that the slot type will be used in.
|
void |
setParentSlotTypeSignature(String parentSlotTypeSignature)
The built-in slot type used as a parent of this slot type.
|
void |
setSlotTypeName(String slotTypeName)
The name for the slot.
|
void |
setSlotTypeValues(Collection<SlotTypeValue> slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
void |
setValueSelectionSetting(SlotValueSelectionSetting valueSelectionSetting)
Determines the strategy that Amazon Lex uses to select a value from the list of possible values.
|
String |
toString()
Returns a string representation of this object.
|
CreateSlotTypeRequest |
withBotId(String botId)
The identifier of the bot associated with this slot type.
|
CreateSlotTypeRequest |
withBotVersion(String botVersion)
The identifier of the bot version associated with this slot type.
|
CreateSlotTypeRequest |
withCompositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)
Specifications for a composite slot type.
|
CreateSlotTypeRequest |
withDescription(String description)
A description of the slot type.
|
CreateSlotTypeRequest |
withExternalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
|
CreateSlotTypeRequest |
withLocaleId(String localeId)
The identifier of the language and locale that the slot type will be used in.
|
CreateSlotTypeRequest |
withParentSlotTypeSignature(String parentSlotTypeSignature)
The built-in slot type used as a parent of this slot type.
|
CreateSlotTypeRequest |
withSlotTypeName(String slotTypeName)
The name for the slot.
|
CreateSlotTypeRequest |
withSlotTypeValues(Collection<SlotTypeValue> slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
CreateSlotTypeRequest |
withSlotTypeValues(SlotTypeValue... slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
CreateSlotTypeRequest |
withValueSelectionSetting(SlotValueSelectionSetting valueSelectionSetting)
Determines the strategy that Amazon Lex uses to select a value from the list of possible values.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSlotTypeName(String slotTypeName)
The name for the slot. A slot type name must be unique within the intent.
slotTypeName
- The name for the slot. A slot type name must be unique within the intent.public String getSlotTypeName()
The name for the slot. A slot type name must be unique within the intent.
public CreateSlotTypeRequest withSlotTypeName(String slotTypeName)
The name for the slot. A slot type name must be unique within the intent.
slotTypeName
- The name for the slot. A slot type name must be unique within the intent.public void setDescription(String description)
A description of the slot type. Use the description to help identify the slot type in lists.
description
- A description of the slot type. Use the description to help identify the slot type in lists.public String getDescription()
A description of the slot type. Use the description to help identify the slot type in lists.
public CreateSlotTypeRequest withDescription(String description)
A description of the slot type. Use the description to help identify the slot type in lists.
description
- A description of the slot type. Use the description to help identify the slot type in lists.public List<SlotTypeValue> getSlotTypeValues()
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.
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 void setSlotTypeValues(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.
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.public CreateSlotTypeRequest withSlotTypeValues(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.
NOTE: This method appends the values to the existing list (if any). Use
setSlotTypeValues(java.util.Collection)
or withSlotTypeValues(java.util.Collection)
if you want
to override the existing values.
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.public CreateSlotTypeRequest withSlotTypeValues(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.
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.public void setValueSelectionSetting(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
.
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
.
public SlotValueSelectionSetting getValueSelectionSetting()
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
.
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
.
public CreateSlotTypeRequest withValueSelectionSetting(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
.
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
.
public void setParentSlotTypeSignature(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.
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.
public String getParentSlotTypeSignature()
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 CreateSlotTypeRequest withParentSlotTypeSignature(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.
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.
public void setBotId(String botId)
The identifier of the bot associated with this slot type.
botId
- The identifier of the bot associated with this slot type.public String getBotId()
The identifier of the bot associated with this slot type.
public CreateSlotTypeRequest withBotId(String botId)
The identifier of the bot associated with this slot type.
botId
- The identifier of the bot associated with this slot type.public void setBotVersion(String botVersion)
The identifier of the bot version associated with this slot type.
botVersion
- The identifier of the bot version associated with this slot type.public String getBotVersion()
The identifier of the bot version associated with this slot type.
public CreateSlotTypeRequest withBotVersion(String botVersion)
The identifier of the bot version associated with this slot type.
botVersion
- The identifier of the bot version associated with this slot type.public void setLocaleId(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.
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 String getLocaleId()
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 CreateSlotTypeRequest withLocaleId(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.
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 void setExternalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
externalSourceSetting
- Sets the type of external information used to create the slot type.public ExternalSourceSetting getExternalSourceSetting()
Sets the type of external information used to create the slot type.
public CreateSlotTypeRequest withExternalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
externalSourceSetting
- Sets the type of external information used to create the slot type.public void setCompositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)
Specifications for a composite slot type.
compositeSlotTypeSetting
- Specifications for a composite slot type.public CompositeSlotTypeSetting getCompositeSlotTypeSetting()
Specifications for a composite slot type.
public CreateSlotTypeRequest withCompositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)
Specifications for a composite slot type.
compositeSlotTypeSetting
- Specifications for a composite slot type.public String toString()
toString
in class Object
Object.toString()
public CreateSlotTypeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()