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.

MessageData

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

type MessageData struct { Code *string `type:"string"` Value *string `type:"string"` }

A message returned by the GetMetricDataAPI, including a code and a description.

Code

Type: *string

The error code or status code associated with the message.

Value

Type: *string

The message text.

Method

GoString

func (s MessageData) GoString() string

GoString returns the string representation

SetCode

func (s *MessageData) SetCode(v string) *MessageData

SetCode sets the Code field's value.

SetValue

func (s *MessageData) SetValue(v string) *MessageData

SetValue sets the Value field's value.

String

func (s MessageData) String() string

String returns the string representation

On this page: