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.

PurchaseOfferingInput

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

type PurchaseOfferingInput struct { OfferingId *string `locationName:"offeringId" min:"32" type:"string"` OfferingPromotionId *string `locationName:"offeringPromotionId" min:"4" type:"string"` Quantity *int64 `locationName:"quantity" type:"integer"` }

Represents a request for a purchase offering.

OfferingId

Type: *string

The ID of the offering.

OfferingPromotionId

Type: *string

The ID of the offering promotion to be applied to the purchase.

Quantity

Type: *int64

The number of device slots you wish to purchase in an offering request.

Method

GoString

func (s PurchaseOfferingInput) GoString() string

GoString returns the string representation

SetOfferingId

func (s *PurchaseOfferingInput) SetOfferingId(v string) *PurchaseOfferingInput

SetOfferingId sets the OfferingId field's value.

SetOfferingPromotionId

func (s *PurchaseOfferingInput) SetOfferingPromotionId(v string) *PurchaseOfferingInput

SetOfferingPromotionId sets the OfferingPromotionId field's value.

SetQuantity

func (s *PurchaseOfferingInput) SetQuantity(v int64) *PurchaseOfferingInput

SetQuantity sets the Quantity field's value.

String

func (s PurchaseOfferingInput) String() string

String returns the string representation

Validate

func (s *PurchaseOfferingInput) Validate() error

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

On this page: