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.

Statement

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

type Statement struct { Messages []*Message `locationName:"messages" min:"1" type:"list" required:"true"` ResponseCard *string `locationName:"responseCard" min:"1" type:"string"` }

A collection of messages that convey information to the user. At runtime, Amazon Lex selects the message to convey.

Messages

The message object that provides the message text and its type.

ResponseCard

Type: *string

At runtime, if the client is using the PostText (https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html) API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

Method

GoString

func (s Statement) GoString() string

GoString returns the string representation

SetMessages

func (s *Statement) SetMessages(v []*Message) *Statement

SetMessages sets the Messages field's value.

SetResponseCard

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

SetResponseCard sets the ResponseCard field's value.

String

func (s Statement) String() string

String returns the string representation

Validate

func (s *Statement) Validate() error

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

On this page: