public class ImportSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ImportSnapshotRequest>
Contains the parameters for ImportSnapshot.
Modifier and Type | Field and Description |
---|---|
private ClientData |
clientData
The client-specific data.
|
private java.lang.String |
clientToken
Token to enable idempotency for VM import requests.
|
private java.lang.String |
description
The description string for the import snapshot task.
|
private SnapshotDiskContainer |
diskContainer
Information about the disk container.
|
private java.lang.String |
roleName
The name of the role to use when not using the default role, 'vmimport'.
|
NOOP
Constructor and Description |
---|
ImportSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
ImportSnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
ClientData |
getClientData()
The client-specific data.
|
java.lang.String |
getClientToken()
Token to enable idempotency for VM import requests.
|
java.lang.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.
|
java.lang.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(java.lang.String clientToken)
Token to enable idempotency for VM import requests.
|
void |
setDescription(java.lang.String description)
The description string for the import snapshot task.
|
void |
setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
|
void |
setRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportSnapshotRequest |
withClientData(ClientData clientData)
The client-specific data.
|
ImportSnapshotRequest |
withClientToken(java.lang.String clientToken)
Token to enable idempotency for VM import requests.
|
ImportSnapshotRequest |
withDescription(java.lang.String description)
The description string for the import snapshot task.
|
ImportSnapshotRequest |
withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
|
ImportSnapshotRequest |
withRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
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
private java.lang.String description
The description string for the import snapshot task.
private SnapshotDiskContainer diskContainer
Information about the disk container.
private ClientData clientData
The client-specific data.
private java.lang.String clientToken
Token to enable idempotency for VM import requests.
private java.lang.String roleName
The name of the role to use when not using the default role, 'vmimport'.
public void setDescription(java.lang.String description)
The description string for the import snapshot task.
description
- The description string for the import snapshot task.public java.lang.String getDescription()
The description string for the import snapshot task.
public ImportSnapshotRequest withDescription(java.lang.String description)
The description string for the import snapshot task.
description
- The description string for the import snapshot task.public void setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
diskContainer
- Information about the disk container.public SnapshotDiskContainer getDiskContainer()
Information about the disk container.
public ImportSnapshotRequest withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
diskContainer
- Information about the disk container.public void setClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public ClientData getClientData()
The client-specific data.
public ImportSnapshotRequest withClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public void setClientToken(java.lang.String clientToken)
Token to enable idempotency for VM import requests.
clientToken
- Token to enable idempotency for VM import requests.public java.lang.String getClientToken()
Token to enable idempotency for VM import requests.
public ImportSnapshotRequest withClientToken(java.lang.String clientToken)
Token to enable idempotency for VM import requests.
clientToken
- Token to enable idempotency for VM import requests.public void setRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
roleName
- The name of the role to use when not using the default role,
'vmimport'.public java.lang.String getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
public ImportSnapshotRequest withRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
roleName
- The name of the role to use when not using the default role,
'vmimport'.public Request<ImportSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportSnapshotRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImportSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()