Class ImportSnapshotRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ImportSnapshotRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<ImportSnapshotRequest>,Serializable,Cloneable
public class ImportSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportSnapshotRequest>
Contains the parameters for ImportSnapshot.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ImportSnapshotRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportSnapshotRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)ClientDatagetClientData()The client-specific data.StringgetClientToken()Token to enable idempotency for VM import requests.StringgetDescription()The description string for the import snapshot task.SnapshotDiskContainergetDiskContainer()Information about the disk container.Request<ImportSnapshotRequest>getDryRunRequest()This method is intended for internal use only.StringgetRoleName()The name of the role to use when not using the default role, 'vmimport'.inthashCode()voidsetClientData(ClientData clientData)The client-specific data.voidsetClientToken(String clientToken)Token to enable idempotency for VM import requests.voidsetDescription(String description)The description string for the import snapshot task.voidsetDiskContainer(SnapshotDiskContainer diskContainer)Information about the disk container.voidsetRoleName(String roleName)The name of the role to use when not using the default role, 'vmimport'.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportSnapshotRequestwithClientData(ClientData clientData)The client-specific data.ImportSnapshotRequestwithClientToken(String clientToken)Token to enable idempotency for VM import requests.ImportSnapshotRequestwithDescription(String description)The description string for the import snapshot task.ImportSnapshotRequestwithDiskContainer(SnapshotDiskContainer diskContainer)Information about the disk container.ImportSnapshotRequestwithRoleName(String roleName)The name of the role to use when not using the default role, 'vmimport'.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
The description string for the import snapshot task.
- Parameters:
description- The description string for the import snapshot task.
-
getDescription
public String getDescription()
The description string for the import snapshot task.
- Returns:
- The description string for the import snapshot task.
-
withDescription
public ImportSnapshotRequest withDescription(String description)
The description string for the import snapshot task.
- Parameters:
description- The description string for the import snapshot task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDiskContainer
public void setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
- Parameters:
diskContainer- Information about the disk container.
-
getDiskContainer
public SnapshotDiskContainer getDiskContainer()
Information about the disk container.
- Returns:
- Information about the disk container.
-
withDiskContainer
public ImportSnapshotRequest withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
- Parameters:
diskContainer- Information about the disk container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientData
public void setClientData(ClientData clientData)
The client-specific data.
- Parameters:
clientData- The client-specific data.
-
getClientData
public ClientData getClientData()
The client-specific data.
- Returns:
- The client-specific data.
-
withClientData
public ImportSnapshotRequest withClientData(ClientData clientData)
The client-specific data.
- Parameters:
clientData- The client-specific data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
public void setClientToken(String clientToken)
Token to enable idempotency for VM import requests.
- Parameters:
clientToken- Token to enable idempotency for VM import requests.
-
getClientToken
public String getClientToken()
Token to enable idempotency for VM import requests.
- Returns:
- Token to enable idempotency for VM import requests.
-
withClientToken
public ImportSnapshotRequest withClientToken(String clientToken)
Token to enable idempotency for VM import requests.
- Parameters:
clientToken- Token to enable idempotency for VM import requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleName
public void setRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
- Parameters:
roleName- The name of the role to use when not using the default role, 'vmimport'.
-
getRoleName
public String getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
- Returns:
- The name of the role to use when not using the default role, 'vmimport'.
-
withRoleName
public ImportSnapshotRequest withRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
- Parameters:
roleName- The name of the role to use when not using the default role, 'vmimport'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<ImportSnapshotRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<ImportSnapshotRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportSnapshotRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-