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.

SuggestInput

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

type SuggestInput struct { Query *string `location:"querystring" locationName:"q" type:"string" required:"true"` Size *int64 `location:"querystring" locationName:"size" type:"long"` Suggester *string `location:"querystring" locationName:"suggester" type:"string" required:"true"` }

Container for the parameters to the Suggest request.

Query

Type: *string

Specifies the string for which you want to get suggestions.

Query is a required field

Size

Type: *int64

Specifies the maximum number of suggestions to return.

Suggester

Type: *string

Specifies the name of the suggester to use to find suggested matches.

Suggester is a required field

Method

GoString

func (s SuggestInput) GoString() string

GoString returns the string representation

SetQuery

func (s *SuggestInput) SetQuery(v string) *SuggestInput

SetQuery sets the Query field's value.

SetSize

func (s *SuggestInput) SetSize(v int64) *SuggestInput

SetSize sets the Size field's value.

SetSuggester

func (s *SuggestInput) SetSuggester(v string) *SuggestInput

SetSuggester sets the Suggester field's value.

String

func (s SuggestInput) String() string

String returns the string representation

Validate

func (s *SuggestInput) Validate() error

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

On this page: