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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BundleTask.Builder
bundleId(String bundleId)
The ID of the bundle task.default BundleTask.Builder
bundleTaskError(Consumer<BundleTaskError.Builder> bundleTaskError)
If the task fails, a description of the error.BundleTask.Builder
bundleTaskError(BundleTaskError 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(String state)
The state of the task.BundleTask.Builder
state(BundleTaskState 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.-
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 Detail
-
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 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:
bundleTaskError(BundleTaskError)
-
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:
BundleTaskState
,BundleTaskState
-
state
BundleTask.Builder state(BundleTaskState 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:
BundleTaskState
,BundleTaskState
-
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 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:
storage(Storage)
-
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.
-
-