libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MechanicalTurk.Types.HIT

Description

 
Synopsis

Documentation

data HIT Source #

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

See: newHIT smart constructor.

Constructors

HIT' 

Fields

  • creationTime :: Maybe POSIX

    The date and time the HIT was created.

  • hITGroupId :: Maybe Text

    The ID of the HIT Group of this HIT.

  • numberOfAssignmentsPending :: Maybe Int

    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.

  • hITTypeId :: Maybe Text

    The ID of the HIT type of this HIT

  • expiration :: Maybe POSIX

    The date and time the HIT expires.

  • autoApprovalDelayInSeconds :: Maybe Integer

    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.

  • requesterAnnotation :: Maybe Text

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

  • hITStatus :: Maybe HITStatus

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

  • maxAssignments :: Maybe Int

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

  • numberOfAssignmentsCompleted :: Maybe Int

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

  • reward :: Maybe Text
     
  • keywords :: Maybe Text

    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.

  • hITLayoutId :: Maybe Text

    The ID of the HIT Layout of this HIT.

  • qualificationRequirements :: Maybe [QualificationRequirement]

    Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

  • title :: Maybe Text

    The title of the HIT.

  • hITId :: Maybe Text

    A unique identifier for the HIT.

  • hITReviewStatus :: Maybe HITReviewStatus

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

  • numberOfAssignmentsAvailable :: Maybe Int

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

  • description :: Maybe Text

    A general description of the HIT.

  • question :: Maybe Text

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

  • assignmentDurationInSeconds :: Maybe Integer

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

Instances

Instances details
Eq HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

(==) :: HIT -> HIT -> Bool #

(/=) :: HIT -> HIT -> Bool #

Read HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Show HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

showsPrec :: Int -> HIT -> ShowS #

show :: HIT -> String #

showList :: [HIT] -> ShowS #

Generic HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Associated Types

type Rep HIT :: Type -> Type #

Methods

from :: HIT -> Rep HIT x #

to :: Rep HIT x -> HIT #

NFData HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

rnf :: HIT -> () #

Hashable HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

hashWithSalt :: Int -> HIT -> Int #

hash :: HIT -> Int #

FromJSON HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

type Rep HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

type Rep HIT = D1 ('MetaData "HIT" "Amazonka.MechanicalTurk.Types.HIT" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "HIT'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "hITGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "numberOfAssignmentsPending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "hITTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "expiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "autoApprovalDelayInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "requesterAnnotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "hITStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HITStatus)) :*: (S1 ('MetaSel ('Just "maxAssignments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "numberOfAssignmentsCompleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))) :*: (((S1 ('MetaSel ('Just "reward") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "keywords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "hITLayoutId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "qualificationRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [QualificationRequirement])) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "hITId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hITReviewStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HITReviewStatus)) :*: S1 ('MetaSel ('Just "numberOfAssignmentsAvailable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "question") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "assignmentDurationInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))))))

newHIT :: HIT Source #

Create a value of HIT with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:creationTime:HIT', hit_creationTime - The date and time the HIT was created.

$sel:hITGroupId:HIT', hit_hITGroupId - The ID of the HIT Group of this HIT.

$sel:numberOfAssignmentsPending:HIT', hit_numberOfAssignmentsPending - 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.

$sel:hITTypeId:HIT', hit_hITTypeId - The ID of the HIT type of this HIT

$sel:expiration:HIT', hit_expiration - The date and time the HIT expires.

$sel:autoApprovalDelayInSeconds:HIT', hit_autoApprovalDelayInSeconds - 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.

$sel:requesterAnnotation:HIT', hit_requesterAnnotation - An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

$sel:hITStatus:HIT', hit_hITStatus - The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

$sel:maxAssignments:HIT', hit_maxAssignments - The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

$sel:numberOfAssignmentsCompleted:HIT', hit_numberOfAssignmentsCompleted - The number of assignments for this HIT that have been approved or rejected.

$sel:reward:HIT', hit_reward - Undocumented member.

$sel:keywords:HIT', hit_keywords - 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.

$sel:hITLayoutId:HIT', hit_hITLayoutId - The ID of the HIT Layout of this HIT.

$sel:qualificationRequirements:HIT', hit_qualificationRequirements - Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

$sel:title:HIT', hit_title - The title of the HIT.

$sel:hITId:HIT', hit_hITId - A unique identifier for the HIT.

$sel:hITReviewStatus:HIT', hit_hITReviewStatus - Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

$sel:numberOfAssignmentsAvailable:HIT', hit_numberOfAssignmentsAvailable - The number of assignments for this HIT that are available for Workers to accept.

$sel:description:HIT', hit_description - A general description of the HIT.

$sel:question:HIT', hit_question - The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

$sel:assignmentDurationInSeconds:HIT', hit_assignmentDurationInSeconds - The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

hit_creationTime :: Lens' HIT (Maybe UTCTime) Source #

The date and time the HIT was created.

hit_hITGroupId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT Group of this HIT.

hit_numberOfAssignmentsPending :: Lens' HIT (Maybe Int) Source #

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.

hit_hITTypeId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT type of this HIT

hit_expiration :: Lens' HIT (Maybe UTCTime) Source #

The date and time the HIT expires.

hit_autoApprovalDelayInSeconds :: Lens' HIT (Maybe Integer) Source #

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.

hit_requesterAnnotation :: Lens' HIT (Maybe Text) Source #

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

hit_hITStatus :: Lens' HIT (Maybe HITStatus) Source #

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

hit_maxAssignments :: Lens' HIT (Maybe Int) Source #

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

hit_numberOfAssignmentsCompleted :: Lens' HIT (Maybe Int) Source #

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

hit_reward :: Lens' HIT (Maybe Text) Source #

Undocumented member.

hit_keywords :: Lens' HIT (Maybe Text) Source #

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.

hit_hITLayoutId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT Layout of this HIT.

hit_qualificationRequirements :: Lens' HIT (Maybe [QualificationRequirement]) Source #

Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

hit_title :: Lens' HIT (Maybe Text) Source #

The title of the HIT.

hit_hITId :: Lens' HIT (Maybe Text) Source #

A unique identifier for the HIT.

hit_hITReviewStatus :: Lens' HIT (Maybe HITReviewStatus) Source #

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

hit_numberOfAssignmentsAvailable :: Lens' HIT (Maybe Int) Source #

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

hit_description :: Lens' HIT (Maybe Text) Source #

A general description of the HIT.

hit_question :: Lens' HIT (Maybe Text) Source #

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

hit_assignmentDurationInSeconds :: Lens' HIT (Maybe Integer) Source #

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