Interface BundleTask.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BundleTask.Builder,,BundleTask> SdkBuilder<BundleTask.Builder,,BundleTask> SdkPojo
- Enclosing class:
BundleTask
@Mutable
@NotThreadSafe
public static interface BundleTask.Builder
extends SdkPojo, CopyableBuilder<BundleTask.Builder,BundleTask>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the bundle task.default BundleTask.BuilderbundleTaskError(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.Builderstorage(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
-
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.
-
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:
-
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.
-
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.
-
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.Builderavoiding the need to create one manually viaStorage.builder().When the
Consumercompletes,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:
-
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.
-
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.Builderavoiding the need to create one manually viaBundleTaskError.builder().When the
Consumercompletes,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:
-