@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Slot extends Object implements Serializable, Cloneable, StructuredPojo
Identifies the version of a specific slot.
Constructor and Description |
---|
Slot() |
Modifier and Type | Method and Description |
---|---|
Slot |
clone() |
boolean |
equals(Object obj) |
SlotDefaultValueSpec |
getDefaultValueSpec()
A list of default values for the slot.
|
String |
getDescription()
A description of the slot.
|
String |
getName()
The name of the slot.
|
String |
getObfuscationSetting()
Determines whether a slot is obfuscated in conversation logs and stored utterances.
|
Integer |
getPriority()
Directs Amazon Lex the order in which to elicit this slot value from the user.
|
String |
getResponseCard()
A set of possible responses for the slot type used by text-based clients.
|
List<String> |
getSampleUtterances()
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
String |
getSlotConstraint()
Specifies whether the slot is required or optional.
|
String |
getSlotType()
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
|
String |
getSlotTypeVersion()
The version of the slot type.
|
Prompt |
getValueElicitationPrompt()
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultValueSpec(SlotDefaultValueSpec defaultValueSpec)
A list of default values for the slot.
|
void |
setDescription(String description)
A description of the slot.
|
void |
setName(String name)
The name of the slot.
|
void |
setObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances.
|
void |
setObfuscationSetting(String obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances.
|
void |
setPriority(Integer priority)
Directs Amazon Lex the order in which to elicit this slot value from the user.
|
void |
setResponseCard(String responseCard)
A set of possible responses for the slot type used by text-based clients.
|
void |
setSampleUtterances(Collection<String> sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
void |
setSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
|
void |
setSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
|
void |
setSlotType(String slotType)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
|
void |
setSlotTypeVersion(String slotTypeVersion)
The version of the slot type.
|
void |
setValueElicitationPrompt(Prompt valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
String |
toString()
Returns a string representation of this object.
|
Slot |
withDefaultValueSpec(SlotDefaultValueSpec defaultValueSpec)
A list of default values for the slot.
|
Slot |
withDescription(String description)
A description of the slot.
|
Slot |
withName(String name)
The name of the slot.
|
Slot |
withObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances.
|
Slot |
withObfuscationSetting(String obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances.
|
Slot |
withPriority(Integer priority)
Directs Amazon Lex the order in which to elicit this slot value from the user.
|
Slot |
withResponseCard(String responseCard)
A set of possible responses for the slot type used by text-based clients.
|
Slot |
withSampleUtterances(Collection<String> sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
Slot |
withSampleUtterances(String... sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
Slot |
withSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
|
Slot |
withSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
|
Slot |
withSlotType(String slotType)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
|
Slot |
withSlotTypeVersion(String slotTypeVersion)
The version of the slot type.
|
Slot |
withValueElicitationPrompt(Prompt valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
public void setName(String name)
The name of the slot.
name
- The name of the slot.public String getName()
The name of the slot.
public Slot withName(String name)
The name of the slot.
name
- The name of the slot.public void setDescription(String description)
A description of the slot.
description
- A description of the slot.public String getDescription()
A description of the slot.
public Slot withDescription(String description)
A description of the slot.
description
- A description of the slot.public void setSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public String getSlotConstraint()
Specifies whether the slot is required or optional.
SlotConstraint
public Slot withSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public void setSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public Slot withSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public void setSlotType(String slotType)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
slotType
- The type of the slot, either a custom slot type that you defined or one of the built-in slot types.public String getSlotType()
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
public Slot withSlotType(String slotType)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
slotType
- The type of the slot, either a custom slot type that you defined or one of the built-in slot types.public void setSlotTypeVersion(String slotTypeVersion)
The version of the slot type.
slotTypeVersion
- The version of the slot type.public String getSlotTypeVersion()
The version of the slot type.
public Slot withSlotTypeVersion(String slotTypeVersion)
The version of the slot type.
slotTypeVersion
- The version of the slot type.public void setValueElicitationPrompt(Prompt valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
valueElicitationPrompt
- The prompt that Amazon Lex uses to elicit the slot value from the user.public Prompt getValueElicitationPrompt()
The prompt that Amazon Lex uses to elicit the slot value from the user.
public Slot withValueElicitationPrompt(Prompt valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
valueElicitationPrompt
- The prompt that Amazon Lex uses to elicit the slot value from the user.public void setPriority(Integer priority)
Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
priority
- Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent
has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority
1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
public Integer getPriority()
Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
public Slot withPriority(Integer priority)
Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
priority
- Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent
has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority
1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
public List<String> getSampleUtterances()
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
public void setSampleUtterances(Collection<String> sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
sampleUtterances
- If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value,
you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is
capable of understanding user utterances.public Slot withSampleUtterances(String... sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
NOTE: This method appends the values to the existing list (if any). Use
setSampleUtterances(java.util.Collection)
or withSampleUtterances(java.util.Collection)
if you
want to override the existing values.
sampleUtterances
- If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value,
you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is
capable of understanding user utterances.public Slot withSampleUtterances(Collection<String> sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
sampleUtterances
- If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value,
you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is
capable of understanding user utterances.public void setResponseCard(String responseCard)
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
responseCard
- A set of possible responses for the slot type used by text-based clients. A user chooses an option from
the response card, instead of using text to reply.public String getResponseCard()
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
public Slot withResponseCard(String responseCard)
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
responseCard
- A set of possible responses for the slot type used by text-based clients. A user chooses an option from
the response card, instead of using text to reply.public void setObfuscationSetting(String obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
obfuscationSetting
- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a
slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is
"full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .ObfuscationSetting
public String getObfuscationSetting()
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
ObfuscationSetting
public Slot withObfuscationSetting(String obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
obfuscationSetting
- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a
slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is
"full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .ObfuscationSetting
public void setObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
obfuscationSetting
- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a
slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is
"full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .ObfuscationSetting
public Slot withObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
obfuscationSetting
- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a
slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is
"full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .ObfuscationSetting
public void setDefaultValueSpec(SlotDefaultValueSpec defaultValueSpec)
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
defaultValueSpec
- A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value
for a slot. You can specify default values from context variables, session attributes, and defined values.public SlotDefaultValueSpec getDefaultValueSpec()
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
public Slot withDefaultValueSpec(SlotDefaultValueSpec defaultValueSpec)
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
defaultValueSpec
- A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value
for a slot. You can specify default values from context variables, session attributes, and defined values.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.