public static interface BundleTask.Builder extends CopyableBuilder<BundleTask.Builder,BundleTask>
| Modifier and Type | Method and Description |
|---|---|
BundleTask.Builder |
bundleId(String bundleId)
The ID of the bundle task.
|
BundleTask.Builder |
bundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
|
default BundleTask.Builder |
bundleTaskError(Consumer<BundleTaskError.Builder> bundleTaskError)
If the task fails, a description of the error.
|
BundleTask.Builder |
instanceId(String instanceId)
The ID of the instance associated with this bundle task.
|
BundleTask.Builder |
progress(String progress)
The level of task completion, as a percent (for example, 20%).
|
BundleTask.Builder |
startTime(Instant startTime)
The time this task started.
|
BundleTask.Builder |
state(BundleTaskState state)
The state of the task.
|
BundleTask.Builder |
state(String state)
The state of the task.
|
default BundleTask.Builder |
storage(Consumer<Storage.Builder> storage)
The Amazon S3 storage locations.
|
BundleTask.Builder |
storage(Storage storage)
The Amazon S3 storage locations.
|
BundleTask.Builder |
updateTime(Instant updateTime)
The time of the most recent update for the task.
|
copyapply, buildBundleTask.Builder bundleId(String bundleId)
The ID of the bundle task.
bundleId - The ID of the bundle task.BundleTask.Builder bundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
bundleTaskError - If the task fails, a description of the error.default BundleTask.Builder bundleTaskError(Consumer<BundleTaskError.Builder> bundleTaskError)
If the task fails, a description of the error.
This is a convenience that creates an instance of theBundleTaskError.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).bundleTaskError - a consumer that will call methods on BundleTaskError.BuilderbundleTaskError(BundleTaskError)BundleTask.Builder instanceId(String instanceId)
The ID of the instance associated with this bundle task.
instanceId - The ID of the instance associated with this bundle task.BundleTask.Builder progress(String progress)
The level of task completion, as a percent (for example, 20%).
progress - The level of task completion, as a percent (for example, 20%).BundleTask.Builder startTime(Instant startTime)
The time this task started.
startTime - The time this task started.BundleTask.Builder state(String state)
The state of the task.
state - The state of the task.BundleTaskState,
BundleTaskStateBundleTask.Builder state(BundleTaskState state)
The state of the task.
state - The state of the task.BundleTaskState,
BundleTaskStateBundleTask.Builder storage(Storage storage)
The Amazon S3 storage locations.
storage - The Amazon S3 storage locations.default BundleTask.Builder storage(Consumer<Storage.Builder> storage)
The Amazon S3 storage locations.
This is a convenience that creates an instance of theStorage.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).storage - a consumer that will call methods on Storage.Builderstorage(Storage)BundleTask.Builder updateTime(Instant updateTime)
The time of the most recent update for the task.
updateTime - The time of the most recent update for the task.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.