Interface BundleTask.Builder

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

public static interface BundleTask.Builder extends SdkPojo, CopyableBuilder<BundleTask.Builder,BundleTask>
  • Method Details

    • bundleId

      BundleTask.Builder bundleId(String bundleId)

      The ID of the bundle task.

      Parameters:
      bundleId - The ID of the bundle task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bundleTaskError

      BundleTask.Builder bundleTaskError(BundleTaskError bundleTaskError)

      If the task fails, a description of the error.

      Parameters:
      bundleTaskError - If the task fails, a description of the error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bundleTaskError

      default BundleTask.Builder bundleTaskError(Consumer<BundleTaskError.Builder> bundleTaskError)

      If the task fails, a description of the error.

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

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

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

      BundleTask.Builder instanceId(String instanceId)

      The ID of the instance associated with this bundle task.

      Parameters:
      instanceId - The ID of the instance associated with this bundle task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • progress

      BundleTask.Builder progress(String progress)

      The level of task completion, as a percent (for example, 20%).

      Parameters:
      progress - The level of task completion, as a percent (for example, 20%).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      BundleTask.Builder startTime(Instant startTime)

      The time this task started.

      Parameters:
      startTime - The time this task started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      BundleTask.Builder state(String state)

      The state of the task.

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

      The state of the task.

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

      BundleTask.Builder storage(Storage storage)

      The Amazon S3 storage locations.

      Parameters:
      storage - The Amazon S3 storage locations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storage

      default BundleTask.Builder storage(Consumer<Storage.Builder> storage)

      The Amazon S3 storage locations.

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

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

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

      BundleTask.Builder updateTime(Instant updateTime)

      The time of the most recent update for the task.

      Parameters:
      updateTime - The time of the most recent update for the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.