StructuredPojo
, ToCopyableBuilder<Slot.Builder,Slot>
@Generated("software.amazon.awssdk:codegen") public class Slot extends Object implements StructuredPojo, ToCopyableBuilder<Slot.Builder,Slot>
Identifies the version of a specific slot.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Slot.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Slot.Builder |
builder() |
|
String |
description() |
A description of the slot.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The name of the slot.
|
Integer |
priority() |
Directs Lex the order in which to elicit this slot value from the user.
|
String |
responseCard() |
A set of possible responses for the slot type used by text-based clients.
|
List<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.
|
static Class<? extends Slot.Builder> |
serializableBuilderClass() |
|
String |
slotConstraint() |
Specifies whether the slot is required or optional.
|
String |
slotType() |
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
|
String |
slotTypeVersion() |
The version of the slot type.
|
Slot.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
Prompt |
valueElicitationPrompt() |
The prompt that Amazon Lex uses to elicit the slot value from the user.
|
public String name()
The name of the slot.
public String description()
A description of the slot.
public String slotConstraint()
Specifies whether the slot is required or optional.
SlotConstraint
public String slotType()
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
public String slotTypeVersion()
The version of the slot type.
public Prompt valueElicitationPrompt()
The prompt that Amazon Lex uses to elicit the slot value from the user.
public 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.
If multiple slots share the same priority, the order in which Lex elicits values is arbitrary.
public List<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.
public 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.
public Slot.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Slot.Builder,Slot>
public static Slot.Builder builder()
public static Class<? extends Slot.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.