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.

Content

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

type Content struct { Charset *string `type:"string"` Data *string `type:"string" required:"true"` }

Represents textual data, plus an optional character set specification.

By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

Charset

Type: *string

The character set of the content.

Data

Type: *string

The textual data of the content.

Data is a required field

Method

GoString

func (s Content) GoString() string

GoString returns the string representation

SetCharset

func (s *Content) SetCharset(v string) *Content

SetCharset sets the Charset field's value.

SetData

func (s *Content) SetData(v string) *Content

SetData sets the Data field's value.

String

func (s Content) String() string

String returns the string representation

Validate

func (s *Content) Validate() error

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

On this page: