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.Assignment

Description

 
Synopsis

Documentation

data Assignment Source #

The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.

See: newAssignment smart constructor.

Constructors

Assignment' 

Fields

  • acceptTime :: Maybe POSIX

    The date and time the Worker accepted the assignment.

  • answer :: Maybe Text

    The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

  • assignmentStatus :: Maybe AssignmentStatus

    The status of the assignment.

  • requesterFeedback :: Maybe Text

    The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

  • deadline :: Maybe POSIX

    The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

  • approvalTime :: Maybe POSIX

    If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

  • rejectionTime :: Maybe POSIX

    If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

  • autoApprovalTime :: Maybe POSIX

    If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

  • hITId :: Maybe Text

    The ID of the HIT.

  • workerId :: Maybe Text

    The ID of the Worker who accepted the HIT.

  • assignmentId :: Maybe Text

    A unique identifier for the assignment.

  • submitTime :: Maybe POSIX

    If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.

Instances

Instances details
Eq Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

Read Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

Show Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

Generic Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

Associated Types

type Rep Assignment :: Type -> Type #

NFData Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

Methods

rnf :: Assignment -> () #

Hashable Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

FromJSON Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

type Rep Assignment Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Assignment

type Rep Assignment = D1 ('MetaData "Assignment" "Amazonka.MechanicalTurk.Types.Assignment" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "Assignment'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "acceptTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "answer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "assignmentStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssignmentStatus)))) :*: (S1 ('MetaSel ('Just "requesterFeedback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deadline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "approvalTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "rejectionTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "autoApprovalTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "hITId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "workerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "assignmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "submitTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))))

newAssignment :: Assignment Source #

Create a value of Assignment 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:acceptTime:Assignment', assignment_acceptTime - The date and time the Worker accepted the assignment.

$sel:answer:Assignment', assignment_answer - The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

$sel:assignmentStatus:Assignment', assignment_assignmentStatus - The status of the assignment.

$sel:requesterFeedback:Assignment', assignment_requesterFeedback - The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

$sel:deadline:Assignment', assignment_deadline - The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

$sel:approvalTime:Assignment', assignment_approvalTime - If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

$sel:rejectionTime:Assignment', assignment_rejectionTime - If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

$sel:autoApprovalTime:Assignment', assignment_autoApprovalTime - If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

$sel:hITId:Assignment', assignment_hITId - The ID of the HIT.

$sel:workerId:Assignment', assignment_workerId - The ID of the Worker who accepted the HIT.

$sel:assignmentId:Assignment', assignment_assignmentId - A unique identifier for the assignment.

$sel:submitTime:Assignment', assignment_submitTime - If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.

assignment_acceptTime :: Lens' Assignment (Maybe UTCTime) Source #

The date and time the Worker accepted the assignment.

assignment_answer :: Lens' Assignment (Maybe Text) Source #

The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

assignment_requesterFeedback :: Lens' Assignment (Maybe Text) Source #

The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

assignment_deadline :: Lens' Assignment (Maybe UTCTime) Source #

The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

assignment_approvalTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

assignment_rejectionTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

assignment_autoApprovalTime :: Lens' Assignment (Maybe UTCTime) Source #

If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

assignment_workerId :: Lens' Assignment (Maybe Text) Source #

The ID of the Worker who accepted the HIT.

assignment_assignmentId :: Lens' Assignment (Maybe Text) Source #

A unique identifier for the assignment.

assignment_submitTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.