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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportImageTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportImageTaskclone()booleanequals(Object obj)StringgetArchitecture()The architecture of the virtual machine.StringgetDescription()A description of the import task.StringgetHypervisor()The target hypervisor for the import task.StringgetImageId()The ID of the Amazon Machine Image (AMI) of the imported virtual machine.StringgetImportTaskId()The ID of the import image task.StringgetLicenseType()The license type of the virtual machine.StringgetPlatform()The description string for the import image task.StringgetProgress()The percentage of progress of the import image task.List<SnapshotDetail>getSnapshotDetails()Information about the snapshots.StringgetStatus()A brief status for the import image task.StringgetStatusMessage()A descriptive status message for the import image task.inthashCode()voidsetArchitecture(String architecture)The architecture of the virtual machine.voidsetDescription(String description)A description of the import task.voidsetHypervisor(String hypervisor)The target hypervisor for the import task.voidsetImageId(String imageId)The ID of the Amazon Machine Image (AMI) of the imported virtual machine.voidsetImportTaskId(String importTaskId)The ID of the import image task.voidsetLicenseType(String licenseType)The license type of the virtual machine.voidsetPlatform(String platform)The description string for the import image task.voidsetProgress(String progress)The percentage of progress of the import image task.voidsetSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)Information about the snapshots.voidsetStatus(String status)A brief status for the import image task.voidsetStatusMessage(String statusMessage)A descriptive status message for the import image task.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportImageTaskwithArchitecture(String architecture)The architecture of the virtual machine.ImportImageTaskwithDescription(String description)A description of the import task.ImportImageTaskwithHypervisor(String hypervisor)The target hypervisor for the import task.ImportImageTaskwithImageId(String imageId)The ID of the Amazon Machine Image (AMI) of the imported virtual machine.ImportImageTaskwithImportTaskId(String importTaskId)The ID of the import image task.ImportImageTaskwithLicenseType(String licenseType)The license type of the virtual machine.ImportImageTaskwithPlatform(String platform)The description string for the import image task.ImportImageTaskwithProgress(String progress)The percentage of progress of the import image task.ImportImageTaskwithSnapshotDetails(SnapshotDetail... snapshotDetails)Information about the snapshots.ImportImageTaskwithSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)Information about the snapshots.ImportImageTaskwithStatus(String status)A brief status for the import image task.ImportImageTaskwithStatusMessage(String statusMessage)A descriptive status message for the import image task.
-
-
-
Method Detail
-
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)orwithSnapshotDetails(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportImageTask clone()
-
-