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.

SendBonusInput

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

type SendBonusInput struct { AssignmentId *string `min:"1" type:"string" required:"true"` BonusAmount *string `type:"string" required:"true"` Reason *string `type:"string" required:"true"` UniqueRequestToken *string `min:"1" type:"string"` WorkerId *string `min:"1" type:"string" required:"true"` }

AssignmentId

Type: *string

The ID of the assignment for which this bonus is paid.

AssignmentId is a required field

BonusAmount

Type: *string

The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.

BonusAmount is a required field

Reason

Type: *string

A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.

Reason is a required field

UniqueRequestToken

Type: *string

A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

WorkerId

Type: *string

The ID of the Worker being paid the bonus.

WorkerId is a required field

Method

GoString

func (s SendBonusInput) GoString() string

GoString returns the string representation

SetAssignmentId

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

SetAssignmentId sets the AssignmentId field's value.

SetBonusAmount

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

SetBonusAmount sets the BonusAmount field's value.

SetReason

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

SetReason sets the Reason field's value.

SetUniqueRequestToken

func (s *SendBonusInput) SetUniqueRequestToken(v string) *SendBonusInput

SetUniqueRequestToken sets the UniqueRequestToken field's value.

SetWorkerId

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

SetWorkerId sets the WorkerId field's value.

String

func (s SendBonusInput) String() string

String returns the string representation

Validate

func (s *SendBonusInput) Validate() error

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

On this page: