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:
  • Constructor Details

    • ImportSnapshotRequest

      public ImportSnapshotRequest()
  • Method Details

    • 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 interface DryRunSupportedRequest<ImportSnapshotRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: