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.

BonusPayment

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

type BonusPayment struct { AssignmentId *string `min:"1" type:"string"` BonusAmount *string `type:"string"` GrantTime *time.Time `type:"timestamp"` Reason *string `type:"string"` WorkerId *string `min:"1" type:"string"` }

An object representing a Bonus payment paid to a Worker.

AssignmentId

Type: *string

The ID of the assignment associated with this bonus payment.

BonusAmount

Type: *string

A string representing a currency amount.

GrantTime

Type: *time.Time

The date and time of when the bonus was granted.

Reason

Type: *string

The Reason text given when the bonus was granted, if any.

WorkerId

Type: *string

The ID of the Worker to whom the bonus was paid.

Method

GoString

func (s BonusPayment) GoString() string

GoString returns the string representation

SetAssignmentId

func (s *BonusPayment) SetAssignmentId(v string) *BonusPayment

SetAssignmentId sets the AssignmentId field's value.

SetBonusAmount

func (s *BonusPayment) SetBonusAmount(v string) *BonusPayment

SetBonusAmount sets the BonusAmount field's value.

SetGrantTime

func (s *BonusPayment) SetGrantTime(v time.Time) *BonusPayment

SetGrantTime sets the GrantTime field's value.

SetReason

func (s *BonusPayment) SetReason(v string) *BonusPayment

SetReason sets the Reason field's value.

SetWorkerId

func (s *BonusPayment) SetWorkerId(v string) *BonusPayment

SetWorkerId sets the WorkerId field's value.

String

func (s BonusPayment) String() string

String returns the string representation

On this page: