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.

PublishInput

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

type PublishInput struct { Payload []byte `locationName:"payload" type:"blob"` Qos *int64 `location:"querystring" locationName:"qos" type:"integer"` Topic *string `location:"uri" locationName:"topic" type:"string" required:"true"` }

The input for the Publish operation.

Payload

Type: []byte

The state information, in JSON format.

Qos

Type: *int64

The Quality of Service (QoS) level.

Topic

Type: *string

The name of the MQTT topic.

Topic is a required field

Method

GoString

func (s PublishInput) GoString() string

GoString returns the string representation

SetPayload

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

SetPayload sets the Payload field's value.

SetQos

func (s *PublishInput) SetQos(v int64) *PublishInput

SetQos sets the Qos field's value.

SetTopic

func (s *PublishInput) SetTopic(v string) *PublishInput

SetTopic sets the Topic field's value.

String

func (s PublishInput) String() string

String returns the string representation

Validate

func (s *PublishInput) Validate() error

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

On this page: