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.

Message

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

type Message struct { MessageId *string `locationName:"messageId" min:"1" type:"string" required:"true"` Payload []byte `locationName:"payload" type:"blob" required:"true"` }

Information about a message.

MessageId

Type: *string

The ID you wish to assign to the message. Each "messageId" must be unique within each batch sent.

MessageId is a required field

Payload

Type: []byte

The payload of the message. This may be a JSON string or a Base64-encoded string representing binary data (in which case you must decode it by means of a pipeline activity).

Payload is automatically base64 encoded/decoded by the SDK.

Payload is a required field

Method

GoString

func (s Message) GoString() string

GoString returns the string representation

SetMessageId

func (s *Message) SetMessageId(v string) *Message

SetMessageId sets the MessageId field's value.

SetPayload

func (s *Message) SetPayload(v []byte) *Message

SetPayload sets the Payload field's value.

String

func (s Message) String() string

String returns the string representation

Validate

func (s *Message) Validate() error

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

On this page: