Class ImportInstanceTaskDetails

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

public class ImportInstanceTaskDetails extends Object implements Serializable, Cloneable

Describes an import instance task.

See Also:
  • Constructor Details

    • ImportInstanceTaskDetails

      public ImportInstanceTaskDetails()
  • Method Details

    • getVolumes

      public List<ImportInstanceVolumeDetailItem> getVolumes()

      One or more volumes.

      Returns:
      One or more volumes.
    • setVolumes

      public void setVolumes(Collection<ImportInstanceVolumeDetailItem> volumes)

      One or more volumes.

      Parameters:
      volumes - One or more volumes.
    • withVolumes

      One or more volumes.

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

      Parameters:
      volumes - One or more volumes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withVolumes

      One or more volumes.

      Parameters:
      volumes - One or more volumes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceId

      public void setInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
    • getInstanceId

      public String getInstanceId()

      The ID of the instance.

      Returns:
      The ID of the instance.
    • withInstanceId

      public ImportInstanceTaskDetails withInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPlatform

      public void setPlatform(String platform)

      The instance operating system.

      Parameters:
      platform - The instance operating system.
      See Also:
    • getPlatform

      public String getPlatform()

      The instance operating system.

      Returns:
      The instance operating system.
      See Also:
    • withPlatform

      public ImportInstanceTaskDetails withPlatform(String platform)

      The instance operating system.

      Parameters:
      platform - The instance operating system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setPlatform

      public void setPlatform(PlatformValues platform)

      The instance operating system.

      Parameters:
      platform - The instance operating system.
      See Also:
    • withPlatform

      public ImportInstanceTaskDetails withPlatform(PlatformValues platform)

      The instance operating system.

      Parameters:
      platform - The instance operating system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setDescription

      public void setDescription(String description)

      A description of the task.

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

      public String getDescription()

      A description of the task.

      Returns:
      A description of the task.
    • withDescription

      public ImportInstanceTaskDetails withDescription(String description)

      A description of the task.

      Parameters:
      description - A description of the 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 ImportInstanceTaskDetails clone()
      Overrides:
      clone in class Object