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 ImportSnapshotRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
ClientData
getClientData()
The client-specific data.String
getClientToken()
Token to enable idempotency for VM import requests.String
getDescription()
The description string for the import snapshot task.SnapshotDiskContainer
getDiskContainer()
Information about the disk container.Request<ImportSnapshotRequest>
getDryRunRequest()
This method is intended for internal use only.String
getRoleName()
The name of the role to use when not using the default role, 'vmimport'.int
hashCode()
void
setClientData(ClientData clientData)
The client-specific data.void
setClientToken(String clientToken)
Token to enable idempotency for VM import requests.void
setDescription(String description)
The description string for the import snapshot task.void
setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.void
setRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.String
toString()
Returns a string representation of this object; useful for testing and debugging.ImportSnapshotRequest
withClientData(ClientData clientData)
The client-specific data.ImportSnapshotRequest
withClientToken(String clientToken)
Token to enable idempotency for VM import requests.ImportSnapshotRequest
withDescription(String description)
The description string for the import snapshot task.ImportSnapshotRequest
withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.ImportSnapshotRequest
withRoleName(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:
getDryRunRequest
in interfaceDryRunSupportedRequest<ImportSnapshotRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportSnapshotRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-