@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplaceRootVolumeTask extends Object implements Serializable, Cloneable
Information about a root volume replacement task.
Constructor and Description |
---|
ReplaceRootVolumeTask() |
Modifier and Type | Method and Description |
---|---|
ReplaceRootVolumeTask |
clone() |
boolean |
equals(Object obj) |
String |
getCompleteTime()
The time the task completed.
|
Boolean |
getDeleteReplacedRootVolume()
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
|
String |
getImageId()
The ID of the AMI used to create the replacement root volume.
|
String |
getInstanceId()
The ID of the instance for which the root volume replacement task was created.
|
String |
getReplaceRootVolumeTaskId()
The ID of the root volume replacement task.
|
String |
getSnapshotId()
The ID of the snapshot used to create the replacement root volume.
|
String |
getStartTime()
The time the task was started.
|
List<Tag> |
getTags()
The tags assigned to the task.
|
String |
getTaskState()
The state of the task.
|
int |
hashCode() |
Boolean |
isDeleteReplacedRootVolume()
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
|
void |
setCompleteTime(String completeTime)
The time the task completed.
|
void |
setDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
|
void |
setImageId(String imageId)
The ID of the AMI used to create the replacement root volume.
|
void |
setInstanceId(String instanceId)
The ID of the instance for which the root volume replacement task was created.
|
void |
setReplaceRootVolumeTaskId(String replaceRootVolumeTaskId)
The ID of the root volume replacement task.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot used to create the replacement root volume.
|
void |
setStartTime(String startTime)
The time the task was started.
|
void |
setTags(Collection<Tag> tags)
The tags assigned to the task.
|
void |
setTaskState(String taskState)
The state of the task.
|
String |
toString()
Returns a string representation of this object.
|
ReplaceRootVolumeTask |
withCompleteTime(String completeTime)
The time the task completed.
|
ReplaceRootVolumeTask |
withDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
|
ReplaceRootVolumeTask |
withImageId(String imageId)
The ID of the AMI used to create the replacement root volume.
|
ReplaceRootVolumeTask |
withInstanceId(String instanceId)
The ID of the instance for which the root volume replacement task was created.
|
ReplaceRootVolumeTask |
withReplaceRootVolumeTaskId(String replaceRootVolumeTaskId)
The ID of the root volume replacement task.
|
ReplaceRootVolumeTask |
withSnapshotId(String snapshotId)
The ID of the snapshot used to create the replacement root volume.
|
ReplaceRootVolumeTask |
withStartTime(String startTime)
The time the task was started.
|
ReplaceRootVolumeTask |
withTags(Collection<Tag> tags)
The tags assigned to the task.
|
ReplaceRootVolumeTask |
withTags(Tag... tags)
The tags assigned to the task.
|
ReplaceRootVolumeTask |
withTaskState(ReplaceRootVolumeTaskState taskState)
The state of the task.
|
ReplaceRootVolumeTask |
withTaskState(String taskState)
The state of the task.
|
public void setReplaceRootVolumeTaskId(String replaceRootVolumeTaskId)
The ID of the root volume replacement task.
replaceRootVolumeTaskId
- The ID of the root volume replacement task.public String getReplaceRootVolumeTaskId()
The ID of the root volume replacement task.
public ReplaceRootVolumeTask withReplaceRootVolumeTaskId(String replaceRootVolumeTaskId)
The ID of the root volume replacement task.
replaceRootVolumeTaskId
- The ID of the root volume replacement task.public void setInstanceId(String instanceId)
The ID of the instance for which the root volume replacement task was created.
instanceId
- The ID of the instance for which the root volume replacement task was created.public String getInstanceId()
The ID of the instance for which the root volume replacement task was created.
public ReplaceRootVolumeTask withInstanceId(String instanceId)
The ID of the instance for which the root volume replacement task was created.
instanceId
- The ID of the instance for which the root volume replacement task was created.public void setTaskState(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.
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.
ReplaceRootVolumeTaskState
public String getTaskState()
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.
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.
ReplaceRootVolumeTaskState
public ReplaceRootVolumeTask withTaskState(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.
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.
ReplaceRootVolumeTaskState
public ReplaceRootVolumeTask withTaskState(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.
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.
ReplaceRootVolumeTaskState
public void setStartTime(String startTime)
The time the task was started.
startTime
- The time the task was started.public String getStartTime()
The time the task was started.
public ReplaceRootVolumeTask withStartTime(String startTime)
The time the task was started.
startTime
- The time the task was started.public void setCompleteTime(String completeTime)
The time the task completed.
completeTime
- The time the task completed.public String getCompleteTime()
The time the task completed.
public ReplaceRootVolumeTask withCompleteTime(String completeTime)
The time the task completed.
completeTime
- The time the task completed.public List<Tag> getTags()
The tags assigned to the task.
public void setTags(Collection<Tag> tags)
The tags assigned to the task.
tags
- The tags assigned to the task.public ReplaceRootVolumeTask withTags(Tag... tags)
The tags assigned to the task.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags assigned to the task.public ReplaceRootVolumeTask withTags(Collection<Tag> tags)
The tags assigned to the task.
tags
- The tags assigned to the task.public void setImageId(String imageId)
The ID of the AMI used to create the replacement root volume.
imageId
- The ID of the AMI used to create the replacement root volume.public String getImageId()
The ID of the AMI used to create the replacement root volume.
public ReplaceRootVolumeTask withImageId(String imageId)
The ID of the AMI used to create the replacement root volume.
imageId
- The ID of the AMI used to create the replacement root volume.public void setSnapshotId(String snapshotId)
The ID of the snapshot used to create the replacement root volume.
snapshotId
- The ID of the snapshot used to create the replacement root volume.public String getSnapshotId()
The ID of the snapshot used to create the replacement root volume.
public ReplaceRootVolumeTask withSnapshotId(String snapshotId)
The ID of the snapshot used to create the replacement root volume.
snapshotId
- The ID of the snapshot used to create the replacement root volume.public void setDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
deleteReplacedRootVolume
- Indicates whether the original root volume is to be deleted after the root volume replacement task
completes.public Boolean getDeleteReplacedRootVolume()
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
public ReplaceRootVolumeTask withDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
deleteReplacedRootVolume
- Indicates whether the original root volume is to be deleted after the root volume replacement task
completes.public Boolean isDeleteReplacedRootVolume()
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
public String toString()
toString
in class Object
Object.toString()
public ReplaceRootVolumeTask clone()