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 Summary
Modifier and TypeMethodDescriptionThe ID of the bundle task.default BundleTask.Builder
bundleTaskError
(Consumer<BundleTaskError.Builder> bundleTaskError) If the task fails, a description of the error.bundleTaskError
(BundleTaskError bundleTaskError) If the task fails, a description of the error.instanceId
(String instanceId) The ID of the instance associated with this bundle task.The level of task completion, as a percent (for example, 20%).The time this task started.The state of the task.state
(BundleTaskState state) The state of the task.default BundleTask.Builder
storage
(Consumer<Storage.Builder> storage) The Amazon S3 storage locations.The Amazon S3 storage locations.updateTime
(Instant updateTime) The time of the most recent update for the task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
If the task fails, a description of the error.
This is a convenience method that creates an instance of theBundleTaskError.Builder
avoiding the need to create one manually viaBundleTaskError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobundleTaskError(BundleTaskError)
.- Parameters:
bundleTaskError
- a consumer that will call methods onBundleTaskError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
The Amazon S3 storage locations.
This is a convenience method that creates an instance of theStorage.Builder
avoiding the need to create one manually viaStorage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorage(Storage)
.- Parameters:
storage
- a consumer that will call methods onStorage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-