Class Assignment

    • Method Detail

      • assignmentId

        public final String assignmentId()

        A unique identifier for the assignment.

        Returns:
        A unique identifier for the assignment.
      • workerId

        public final String workerId()

        The ID of the Worker who accepted the HIT.

        Returns:
        The ID of the Worker who accepted the HIT.
      • hitId

        public final String hitId()

        The ID of the HIT.

        Returns:
        The ID of the HIT.
      • autoApprovalTime

        public final 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.

        Returns:
        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.
      • acceptTime

        public final Instant acceptTime()

        The date and time the Worker accepted the assignment.

        Returns:
        The date and time the Worker accepted the assignment.
      • submitTime

        public final 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.

        Returns:
        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.
      • approvalTime

        public final 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.

        Returns:
        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

        public final 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.

        Returns:
        If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.
      • deadline

        public final 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.

        Returns:
        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.
      • answer

        public final 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.

        Returns:
        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.
      • requesterFeedback

        public final 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.

        Returns:
        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)