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.

Button

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

type Button struct { Text *string `locationName:"text" min:"1" type:"string" required:"true"` Value *string `locationName:"value" min:"1" type:"string" required:"true"` }

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

Text

Type: *string

Text that is visible to the user on the button.

Text is a required field

Value

Type: *string

The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

Value is a required field

Method

GoString

func (s Button) GoString() string

GoString returns the string representation

SetText

func (s *Button) SetText(v string) *Button

SetText sets the Text field's value.

SetValue

func (s *Button) SetValue(v string) *Button

SetValue sets the Value field's value.

String

func (s Button) String() string

String returns the string representation

On this page: