AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Slot

import "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice"

type Slot struct { Description *string `locationName:"description" type:"string"` Name *string `locationName:"name" min:"1" type:"string" required:"true"` Priority *int64 `locationName:"priority" type:"integer"` ResponseCard *string `locationName:"responseCard" min:"1" type:"string"` SampleUtterances []*string `locationName:"sampleUtterances" type:"list"` SlotConstraint *string `locationName:"slotConstraint" type:"string" required:"true" enum:"SlotConstraint"` SlotType *string `locationName:"slotType" min:"1" type:"string"` SlotTypeVersion *string `locationName:"slotTypeVersion" min:"1" type:"string"` ValueElicitationPrompt *Prompt `locationName:"valueElicitationPrompt" type:"structure"` }

Identifies the version of a specific slot.

Description

Type: *string

A description of the slot.

Name

Type: *string

The name of the slot.

Name is a required field

Priority

Type: *int64

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.

ResponseCard

Type: *string

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.

SampleUtterances

Type: []*string

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.

SlotConstraint

Type: *string

Specifies whether the slot is required or optional.

SlotConstraint is a required field

SlotType

Type: *string

The type of the slot, either a custom slot type that you defined or one of the built-in slot types.

SlotTypeVersion

Type: *string

The version of the slot type.

ValueElicitationPrompt

Obtains information from the user. To define a prompt, provide one or more messages and specify the number of attempts to get information from the user. If you provide more than one message, Amazon Lex chooses one of the messages to use to prompt the user. For more information, see how-it-works.

Method

GoString

func (s Slot) GoString() string

GoString returns the string representation

SetDescription

func (s *Slot) SetDescription(v string) *Slot

SetDescription sets the Description field's value.

SetName

func (s *Slot) SetName(v string) *Slot

SetName sets the Name field's value.

SetPriority

func (s *Slot) SetPriority(v int64) *Slot

SetPriority sets the Priority field's value.

SetResponseCard

func (s *Slot) SetResponseCard(v string) *Slot

SetResponseCard sets the ResponseCard field's value.

SetSampleUtterances

func (s *Slot) SetSampleUtterances(v []*string) *Slot

SetSampleUtterances sets the SampleUtterances field's value.

SetSlotConstraint

func (s *Slot) SetSlotConstraint(v string) *Slot

SetSlotConstraint sets the SlotConstraint field's value.

SetSlotType

func (s *Slot) SetSlotType(v string) *Slot

SetSlotType sets the SlotType field's value.

SetSlotTypeVersion

func (s *Slot) SetSlotTypeVersion(v string) *Slot

SetSlotTypeVersion sets the SlotTypeVersion field's value.

SetValueElicitationPrompt

func (s *Slot) SetValueElicitationPrompt(v *Prompt) *Slot

SetValueElicitationPrompt sets the ValueElicitationPrompt field's value.

String

func (s Slot) String() string

String returns the string representation

Validate

func (s *Slot) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: