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.

GetEntitlementsInput

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

type GetEntitlementsInput struct { Filter map[string][]*string `type:"map"` MaxResults *int64 `type:"integer"` NextToken *string `type:"string"` ProductCode *string `min:"1" type:"string" required:"true"` }

The GetEntitlementsRequest contains parameters for the GetEntitlements operation.

Filter

Type: map[string][]*string

Filter is used to return entitlements for a specific customer or for a specific dimension. Filters are described as keys mapped to a lists of values. Filtered requests are unioned for each value in the value list, and then intersected for each filter key.

MaxResults

Type: *int64

The maximum number of items to retrieve from the GetEntitlements operation. For pagination, use the NextToken field in subsequent calls to GetEntitlements.

NextToken

Type: *string

For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult.

ProductCode

Type: *string

Product code is used to uniquely identify a product in AWS Marketplace. The product code will be provided by AWS Marketplace when the product listing is created.

ProductCode is a required field

Method

GoString

func (s GetEntitlementsInput) GoString() string

GoString returns the string representation

SetFilter

func (s *GetEntitlementsInput) SetFilter(v map[string][]*string) *GetEntitlementsInput

SetFilter sets the Filter field's value.

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

SetProductCode

func (s *GetEntitlementsInput) SetProductCode(v string) *GetEntitlementsInput

SetProductCode sets the ProductCode field's value.

String

func (s GetEntitlementsInput) String() string

String returns the string representation

Validate

func (s *GetEntitlementsInput) Validate() error

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

On this page: