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