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.

CreateHITTypeInput

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

type CreateHITTypeInput struct { AssignmentDurationInSeconds *int64 `type:"long" required:"true"` AutoApprovalDelayInSeconds *int64 `type:"long"` Description *string `type:"string" required:"true"` Keywords *string `type:"string"` QualificationRequirements []*QualificationRequirement `type:"list"` Reward *string `type:"string" required:"true"` Title *string `type:"string" required:"true"` }

AssignmentDurationInSeconds

Type: *int64

The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

AssignmentDurationInSeconds is a required field

AutoApprovalDelayInSeconds

Type: *int64

The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

Description

Type: *string

A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

Description is a required field

Keywords

Type: *string

One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

QualificationRequirements

The QualificationRequirement data structure describes a Qualification that a Worker must have before the Worker is allowed to accept a HIT. A requirement may optionally state that a Worker must have the Qualification in order to preview the HIT, or see the HIT in search results.

Reward

Type: *string

The amount of money the Requester will pay a Worker for successfully completing the HIT.

Reward is a required field

Title

Type: *string

The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

Title is a required field

Method

GoString

func (s CreateHITTypeInput) GoString() string

GoString returns the string representation

SetAssignmentDurationInSeconds

func (s *CreateHITTypeInput) SetAssignmentDurationInSeconds(v int64) *CreateHITTypeInput

SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value.

SetAutoApprovalDelayInSeconds

func (s *CreateHITTypeInput) SetAutoApprovalDelayInSeconds(v int64) *CreateHITTypeInput

SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value.

SetDescription

func (s *CreateHITTypeInput) SetDescription(v string) *CreateHITTypeInput

SetDescription sets the Description field's value.

SetKeywords

func (s *CreateHITTypeInput) SetKeywords(v string) *CreateHITTypeInput

SetKeywords sets the Keywords field's value.

SetQualificationRequirements

func (s *CreateHITTypeInput) SetQualificationRequirements(v []*QualificationRequirement) *CreateHITTypeInput

SetQualificationRequirements sets the QualificationRequirements field's value.

SetReward

func (s *CreateHITTypeInput) SetReward(v string) *CreateHITTypeInput

SetReward sets the Reward field's value.

SetTitle

func (s *CreateHITTypeInput) SetTitle(v string) *CreateHITTypeInput

SetTitle sets the Title field's value.

String

func (s CreateHITTypeInput) String() string

String returns the string representation

Validate

func (s *CreateHITTypeInput) Validate() error

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

On this page: