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.

Locale

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

type Locale struct { Country *string `min:"2" type:"string" required:"true"` Subdivision *string `min:"2" type:"string"` }

The Locale data structure represents a geographical region or location.

Country

Type: *string

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

Country is a required field

Subdivision

Type: *string

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

Method

GoString

func (s Locale) GoString() string

GoString returns the string representation

SetCountry

func (s *Locale) SetCountry(v string) *Locale

SetCountry sets the Country field's value.

SetSubdivision

func (s *Locale) SetSubdivision(v string) *Locale

SetSubdivision sets the Subdivision field's value.

String

func (s Locale) String() string

String returns the string representation

Validate

func (s *Locale) Validate() error

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

On this page: