@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Assignment extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Assignment() |
Modifier and Type | Method and Description |
---|---|
Assignment |
clone() |
boolean |
equals(Object obj) |
Date |
getAcceptTime()
The date and time the Worker accepted the assignment.
|
String |
getAnswer()
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an
answer.
|
Date |
getApprovalTime()
If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time
the Requester approved the results.
|
String |
getAssignmentId()
A unique identifier for the assignment.
|
String |
getAssignmentStatus()
The status of the assignment.
|
Date |
getAutoApprovalTime()
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.
|
Date |
getDeadline()
The date and time of the deadline for the assignment.
|
String |
getHITId()
The ID of the HIT.
|
Date |
getRejectionTime()
If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and
time the Requester rejected the results.
|
String |
getRequesterFeedback()
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.
|
Date |
getSubmitTime()
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted.
|
String |
getWorkerId()
The ID of the Worker who accepted the HIT.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAcceptTime(Date acceptTime)
The date and time the Worker accepted the assignment.
|
void |
setAnswer(String answer)
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an
answer.
|
void |
setApprovalTime(Date 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.
|
void |
setAssignmentId(String assignmentId)
A unique identifier for the assignment.
|
void |
setAssignmentStatus(AssignmentStatus assignmentStatus)
The status of the assignment.
|
void |
setAssignmentStatus(String assignmentStatus)
The status of the assignment.
|
void |
setAutoApprovalTime(Date 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.
|
void |
setDeadline(Date deadline)
The date and time of the deadline for the assignment.
|
void |
setHITId(String hITId)
The ID of the HIT.
|
void |
setRejectionTime(Date 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.
|
void |
setRequesterFeedback(String 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.
|
void |
setSubmitTime(Date submitTime)
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted.
|
void |
setWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Assignment |
withAcceptTime(Date acceptTime)
The date and time the Worker accepted the assignment.
|
Assignment |
withAnswer(String answer)
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an
answer.
|
Assignment |
withApprovalTime(Date 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.
|
Assignment |
withAssignmentId(String assignmentId)
A unique identifier for the assignment.
|
Assignment |
withAssignmentStatus(AssignmentStatus assignmentStatus)
The status of the assignment.
|
Assignment |
withAssignmentStatus(String assignmentStatus)
The status of the assignment.
|
Assignment |
withAutoApprovalTime(Date 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.
|
Assignment |
withDeadline(Date deadline)
The date and time of the deadline for the assignment.
|
Assignment |
withHITId(String hITId)
The ID of the HIT.
|
Assignment |
withRejectionTime(Date 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.
|
Assignment |
withRequesterFeedback(String 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.
|
Assignment |
withSubmitTime(Date submitTime)
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted.
|
Assignment |
withWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
|
public void setAssignmentId(String assignmentId)
A unique identifier for the assignment.
assignmentId
- A unique identifier for the assignment.public String getAssignmentId()
A unique identifier for the assignment.
public Assignment withAssignmentId(String assignmentId)
A unique identifier for the assignment.
assignmentId
- A unique identifier for the assignment.public void setWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
workerId
- The ID of the Worker who accepted the HIT.public String getWorkerId()
The ID of the Worker who accepted the HIT.
public Assignment withWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
workerId
- The ID of the Worker who accepted the HIT.public void setHITId(String hITId)
The ID of the HIT.
hITId
- The ID of the HIT.public String getHITId()
The ID of the HIT.
public Assignment withHITId(String hITId)
The ID of the HIT.
hITId
- The ID of the HIT.public void setAssignmentStatus(String assignmentStatus)
The status of the assignment.
assignmentStatus
- The status of the assignment.AssignmentStatus
public String getAssignmentStatus()
The status of the assignment.
AssignmentStatus
public Assignment withAssignmentStatus(String assignmentStatus)
The status of the assignment.
assignmentStatus
- The status of the assignment.AssignmentStatus
public void setAssignmentStatus(AssignmentStatus assignmentStatus)
The status of the assignment.
assignmentStatus
- The status of the assignment.AssignmentStatus
public Assignment withAssignmentStatus(AssignmentStatus assignmentStatus)
The status of the assignment.
assignmentStatus
- The status of the assignment.AssignmentStatus
public void setAutoApprovalTime(Date 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.
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.public Date getAutoApprovalTime()
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.
public Assignment withAutoApprovalTime(Date 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.
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.public void setAcceptTime(Date acceptTime)
The date and time the Worker accepted the assignment.
acceptTime
- The date and time the Worker accepted the assignment.public Date getAcceptTime()
The date and time the Worker accepted the assignment.
public Assignment withAcceptTime(Date acceptTime)
The date and time the Worker accepted the assignment.
acceptTime
- The date and time the Worker accepted the assignment.public void setSubmitTime(Date 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.
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.public Date getSubmitTime()
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.
public Assignment withSubmitTime(Date 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.
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.public void setApprovalTime(Date 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.
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.public Date getApprovalTime()
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.
public Assignment withApprovalTime(Date 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.
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.public void setRejectionTime(Date 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.
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.public Date getRejectionTime()
If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.
public Assignment withRejectionTime(Date 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.
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.public void setDeadline(Date 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.
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.public Date getDeadline()
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.
public Assignment withDeadline(Date 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.
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.public void setAnswer(String 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.
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.public String getAnswer()
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.
public Assignment withAnswer(String 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.
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.public void setRequesterFeedback(String 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.
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.public String getRequesterFeedback()
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.
public Assignment withRequesterFeedback(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public Assignment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.