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.

WorkerBlock

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

type WorkerBlock struct { Reason *string `type:"string"` WorkerId *string `min:"1" type:"string"` }

The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.

Reason

Type: *string

A message explaining the reason the Worker was blocked.

WorkerId

Type: *string

The ID of the Worker who accepted the HIT.

Method

GoString

func (s WorkerBlock) GoString() string

GoString returns the string representation

SetReason

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

SetReason sets the Reason field's value.

SetWorkerId

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

SetWorkerId sets the WorkerId field's value.

String

func (s WorkerBlock) String() string

String returns the string representation

On this page: