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.

GetModelsOutput

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

type GetModelsOutput struct { Items []*Model `locationName:"item" type:"list"` Position *string `locationName:"position" type:"string"` }

Represents a collection of Model resources.

Method, MethodResponse, Models and Mappings (https://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)

Items

Represents the data structure of a method's request or response payload.

A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.

A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

Method, MethodResponse, Models and Mappings (https://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)

Position

Type: *string

Method

GoString

func (s GetModelsOutput) GoString() string

GoString returns the string representation

SetItems

func (s *GetModelsOutput) SetItems(v []*Model) *GetModelsOutput

SetItems sets the Items field's value.

SetPosition

func (s *GetModelsOutput) SetPosition(v string) *GetModelsOutput

SetPosition sets the Position field's value.

String

func (s GetModelsOutput) String() string

String returns the string representation

On this page: