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.

Assignment

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

type Assignment struct { AcceptTime *time.Time `type:"timestamp"` Answer *string `type:"string"` ApprovalTime *time.Time `type:"timestamp"` AssignmentId *string `min:"1" type:"string"` AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` AutoApprovalTime *time.Time `type:"timestamp"` Deadline *time.Time `type:"timestamp"` HITId *string `min:"1" type:"string"` RejectionTime *time.Time `type:"timestamp"` RequesterFeedback *string `type:"string"` SubmitTime *time.Time `type:"timestamp"` WorkerId *string `min:"1" type:"string"` }

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.

AcceptTime

Type: *time.Time

The date and time the Worker accepted the assignment.

Answer

Type: *string

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.

ApprovalTime

Type: *time.Time

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.

AssignmentId

Type: *string

A unique identifier for the assignment.

AssignmentStatus

Type: *string

The status of the assignment.

AutoApprovalTime

Type: *time.Time

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.

Deadline

Type: *time.Time

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.

HITId

Type: *string

The ID of the HIT.

RejectionTime

Type: *time.Time

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

RequesterFeedback

Type: *string

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.

SubmitTime

Type: *time.Time

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.

WorkerId

Type: *string

The ID of the Worker who accepted the HIT.

Method

GoString

func (s Assignment) GoString() string

GoString returns the string representation

SetAcceptTime

func (s *Assignment) SetAcceptTime(v time.Time) *Assignment

SetAcceptTime sets the AcceptTime field's value.

SetAnswer

func (s *Assignment) SetAnswer(v string) *Assignment

SetAnswer sets the Answer field's value.

SetApprovalTime

func (s *Assignment) SetApprovalTime(v time.Time) *Assignment

SetApprovalTime sets the ApprovalTime field's value.

SetAssignmentId

func (s *Assignment) SetAssignmentId(v string) *Assignment

SetAssignmentId sets the AssignmentId field's value.

SetAssignmentStatus

func (s *Assignment) SetAssignmentStatus(v string) *Assignment

SetAssignmentStatus sets the AssignmentStatus field's value.

SetAutoApprovalTime

func (s *Assignment) SetAutoApprovalTime(v time.Time) *Assignment

SetAutoApprovalTime sets the AutoApprovalTime field's value.

SetDeadline

func (s *Assignment) SetDeadline(v time.Time) *Assignment

SetDeadline sets the Deadline field's value.

SetHITId

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

SetHITId sets the HITId field's value.

SetRejectionTime

func (s *Assignment) SetRejectionTime(v time.Time) *Assignment

SetRejectionTime sets the RejectionTime field's value.

SetRequesterFeedback

func (s *Assignment) SetRequesterFeedback(v string) *Assignment

SetRequesterFeedback sets the RequesterFeedback field's value.

SetSubmitTime

func (s *Assignment) SetSubmitTime(v time.Time) *Assignment

SetSubmitTime sets the SubmitTime field's value.

SetWorkerId

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

SetWorkerId sets the WorkerId field's value.

String

func (s Assignment) String() string

String returns the string representation

On this page: