Class SetTaskStatusRequest

    • Method Detail

      • taskId

        public final String taskId()

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

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

        public final TaskStatus taskStatus()

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

        If the service returns an enum value that is not available in the current SDK version, taskStatus will return TaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from taskStatusAsString().

        Returns:
        If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.
        See Also:
        TaskStatus
      • taskStatusAsString

        public final String taskStatusAsString()

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

        If the service returns an enum value that is not available in the current SDK version, taskStatus will return TaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from taskStatusAsString().

        Returns:
        If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. Preconditions use false.
        See Also:
        TaskStatus
      • errorId

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

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

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

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

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

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