@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) |
String |
getDescription()
A description of the slot.
|
String |
getName()
The name of the slot.
|
Integer |
getPriority()
Directs 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 |
setDescription(String description)
A description of the slot.
|
void |
setName(String name)
The name of the slot.
|
void |
setPriority(Integer priority)
Directs 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; useful for testing and debugging.
|
Slot |
withDescription(String description)
A description of the slot.
|
Slot |
withName(String name)
The name of the slot.
|
Slot |
withPriority(Integer priority)
Directs 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 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 Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
priority
- Directs 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 Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
public Integer getPriority()
Directs 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 Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
public Slot withPriority(Integer priority)
Directs 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 Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
priority
- Directs 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 Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.