Interface ReplaceRootVolumeTask.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReplaceRootVolumeTask.Builder,ReplaceRootVolumeTask>,SdkBuilder<ReplaceRootVolumeTask.Builder,ReplaceRootVolumeTask>,SdkPojo
- Enclosing class:
- ReplaceRootVolumeTask
public static interface ReplaceRootVolumeTask.Builder extends SdkPojo, CopyableBuilder<ReplaceRootVolumeTask.Builder,ReplaceRootVolumeTask>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplaceRootVolumeTask.BuildercompleteTime(String completeTime)The time the task completed.ReplaceRootVolumeTask.BuilderdeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)Indicates whether the original root volume is to be deleted after the root volume replacement task completes.ReplaceRootVolumeTask.BuilderimageId(String imageId)The ID of the AMI used to create the replacement root volume.ReplaceRootVolumeTask.BuilderinstanceId(String instanceId)The ID of the instance for which the root volume replacement task was created.ReplaceRootVolumeTask.BuilderreplaceRootVolumeTaskId(String replaceRootVolumeTaskId)The ID of the root volume replacement task.ReplaceRootVolumeTask.BuildersnapshotId(String snapshotId)The ID of the snapshot used to create the replacement root volume.ReplaceRootVolumeTask.BuilderstartTime(String startTime)The time the task was started.ReplaceRootVolumeTask.Buildertags(Collection<Tag> tags)The tags assigned to the task.ReplaceRootVolumeTask.Buildertags(Consumer<Tag.Builder>... tags)The tags assigned to the task.ReplaceRootVolumeTask.Buildertags(Tag... tags)The tags assigned to the task.ReplaceRootVolumeTask.BuildertaskState(String taskState)The state of the task.ReplaceRootVolumeTask.BuildertaskState(ReplaceRootVolumeTaskState taskState)The state of 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
-
replaceRootVolumeTaskId
ReplaceRootVolumeTask.Builder replaceRootVolumeTaskId(String replaceRootVolumeTaskId)
The ID of the root volume replacement task.
- Parameters:
replaceRootVolumeTaskId- The ID of the root volume replacement task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
ReplaceRootVolumeTask.Builder instanceId(String instanceId)
The ID of the instance for which the root volume replacement task was created.
- Parameters:
instanceId- The ID of the instance for which the root volume replacement task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskState
ReplaceRootVolumeTask.Builder taskState(String taskState)
The state of the task. The task can be in one of the following states:
-
pending- the replacement volume is being created. -
in-progress- the original volume is being detached and the replacement volume is being attached. -
succeeded- the replacement volume has been successfully attached to the instance and the instance is available. -
failing- the replacement task is in the process of failing. -
failed- the replacement task has failed but the original root volume is still attached. -
failing-detached- the replacement task is in the process of failing. The instance might have no root volume attached. -
failed-detached- the replacement task has failed and the instance has no root volume attached.
- Parameters:
taskState- The state of the task. The task can be in one of the following states:-
pending- the replacement volume is being created. -
in-progress- the original volume is being detached and the replacement volume is being attached. -
succeeded- the replacement volume has been successfully attached to the instance and the instance is available. -
failing- the replacement task is in the process of failing. -
failed- the replacement task has failed but the original root volume is still attached. -
failing-detached- the replacement task is in the process of failing. The instance might have no root volume attached. -
failed-detached- the replacement task has failed and the instance has no root volume attached.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplaceRootVolumeTaskState,ReplaceRootVolumeTaskState
-
-
taskState
ReplaceRootVolumeTask.Builder taskState(ReplaceRootVolumeTaskState taskState)
The state of the task. The task can be in one of the following states:
-
pending- the replacement volume is being created. -
in-progress- the original volume is being detached and the replacement volume is being attached. -
succeeded- the replacement volume has been successfully attached to the instance and the instance is available. -
failing- the replacement task is in the process of failing. -
failed- the replacement task has failed but the original root volume is still attached. -
failing-detached- the replacement task is in the process of failing. The instance might have no root volume attached. -
failed-detached- the replacement task has failed and the instance has no root volume attached.
- Parameters:
taskState- The state of the task. The task can be in one of the following states:-
pending- the replacement volume is being created. -
in-progress- the original volume is being detached and the replacement volume is being attached. -
succeeded- the replacement volume has been successfully attached to the instance and the instance is available. -
failing- the replacement task is in the process of failing. -
failed- the replacement task has failed but the original root volume is still attached. -
failing-detached- the replacement task is in the process of failing. The instance might have no root volume attached. -
failed-detached- the replacement task has failed and the instance has no root volume attached.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplaceRootVolumeTaskState,ReplaceRootVolumeTaskState
-
-
startTime
ReplaceRootVolumeTask.Builder startTime(String startTime)
The time the task was started.
- Parameters:
startTime- The time the task was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completeTime
ReplaceRootVolumeTask.Builder completeTime(String completeTime)
The time the task completed.
- Parameters:
completeTime- The time the task completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ReplaceRootVolumeTask.Builder tags(Collection<Tag> tags)
The tags assigned to the task.
- Parameters:
tags- The tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ReplaceRootVolumeTask.Builder tags(Tag... tags)
The tags assigned to the task.
- Parameters:
tags- The tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ReplaceRootVolumeTask.Builder tags(Consumer<Tag.Builder>... tags)
The tags assigned to the task.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
imageId
ReplaceRootVolumeTask.Builder imageId(String imageId)
The ID of the AMI used to create the replacement root volume.
- Parameters:
imageId- The ID of the AMI used to create the replacement root volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
ReplaceRootVolumeTask.Builder snapshotId(String snapshotId)
The ID of the snapshot used to create the replacement root volume.
- Parameters:
snapshotId- The ID of the snapshot used to create the replacement root volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteReplacedRootVolume
ReplaceRootVolumeTask.Builder deleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
- Parameters:
deleteReplacedRootVolume- Indicates whether the original root volume is to be deleted after the root volume replacement task completes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-