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.

ThingConnectivity

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

type ThingConnectivity struct { Connected *bool `locationName:"connected" type:"boolean"` Timestamp *int64 `locationName:"timestamp" type:"long"` }

The connectivity status of the thing.

Connected

Type: *bool

True if the thing is connected to the AWS IoT service, false if it is not connected.

Timestamp

Type: *int64

The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.

Method

GoString

func (s ThingConnectivity) GoString() string

GoString returns the string representation

SetConnected

func (s *ThingConnectivity) SetConnected(v bool) *ThingConnectivity

SetConnected sets the Connected field's value.

SetTimestamp

func (s *ThingConnectivity) SetTimestamp(v int64) *ThingConnectivity

SetTimestamp sets the Timestamp field's value.

String

func (s ThingConnectivity) String() string

String returns the string representation

On this page: