@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.
|
Request<CreateReplaceRootVolumeTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
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 |
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. If you want to restore the volume to the initial launch state, omit this parameter.
snapshotId
- The ID of the snapshot from which to restore the replacement root volume. If you want to restore the
volume to the initial launch state, omit this parameter.public String getSnapshotId()
The ID of the snapshot from which to restore the replacement root volume. If you want to restore the volume to the initial launch state, omit this parameter.
public CreateReplaceRootVolumeTaskRequest withSnapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume. If you want to restore the volume to the initial launch state, omit this parameter.
snapshotId
- The ID of the snapshot from which to restore the replacement root volume. If you want to restore the
volume to the initial launch state, 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 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()