Class ImportInstanceRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportInstanceRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<ImportInstanceRequest>, Serializable, Cloneable

public class ImportInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportInstanceRequest>

Contains the parameters for ImportInstance.

See Also:
  • Constructor Details

    • ImportInstanceRequest

      public ImportInstanceRequest()
  • Method Details

    • setDescription

      public void setDescription(String description)

      A description for the instance being imported.

      Parameters:
      description - A description for the instance being imported.
    • getDescription

      public String getDescription()

      A description for the instance being imported.

      Returns:
      A description for the instance being imported.
    • withDescription

      public ImportInstanceRequest withDescription(String description)

      A description for the instance being imported.

      Parameters:
      description - A description for the instance being imported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLaunchSpecification

      public void setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)

      The launch specification.

      Parameters:
      launchSpecification - The launch specification.
    • getLaunchSpecification

      public ImportInstanceLaunchSpecification getLaunchSpecification()

      The launch specification.

      Returns:
      The launch specification.
    • withLaunchSpecification

      public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)

      The launch specification.

      Parameters:
      launchSpecification - The launch specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDiskImages

      public List<DiskImage> getDiskImages()

      The disk image.

      Returns:
      The disk image.
    • setDiskImages

      public void setDiskImages(Collection<DiskImage> diskImages)

      The disk image.

      Parameters:
      diskImages - The disk image.
    • withDiskImages

      public ImportInstanceRequest withDiskImages(DiskImage... diskImages)

      The disk image.

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

      Parameters:
      diskImages - The disk image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDiskImages

      public ImportInstanceRequest withDiskImages(Collection<DiskImage> diskImages)

      The disk image.

      Parameters:
      diskImages - The disk image.
      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 ImportInstanceRequest 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 ImportInstanceRequest 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:
    • getDryRunRequest

      public Request<ImportInstanceRequest> 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<ImportInstanceRequest>
    • 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 ImportInstanceRequest 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: