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.

HIT

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

type HIT struct { AssignmentDurationInSeconds *int64 `type:"long"` AutoApprovalDelayInSeconds *int64 `type:"long"` CreationTime *time.Time `type:"timestamp"` Description *string `type:"string"` Expiration *time.Time `type:"timestamp"` HITGroupId *string `min:"1" type:"string"` HITId *string `min:"1" type:"string"` HITLayoutId *string `min:"1" type:"string"` HITReviewStatus *string `type:"string" enum:"HITReviewStatus"` HITStatus *string `type:"string" enum:"HITStatus"` HITTypeId *string `min:"1" type:"string"` Keywords *string `type:"string"` MaxAssignments *int64 `type:"integer"` NumberOfAssignmentsAvailable *int64 `type:"integer"` NumberOfAssignmentsCompleted *int64 `type:"integer"` NumberOfAssignmentsPending *int64 `type:"integer"` QualificationRequirements []*QualificationRequirement `type:"list"` Question *string `type:"string"` RequesterAnnotation *string `type:"string"` Reward *string `type:"string"` Title *string `type:"string"` }

The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.

AssignmentDurationInSeconds

Type: *int64

The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

AutoApprovalDelayInSeconds

Type: *int64

The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.

CreationTime

Type: *time.Time

The date and time the HIT was created.

Description

Type: *string

A general description of the HIT.

Expiration

Type: *time.Time

The date and time the HIT expires.

HITGroupId

Type: *string

The ID of the HIT Group of this HIT.

HITId

Type: *string

A unique identifier for the HIT.

HITLayoutId

Type: *string

The ID of the HIT Layout of this HIT.

HITReviewStatus

Type: *string

Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

HITStatus

Type: *string

The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

HITTypeId

Type: *string

The ID of the HIT type of this HIT

Keywords

Type: *string

One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.

MaxAssignments

Type: *int64

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

NumberOfAssignmentsAvailable

Type: *int64

The number of assignments for this HIT that are available for Workers to accept.

NumberOfAssignmentsCompleted

Type: *int64

The number of assignments for this HIT that have been approved or rejected.

NumberOfAssignmentsPending

Type: *int64

The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.

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.

Question

Type: *string

The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

RequesterAnnotation

Type: *string

An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

Reward

Type: *string

A string representing a currency amount.

Title

Type: *string

The title of the HIT.

Method

GoString

func (s HIT) GoString() string

GoString returns the string representation

SetAssignmentDurationInSeconds

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

SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value.

SetAutoApprovalDelayInSeconds

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

SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value.

SetCreationTime

func (s *HIT) SetCreationTime(v time.Time) *HIT

SetCreationTime sets the CreationTime field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetExpiration

func (s *HIT) SetExpiration(v time.Time) *HIT

SetExpiration sets the Expiration field's value.

SetHITGroupId

func (s *HIT) SetHITGroupId(v string) *HIT

SetHITGroupId sets the HITGroupId field's value.

SetHITId

func (s *HIT) SetHITId(v string) *HIT

SetHITId sets the HITId field's value.

SetHITLayoutId

func (s *HIT) SetHITLayoutId(v string) *HIT

SetHITLayoutId sets the HITLayoutId field's value.

SetHITReviewStatus

func (s *HIT) SetHITReviewStatus(v string) *HIT

SetHITReviewStatus sets the HITReviewStatus field's value.

SetHITStatus

func (s *HIT) SetHITStatus(v string) *HIT

SetHITStatus sets the HITStatus field's value.

SetHITTypeId

func (s *HIT) SetHITTypeId(v string) *HIT

SetHITTypeId sets the HITTypeId field's value.

SetKeywords

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

SetKeywords sets the Keywords field's value.

SetMaxAssignments

func (s *HIT) SetMaxAssignments(v int64) *HIT

SetMaxAssignments sets the MaxAssignments field's value.

SetNumberOfAssignmentsAvailable

func (s *HIT) SetNumberOfAssignmentsAvailable(v int64) *HIT

SetNumberOfAssignmentsAvailable sets the NumberOfAssignmentsAvailable field's value.

SetNumberOfAssignmentsCompleted

func (s *HIT) SetNumberOfAssignmentsCompleted(v int64) *HIT

SetNumberOfAssignmentsCompleted sets the NumberOfAssignmentsCompleted field's value.

SetNumberOfAssignmentsPending

func (s *HIT) SetNumberOfAssignmentsPending(v int64) *HIT

SetNumberOfAssignmentsPending sets the NumberOfAssignmentsPending field's value.

SetQualificationRequirements

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

SetQualificationRequirements sets the QualificationRequirements field's value.

SetQuestion

func (s *HIT) SetQuestion(v string) *HIT

SetQuestion sets the Question field's value.

SetRequesterAnnotation

func (s *HIT) SetRequesterAnnotation(v string) *HIT

SetRequesterAnnotation sets the RequesterAnnotation field's value.

SetReward

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

SetReward sets the Reward field's value.

SetTitle

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

SetTitle sets the Title field's value.

String

func (s HIT) String() string

String returns the string representation

On this page: