Class ImportImageTask

java.lang.Object
com.amazonaws.services.ec2.model.ImportImageTask
All Implemented Interfaces:
Serializable, Cloneable

public class ImportImageTask extends Object implements Serializable, Cloneable

Describes an import image task.

See Also:
  • Constructor Details

    • ImportImageTask

      public ImportImageTask()
  • Method Details

    • setImportTaskId

      public void setImportTaskId(String importTaskId)

      The ID of the import image task.

      Parameters:
      importTaskId - The ID of the import image task.
    • getImportTaskId

      public String getImportTaskId()

      The ID of the import image task.

      Returns:
      The ID of the import image task.
    • withImportTaskId

      public ImportImageTask withImportTaskId(String importTaskId)

      The ID of the import image task.

      Parameters:
      importTaskId - The ID of the import image task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArchitecture

      public void setArchitecture(String architecture)

      The architecture of the virtual machine.

      Valid values: i386 | x86_64

      Parameters:
      architecture - The architecture of the virtual machine.

      Valid values: i386 | x86_64

    • getArchitecture

      public String getArchitecture()

      The architecture of the virtual machine.

      Valid values: i386 | x86_64

      Returns:
      The architecture of the virtual machine.

      Valid values: i386 | x86_64

    • withArchitecture

      public ImportImageTask withArchitecture(String architecture)

      The architecture of the virtual machine.

      Valid values: i386 | x86_64

      Parameters:
      architecture - The architecture of the virtual machine.

      Valid values: i386 | x86_64

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLicenseType

      public void setLicenseType(String licenseType)

      The license type of the virtual machine.

      Parameters:
      licenseType - The license type of the virtual machine.
    • getLicenseType

      public String getLicenseType()

      The license type of the virtual machine.

      Returns:
      The license type of the virtual machine.
    • withLicenseType

      public ImportImageTask withLicenseType(String licenseType)

      The license type of the virtual machine.

      Parameters:
      licenseType - The license type of the virtual machine.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPlatform

      public void setPlatform(String platform)

      The description string for the import image task.

      Parameters:
      platform - The description string for the import image task.
    • getPlatform

      public String getPlatform()

      The description string for the import image task.

      Returns:
      The description string for the import image task.
    • withPlatform

      public ImportImageTask withPlatform(String platform)

      The description string for the import image task.

      Parameters:
      platform - The description string for the import image task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHypervisor

      public void setHypervisor(String hypervisor)

      The target hypervisor for the import task.

      Valid values: xen

      Parameters:
      hypervisor - The target hypervisor for the import task.

      Valid values: xen

    • getHypervisor

      public String getHypervisor()

      The target hypervisor for the import task.

      Valid values: xen

      Returns:
      The target hypervisor for the import task.

      Valid values: xen

    • withHypervisor

      public ImportImageTask withHypervisor(String hypervisor)

      The target hypervisor for the import task.

      Valid values: xen

      Parameters:
      hypervisor - The target hypervisor for the import task.

      Valid values: xen

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      A description of the import task.

      Parameters:
      description - A description of the import task.
    • getDescription

      public String getDescription()

      A description of the import task.

      Returns:
      A description of the import task.
    • withDescription

      public ImportImageTask withDescription(String description)

      A description of the import task.

      Parameters:
      description - A description of the import task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getSnapshotDetails

      public List<SnapshotDetail> getSnapshotDetails()

      Information about the snapshots.

      Returns:
      Information about the snapshots.
    • setSnapshotDetails

      public void setSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)

      Information about the snapshots.

      Parameters:
      snapshotDetails - Information about the snapshots.
    • withSnapshotDetails

      public ImportImageTask withSnapshotDetails(SnapshotDetail... snapshotDetails)

      Information about the snapshots.

      NOTE: This method appends the values to the existing list (if any). Use setSnapshotDetails(java.util.Collection) or withSnapshotDetails(java.util.Collection) if you want to override the existing values.

      Parameters:
      snapshotDetails - Information about the snapshots.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSnapshotDetails

      public ImportImageTask withSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)

      Information about the snapshots.

      Parameters:
      snapshotDetails - Information about the snapshots.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setImageId

      public void setImageId(String imageId)

      The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

      Parameters:
      imageId - The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
    • getImageId

      public String getImageId()

      The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

      Returns:
      The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
    • withImageId

      public ImportImageTask withImageId(String imageId)

      The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

      Parameters:
      imageId - The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProgress

      public void setProgress(String progress)

      The percentage of progress of the import image task.

      Parameters:
      progress - The percentage of progress of the import image task.
    • getProgress

      public String getProgress()

      The percentage of progress of the import image task.

      Returns:
      The percentage of progress of the import image task.
    • withProgress

      public ImportImageTask withProgress(String progress)

      The percentage of progress of the import image task.

      Parameters:
      progress - The percentage of progress of the import image task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStatusMessage

      public void setStatusMessage(String statusMessage)

      A descriptive status message for the import image task.

      Parameters:
      statusMessage - A descriptive status message for the import image task.
    • getStatusMessage

      public String getStatusMessage()

      A descriptive status message for the import image task.

      Returns:
      A descriptive status message for the import image task.
    • withStatusMessage

      public ImportImageTask withStatusMessage(String statusMessage)

      A descriptive status message for the import image task.

      Parameters:
      statusMessage - A descriptive status message for the import image task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStatus

      public void setStatus(String status)

      A brief status for the import image task.

      Parameters:
      status - A brief status for the import image task.
    • getStatus

      public String getStatus()

      A brief status for the import image task.

      Returns:
      A brief status for the import image task.
    • withStatus

      public ImportImageTask withStatus(String status)

      A brief status for the import image task.

      Parameters:
      status - A brief status for the import image task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 ImportImageTask clone()
      Overrides:
      clone in class Object