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.

GenericAttachment

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

type GenericAttachment struct { AttachmentLinkUrl *string `locationName:"attachmentLinkUrl" min:"1" type:"string"` Buttons []*Button `locationName:"buttons" type:"list"` ImageUrl *string `locationName:"imageUrl" min:"1" type:"string"` SubTitle *string `locationName:"subTitle" min:"1" type:"string"` Title *string `locationName:"title" min:"1" type:"string"` }

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

AttachmentLinkUrl

Type: *string

The URL of an attachment to the response card.

Buttons

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

ImageUrl

Type: *string

The URL of an image that is displayed to the user.

SubTitle

Type: *string

The subtitle shown below the title.

Title

Type: *string

The title of the option.

Method

GoString

func (s GenericAttachment) GoString() string

GoString returns the string representation

SetAttachmentLinkUrl

func (s *GenericAttachment) SetAttachmentLinkUrl(v string) *GenericAttachment

SetAttachmentLinkUrl sets the AttachmentLinkUrl field's value.

SetButtons

func (s *GenericAttachment) SetButtons(v []*Button) *GenericAttachment

SetButtons sets the Buttons field's value.

SetImageUrl

func (s *GenericAttachment) SetImageUrl(v string) *GenericAttachment

SetImageUrl sets the ImageUrl field's value.

SetSubTitle

func (s *GenericAttachment) SetSubTitle(v string) *GenericAttachment

SetSubTitle sets the SubTitle field's value.

SetTitle

func (s *GenericAttachment) SetTitle(v string) *GenericAttachment

SetTitle sets the Title field's value.

String

func (s GenericAttachment) String() string

String returns the string representation

On this page: