Interface SetTaskStatusRequest.Builder

    • Method Detail

      • taskId

        SetTaskStatusRequest.Builder taskId​(String taskId)

        The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.

        Parameters:
        taskId - The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskStatus

        SetTaskStatusRequest.Builder taskStatus​(String taskStatus)

        If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.

        Parameters:
        taskStatus - If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TaskStatus, TaskStatus
      • taskStatus

        SetTaskStatusRequest.Builder taskStatus​(TaskStatus taskStatus)

        If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.

        Parameters:
        taskStatus - If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TaskStatus, TaskStatus
      • errorId

        SetTaskStatusRequest.Builder errorId​(String errorId)

        If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.

        Parameters:
        errorId - If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorMessage

        SetTaskStatusRequest.Builder errorMessage​(String errorMessage)

        If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.

        Parameters:
        errorMessage - If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorStackTrace

        SetTaskStatusRequest.Builder errorStackTrace​(String errorStackTrace)

        If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.

        Parameters:
        errorStackTrace - If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.