Interface ReviewActionDetail.Builder

    • Method Detail

      • actionId

        ReviewActionDetail.Builder actionId​(String actionId)

        The unique identifier for the action.

        Parameters:
        actionId - The unique identifier for the action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actionName

        ReviewActionDetail.Builder actionName​(String actionName)

        The nature of the action itself. The Review Policy is responsible for examining the HIT and Assignments, emitting results, and deciding which other actions will be necessary.

        Parameters:
        actionName - The nature of the action itself. The Review Policy is responsible for examining the HIT and Assignments, emitting results, and deciding which other actions will be necessary.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetId

        ReviewActionDetail.Builder targetId​(String targetId)

        The specific HITId or AssignmentID targeted by the action.

        Parameters:
        targetId - The specific HITId or AssignmentID targeted by the action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetType

        ReviewActionDetail.Builder targetType​(String targetType)

        The type of object in TargetId.

        Parameters:
        targetType - The type of object in TargetId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        ReviewActionDetail.Builder status​(String status)

        The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED.

        Parameters:
        status - The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ReviewActionStatus, ReviewActionStatus
      • completeTime

        ReviewActionDetail.Builder completeTime​(Instant completeTime)

        The date when the action was completed.

        Parameters:
        completeTime - The date when the action was completed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • result

        ReviewActionDetail.Builder result​(String result)

        A description of the outcome of the review.

        Parameters:
        result - A description of the outcome of the review.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorCode

        ReviewActionDetail.Builder errorCode​(String errorCode)

        Present only when the Results have a FAILED Status.

        Parameters:
        errorCode - Present only when the Results have a FAILED Status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.