Interface TaskRun.Builder

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

@Mutable @NotThreadSafe public static interface TaskRun.Builder extends SdkPojo, CopyableBuilder<TaskRun.Builder,TaskRun>
  • Method Details

    • transformId

      TaskRun.Builder transformId(String transformId)

      The unique identifier for the transform.

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

      TaskRun.Builder taskRunId(String taskRunId)

      The unique identifier for this task run.

      Parameters:
      taskRunId - The unique identifier for this task run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      TaskRun.Builder status(String status)

      The current status of the requested task run.

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

      The current status of the requested task run.

      Parameters:
      status - The current status of the requested task run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupName

      TaskRun.Builder logGroupName(String logGroupName)

      The names of the log group for secure logging, associated with this task run.

      Parameters:
      logGroupName - The names of the log group for secure logging, associated with this task run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      TaskRun.Builder properties(TaskRunProperties properties)

      Specifies configuration properties associated with this task run.

      Parameters:
      properties - Specifies configuration properties associated with this task run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      default TaskRun.Builder properties(Consumer<TaskRunProperties.Builder> properties)

      Specifies configuration properties associated with this task run.

      This is a convenience method that creates an instance of the TaskRunProperties.Builder avoiding the need to create one manually via TaskRunProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to properties(TaskRunProperties).

      Parameters:
      properties - a consumer that will call methods on TaskRunProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorString

      TaskRun.Builder errorString(String errorString)

      The list of error strings associated with this task run.

      Parameters:
      errorString - The list of error strings associated with this task run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedOn

      TaskRun.Builder startedOn(Instant startedOn)

      The date and time that this task run started.

      Parameters:
      startedOn - The date and time that this task run started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedOn

      TaskRun.Builder lastModifiedOn(Instant lastModifiedOn)

      The last point in time that the requested task run was updated.

      Parameters:
      lastModifiedOn - The last point in time that the requested task run was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedOn

      TaskRun.Builder completedOn(Instant completedOn)

      The last point in time that the requested task run was completed.

      Parameters:
      completedOn - The last point in time that the requested task run was completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionTime

      TaskRun.Builder executionTime(Integer executionTime)

      The amount of time (in seconds) that the task run consumed resources.

      Parameters:
      executionTime - The amount of time (in seconds) that the task run consumed resources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.