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.

GetModelInput

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

type GetModelInput struct { Flatten *bool `location:"querystring" locationName:"flatten" type:"boolean"` ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"` RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` }

Request to list information about a model in an existing RestApi resource.

Flatten

Type: *bool

A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.

ModelName

Type: *string

[Required] The name of the model as an identifier.

ModelName is a required field

RestApiId

Type: *string

[Required] The RestApi identifier under which the Model exists.

RestApiId is a required field

Method

GoString

func (s GetModelInput) GoString() string

GoString returns the string representation

SetFlatten

func (s *GetModelInput) SetFlatten(v bool) *GetModelInput

SetFlatten sets the Flatten field's value.

SetModelName

func (s *GetModelInput) SetModelName(v string) *GetModelInput

SetModelName sets the ModelName field's value.

SetRestApiId

func (s *GetModelInput) SetRestApiId(v string) *GetModelInput

SetRestApiId sets the RestApiId field's value.

String

func (s GetModelInput) String() string

String returns the string representation

Validate

func (s *GetModelInput) Validate() error

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

On this page: