Interface Assignment.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Assignment.Builder,Assignment>, SdkBuilder<Assignment.Builder,Assignment>, SdkPojo
Enclosing class:
Assignment

public static interface Assignment.Builder extends SdkPojo, CopyableBuilder<Assignment.Builder,Assignment>
  • Method Details

    • assignmentId

      Assignment.Builder assignmentId(String assignmentId)

      A unique identifier for the assignment.

      Parameters:
      assignmentId - A unique identifier for the assignment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workerId

      Assignment.Builder workerId(String workerId)

      The ID of the Worker who accepted the HIT.

      Parameters:
      workerId - The ID of the Worker who accepted the HIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hitId

      Assignment.Builder hitId(String hitId)

      The ID of the HIT.

      Parameters:
      hitId - The ID of the HIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assignmentStatus

      Assignment.Builder assignmentStatus(String assignmentStatus)

      The status of the assignment.

      Parameters:
      assignmentStatus - The status of the assignment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • assignmentStatus

      Assignment.Builder assignmentStatus(AssignmentStatus assignmentStatus)

      The status of the assignment.

      Parameters:
      assignmentStatus - The status of the assignment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • autoApprovalTime

      Assignment.Builder autoApprovalTime(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • acceptTime

      Assignment.Builder acceptTime(Instant acceptTime)

      The date and time the Worker accepted the assignment.

      Parameters:
      acceptTime - The date and time the Worker accepted the assignment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • submitTime

      Assignment.Builder submitTime(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • approvalTime

      Assignment.Builder approvalTime(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • rejectionTime

      Assignment.Builder rejectionTime(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • deadline

      Assignment.Builder deadline(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • answer

      Assignment.Builder answer(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • requesterFeedback

      Assignment.Builder requesterFeedback(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.