public class ImportSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ImportSnapshotRequest>
ImportSnapshot operation
.
Imports a disk into an EBS snapshot.
Constructor and Description |
---|
ImportSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
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'.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description string for the import snapshot task.public ImportSnapshotRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description string for the import snapshot task.public SnapshotDiskContainer getDiskContainer()
public void setDiskContainer(SnapshotDiskContainer diskContainer)
diskContainer
- Information about the disk container.public ImportSnapshotRequest withDiskContainer(SnapshotDiskContainer diskContainer)
Returns a reference to this object so that method calls can be chained together.
diskContainer
- Information about the disk container.public ClientData getClientData()
public void setClientData(ClientData clientData)
clientData
- The client-specific data.public ImportSnapshotRequest withClientData(ClientData clientData)
Returns a reference to this object so that method calls can be chained together.
clientData
- The client-specific data.public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- Token to enable idempotency for VM import requests.public ImportSnapshotRequest withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Token to enable idempotency for VM import requests.public java.lang.String getRoleName()
public void setRoleName(java.lang.String roleName)
roleName
- The name of the role to use when not using the default role,
'vmimport'.public ImportSnapshotRequest withRoleName(java.lang.String roleName)
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.