@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SlotValueElicitationSetting extends Object implements Serializable, Cloneable, StructuredPojo
Settings that you can use for eliciting a slot value.
Constructor and Description |
---|
SlotValueElicitationSetting() |
Modifier and Type | Method and Description |
---|---|
SlotValueElicitationSetting |
clone() |
boolean |
equals(Object obj) |
SlotDefaultValueSpecification |
getDefaultValueSpecification()
A list of default values for a slot.
|
PromptSpecification |
getPromptSpecification()
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
List<SampleUtterance> |
getSampleUtterances()
If you know a specific pattern that 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.
|
WaitAndContinueSpecification |
getWaitAndContinueSpecification() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification)
A list of default values for a slot.
|
void |
setPromptSpecification(PromptSpecification promptSpecification)
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
void |
setSampleUtterances(Collection<SampleUtterance> sampleUtterances)
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
void |
setSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
|
void |
setWaitAndContinueSpecification(WaitAndContinueSpecification waitAndContinueSpecification) |
String |
toString()
Returns a string representation of this object.
|
SlotValueElicitationSetting |
withDefaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification)
A list of default values for a slot.
|
SlotValueElicitationSetting |
withPromptSpecification(PromptSpecification promptSpecification)
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
SlotValueElicitationSetting |
withSampleUtterances(Collection<SampleUtterance> sampleUtterances)
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
SlotValueElicitationSetting |
withSampleUtterances(SampleUtterance... sampleUtterances)
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can
provide those utterances to improve accuracy.
|
SlotValueElicitationSetting |
withSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
|
SlotValueElicitationSetting |
withSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
|
SlotValueElicitationSetting |
withWaitAndContinueSpecification(WaitAndContinueSpecification waitAndContinueSpecification) |
public void setDefaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification)
A list of default values for a 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.
defaultValueSpecification
- A list of default values for a 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 SlotDefaultValueSpecification getDefaultValueSpecification()
A list of default values for a 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 SlotValueElicitationSetting withDefaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification)
A list of default values for a 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.
defaultValueSpecification
- A list of default values for a 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 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 SlotValueElicitationSetting withSlotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public SlotValueElicitationSetting withSlotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
slotConstraint
- Specifies whether the slot is required or optional.SlotConstraint
public void setPromptSpecification(PromptSpecification promptSpecification)
The prompt that Amazon Lex uses to elicit the slot value from the user.
promptSpecification
- The prompt that Amazon Lex uses to elicit the slot value from the user.public PromptSpecification getPromptSpecification()
The prompt that Amazon Lex uses to elicit the slot value from the user.
public SlotValueElicitationSetting withPromptSpecification(PromptSpecification promptSpecification)
The prompt that Amazon Lex uses to elicit the slot value from the user.
promptSpecification
- The prompt that Amazon Lex uses to elicit the slot value from the user.public List<SampleUtterance> getSampleUtterances()
If you know a specific pattern that 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<SampleUtterance> sampleUtterances)
If you know a specific pattern that 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 that 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 SlotValueElicitationSetting withSampleUtterances(SampleUtterance... sampleUtterances)
If you know a specific pattern that 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 that 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 SlotValueElicitationSetting withSampleUtterances(Collection<SampleUtterance> sampleUtterances)
If you know a specific pattern that 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 that 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 setWaitAndContinueSpecification(WaitAndContinueSpecification waitAndContinueSpecification)
waitAndContinueSpecification
- public WaitAndContinueSpecification getWaitAndContinueSpecification()
public SlotValueElicitationSetting withWaitAndContinueSpecification(WaitAndContinueSpecification waitAndContinueSpecification)
waitAndContinueSpecification
- public String toString()
toString
in class Object
Object.toString()
public SlotValueElicitationSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.