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.

DeviceDescription

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

type DeviceDescription struct { Attributes map[string]*string `locationName:"attributes" type:"map"` DeviceId *string `locationName:"deviceId" type:"string"` Enabled *bool `locationName:"enabled" type:"boolean"` RemainingLife *float64 `locationName:"remainingLife" type:"double"` Type *string `locationName:"type" type:"string"` }

Attributes

Type: map[string]*string

An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.

DeviceId

Type: *string

The unique identifier of the device.

Enabled

Type: *bool

A Boolean value indicating whether or not the device is enabled.

RemainingLife

Type: *float64

A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.

Type

Type: *string

The type of the device, such as "button".

Method

GoString

func (s DeviceDescription) GoString() string

GoString returns the string representation

SetAttributes

func (s *DeviceDescription) SetAttributes(v map[string]*string) *DeviceDescription

SetAttributes sets the Attributes field's value.

SetDeviceId

func (s *DeviceDescription) SetDeviceId(v string) *DeviceDescription

SetDeviceId sets the DeviceId field's value.

SetEnabled

func (s *DeviceDescription) SetEnabled(v bool) *DeviceDescription

SetEnabled sets the Enabled field's value.

SetRemainingLife

func (s *DeviceDescription) SetRemainingLife(v float64) *DeviceDescription

SetRemainingLife sets the RemainingLife field's value.

SetType

func (s *DeviceDescription) SetType(v string) *DeviceDescription

SetType sets the Type field's value.

String

func (s DeviceDescription) String() string

String returns the string representation

On this page: