Class ImportImageRequest

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

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

Contains the parameters for ImportImage.

See Also:
  • Constructor Details

    • ImportImageRequest

      public ImportImageRequest()
  • Method Details

    • setDescription

      public void setDescription(String description)

      A description string for the import image task.

      Parameters:
      description - A description string for the import image task.
    • getDescription

      public String getDescription()

      A description string for the import image task.

      Returns:
      A description string for the import image task.
    • withDescription

      public ImportImageRequest withDescription(String description)

      A description string for the import image task.

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

      public List<ImageDiskContainer> getDiskContainers()

      Information about the disk containers.

      Returns:
      Information about the disk containers.
    • setDiskContainers

      public void setDiskContainers(Collection<ImageDiskContainer> diskContainers)

      Information about the disk containers.

      Parameters:
      diskContainers - Information about the disk containers.
    • withDiskContainers

      public ImportImageRequest withDiskContainers(ImageDiskContainer... diskContainers)

      Information about the disk containers.

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

      Parameters:
      diskContainers - Information about the disk containers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDiskContainers

      public ImportImageRequest withDiskContainers(Collection<ImageDiskContainer> diskContainers)

      Information about the disk containers.

      Parameters:
      diskContainers - Information about the disk containers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLicenseType

      public void setLicenseType(String licenseType)

      The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

      Parameters:
      licenseType - The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

    • getLicenseType

      public String getLicenseType()

      The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

      Returns:
      The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

    • withLicenseType

      public ImportImageRequest withLicenseType(String licenseType)

      The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

      Parameters:
      licenseType - The license type to be used for the Amazon Machine Image (AMI) after importing.

      Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

      Valid values: AWS | BYOL

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

      public void setHypervisor(String hypervisor)

      The target hypervisor platform.

      Valid values: xen

      Parameters:
      hypervisor - The target hypervisor platform.

      Valid values: xen

    • getHypervisor

      public String getHypervisor()

      The target hypervisor platform.

      Valid values: xen

      Returns:
      The target hypervisor platform.

      Valid values: xen

    • withHypervisor

      public ImportImageRequest withHypervisor(String hypervisor)

      The target hypervisor platform.

      Valid values: xen

      Parameters:
      hypervisor - The target hypervisor platform.

      Valid values: xen

      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 ImportImageRequest 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.
    • setPlatform

      public void setPlatform(String platform)

      The operating system of the virtual machine.

      Valid values: Windows | Linux

      Parameters:
      platform - The operating system of the virtual machine.

      Valid values: Windows | Linux

    • getPlatform

      public String getPlatform()

      The operating system of the virtual machine.

      Valid values: Windows | Linux

      Returns:
      The operating system of the virtual machine.

      Valid values: Windows | Linux

    • withPlatform

      public ImportImageRequest withPlatform(String platform)

      The operating system of the virtual machine.

      Valid values: Windows | Linux

      Parameters:
      platform - The operating system of the virtual machine.

      Valid values: Windows | Linux

      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 ImportImageRequest 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)

      The token to enable idempotency for VM import requests.

      Parameters:
      clientToken - The token to enable idempotency for VM import requests.
    • getClientToken

      public String getClientToken()

      The token to enable idempotency for VM import requests.

      Returns:
      The token to enable idempotency for VM import requests.
    • withClientToken

      public ImportImageRequest withClientToken(String clientToken)

      The token to enable idempotency for VM import requests.

      Parameters:
      clientToken - The 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 ImportImageRequest 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<ImportImageRequest> 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<ImportImageRequest>
    • 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 ImportImageRequest 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: