Class ComputeTaskExecutionDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • executionId

        public ComputeTaskExecutionDetails.Builder executionId​(String executionId)
        A unique identifier for the task execution.

        Created as “taskId:taskVersion:runNumber”.

        Parameters:
        executionId - the value to set
        Returns:
        this builder
      • timeTransitionedToWaitingDependencies

        public ComputeTaskExecutionDetails.Builder timeTransitionedToWaitingDependencies​(Date timeTransitionedToWaitingDependencies)
        The date and time when the lifecycleState was changed to Waiting, and it is waiting for its dependencies to run, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeTransitionedToWaitingDependencies - the value to set
        Returns:
        this builder
      • timeTransitionedToWaitingQueued

        public ComputeTaskExecutionDetails.Builder timeTransitionedToWaitingQueued​(Date timeTransitionedToWaitingQueued)
        The date and time when the lifecycleState was changed to Waiting, and it is queued to be executed, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeTransitionedToWaitingQueued - the value to set
        Returns:
        this builder
      • timeStarted

        public ComputeTaskExecutionDetails.Builder timeStarted​(Date timeStarted)
        The date and time when the lifecycleState was changed to In_Progress, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeCompleted

        public ComputeTaskExecutionDetails.Builder timeCompleted​(Date timeCompleted)
        The date and time when the lifecycleState changed to Succeeded, or Failed, in the format defined by RFC 3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCompleted - the value to set
        Returns:
        this builder
      • completionLifecycleState

        public ComputeTaskExecutionDetails.Builder completionLifecycleState​(BatchTask.LifecycleState completionLifecycleState)
        The terminal lifecycle state of the task for this execution.

        Valid values are: SUCCEEDED, NEEDS_ATTENTION, CANCELED, or FAILED.

        Parameters:
        completionLifecycleState - the value to set
        Returns:
        this builder
      • errors

        public ComputeTaskExecutionDetails.Builder errors​(List<String> errors)
        List of error messages related to this task execution.

        Be aware that the maximum number of items returned may change in the future.

        Parameters:
        errors - the value to set
        Returns:
        this builder