@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateReplaceRootVolumeTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateReplaceRootVolumeTaskRequest>
NOOP
Constructor and Description |
---|
CreateReplaceRootVolumeTaskRequest() |
Modifier and Type | Method and Description |
---|---|
CreateReplaceRootVolumeTaskRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
Boolean |
getDeleteReplacedRootVolume()
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes.
|
Request<CreateReplaceRootVolumeTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI to use to restore the root volume.
|
String |
getInstanceId()
The ID of the instance for which to replace the root volume.
|
String |
getSnapshotId()
The ID of the snapshot from which to restore the replacement root volume.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the root volume replacement task.
|
int |
hashCode() |
Boolean |
isDeleteReplacedRootVolume()
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
void |
setDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes.
|
void |
setImageId(String imageId)
The ID of the AMI to use to restore the root volume.
|
void |
setInstanceId(String instanceId)
The ID of the instance for which to replace the root volume.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
|
String |
toString()
Returns a string representation of this object.
|
CreateReplaceRootVolumeTaskRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
CreateReplaceRootVolumeTaskRequest |
withDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes.
|
CreateReplaceRootVolumeTaskRequest |
withImageId(String imageId)
The ID of the AMI to use to restore the root volume.
|
CreateReplaceRootVolumeTaskRequest |
withInstanceId(String instanceId)
The ID of the instance for which to replace the root volume.
|
CreateReplaceRootVolumeTaskRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume.
|
CreateReplaceRootVolumeTaskRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
|
CreateReplaceRootVolumeTaskRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the root volume replacement task.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setInstanceId(String instanceId)
The ID of the instance for which to replace the root volume.
instanceId
- The ID of the instance for which to replace the root volume.public String getInstanceId()
The ID of the instance for which to replace the root volume.
public CreateReplaceRootVolumeTaskRequest withInstanceId(String instanceId)
The ID of the instance for which to replace the root volume.
instanceId
- The ID of the instance for which to replace the root volume.public void setSnapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
snapshotId
- The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a
snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
public String getSnapshotId()
The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
public CreateReplaceRootVolumeTaskRequest withSnapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
snapshotId
- The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a
snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, a randomly generated token is used for the request to ensure idempotency. For more
information, see Ensuring idempotency.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see Ensuring idempotency.
public CreateReplaceRootVolumeTaskRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, a randomly generated token is used for the request to ensure idempotency. For more
information, see Ensuring idempotency.public List<TagSpecification> getTagSpecifications()
The tags to apply to the root volume replacement task.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
tagSpecifications
- The tags to apply to the root volume replacement task.public CreateReplaceRootVolumeTaskRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the root volume replacement task.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the root volume replacement task.public CreateReplaceRootVolumeTaskRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
tagSpecifications
- The tags to apply to the root volume replacement task.public void setImageId(String imageId)
The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
imageId
- The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code,
billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
public String getImageId()
The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
public CreateReplaceRootVolumeTaskRequest withImageId(String imageId)
The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
imageId
- The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code,
billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
public void setDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the original root
volume after the replacement task completes, you must manually delete it when you no longer need it.
deleteReplacedRootVolume
- Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the
original root volume after the replacement task completes, you must manually delete it when you no longer
need it.public Boolean getDeleteReplacedRootVolume()
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the original root
volume after the replacement task completes, you must manually delete it when you no longer need it.
true
. If you choose to keep the
original root volume after the replacement task completes, you must manually delete it when you no longer
need it.public CreateReplaceRootVolumeTaskRequest withDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the original root
volume after the replacement task completes, you must manually delete it when you no longer need it.
deleteReplacedRootVolume
- Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the
original root volume after the replacement task completes, you must manually delete it when you no longer
need it.public Boolean isDeleteReplacedRootVolume()
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the original root
volume after the replacement task completes, you must manually delete it when you no longer need it.
true
. If you choose to keep the
original root volume after the replacement task completes, you must manually delete it when you no longer
need it.public Request<CreateReplaceRootVolumeTaskRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateReplaceRootVolumeTaskRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateReplaceRootVolumeTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()