@Generated(value="software.amazon.awssdk:codegen") public final class Assignment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Assignment.Builder,Assignment>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
Assignment.Builder |
Modifier and Type | Method and Description |
---|---|
Instant |
acceptTime()
The date and time the Worker accepted the assignment.
|
String |
answer()
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an
answer.
|
Instant |
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.
|
String |
assignmentId()
A unique identifier for the assignment.
|
AssignmentStatus |
assignmentStatus()
The status of the assignment.
|
String |
assignmentStatusAsString()
The status of the assignment.
|
Instant |
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.
|
static Assignment.Builder |
builder() |
Instant |
deadline()
The date and time of the deadline for the assignment.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hitId()
The ID of the HIT.
|
Instant |
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.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Assignment.Builder> |
serializableBuilderClass() |
Instant |
submitTime()
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted.
|
Assignment.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
workerId()
The ID of the Worker who accepted the HIT.
|
copy
public String assignmentId()
A unique identifier for the assignment.
public String workerId()
The ID of the Worker who accepted the HIT.
public String hitId()
The ID of the HIT.
public AssignmentStatus assignmentStatus()
The status of the assignment.
If the service returns an enum value that is not available in the current SDK version, assignmentStatus
will return AssignmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from assignmentStatusAsString()
.
AssignmentStatus
public String assignmentStatusAsString()
The status of the assignment.
If the service returns an enum value that is not available in the current SDK version, assignmentStatus
will return AssignmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from assignmentStatusAsString()
.
AssignmentStatus
public Instant 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 Instant acceptTime()
The date and time the Worker accepted the assignment.
public Instant 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 Instant 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 Instant 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 Instant 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 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.
public 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.
public Assignment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Assignment.Builder,Assignment>
public static Assignment.Builder builder()
public static Class<? extends Assignment.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.