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.

ListModelPackagesInput

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

type ListModelPackagesInput struct { CreationTimeAfter *time.Time `type:"timestamp"` CreationTimeBefore *time.Time `type:"timestamp"` MaxResults *int64 `min:"1" type:"integer"` NameContains *string `type:"string"` NextToken *string `type:"string"` SortBy *string `type:"string" enum:"ModelPackageSortBy"` SortOrder *string `type:"string" enum:"SortOrder"` }

CreationTimeAfter

Type: *time.Time

A filter that returns only model packages created after the specified time (timestamp).

CreationTimeBefore

Type: *time.Time

A filter that returns only model packages created before the specified time (timestamp).

MaxResults

Type: *int64

The maximum number of model packages to return in the response.

NameContains

Type: *string

A string in the model package name. This filter returns only model packages whose name contains the specified string.

NextToken

Type: *string

If the response to a previous ListModelPackages request was truncated, the response includes a NextToken. To retrieve the next set of model packages, use the token in the next request.

SortBy

Type: *string

The parameter by which to sort the results. The default is CreationTime.

SortOrder

Type: *string

The sort order for the results. The default is Ascending.

Method

GoString

func (s ListModelPackagesInput) GoString() string

GoString returns the string representation

SetCreationTimeAfter

func (s *ListModelPackagesInput) SetCreationTimeAfter(v time.Time) *ListModelPackagesInput

SetCreationTimeAfter sets the CreationTimeAfter field's value.

SetCreationTimeBefore

func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput

SetCreationTimeBefore sets the CreationTimeBefore field's value.

SetMaxResults

func (s *ListModelPackagesInput) SetMaxResults(v int64) *ListModelPackagesInput

SetMaxResults sets the MaxResults field's value.

SetNameContains

func (s *ListModelPackagesInput) SetNameContains(v string) *ListModelPackagesInput

SetNameContains sets the NameContains field's value.

SetNextToken

func (s *ListModelPackagesInput) SetNextToken(v string) *ListModelPackagesInput

SetNextToken sets the NextToken field's value.

SetSortBy

func (s *ListModelPackagesInput) SetSortBy(v string) *ListModelPackagesInput

SetSortBy sets the SortBy field's value.

SetSortOrder

func (s *ListModelPackagesInput) SetSortOrder(v string) *ListModelPackagesInput

SetSortOrder sets the SortOrder field's value.

String

func (s ListModelPackagesInput) String() string

String returns the string representation

Validate

func (s *ListModelPackagesInput) Validate() error

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

On this page: