Class ImportImageResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ImportImageResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ImportImageResult extends Object implements Serializable, Cloneable
Contains the output for ImportImage.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportImageResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportImageResultclone()booleanequals(Object obj)StringgetArchitecture()The architecture of the virtual machine.StringgetDescription()A description of the import task.StringgetHypervisor()The target hypervisor of the import task.StringgetImageId()The ID of the Amazon Machine Image (AMI) created by the import task.StringgetImportTaskId()The task ID of the import image task.StringgetLicenseType()The license type of the virtual machine.StringgetPlatform()The operating system of the virtual machine.StringgetProgress()The progress of the task.List<SnapshotDetail>getSnapshotDetails()Information about the snapshots.StringgetStatus()A brief status of the task.StringgetStatusMessage()A detailed status message of the import 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 of the import task.voidsetImageId(String imageId)The ID of the Amazon Machine Image (AMI) created by the import task.voidsetImportTaskId(String importTaskId)The task ID of the import image task.voidsetLicenseType(String licenseType)The license type of the virtual machine.voidsetPlatform(String platform)The operating system of the virtual machine.voidsetProgress(String progress)The progress of the task.voidsetSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)Information about the snapshots.voidsetStatus(String status)A brief status of the task.voidsetStatusMessage(String statusMessage)A detailed status message of the import task.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportImageResultwithArchitecture(String architecture)The architecture of the virtual machine.ImportImageResultwithDescription(String description)A description of the import task.ImportImageResultwithHypervisor(String hypervisor)The target hypervisor of the import task.ImportImageResultwithImageId(String imageId)The ID of the Amazon Machine Image (AMI) created by the import task.ImportImageResultwithImportTaskId(String importTaskId)The task ID of the import image task.ImportImageResultwithLicenseType(String licenseType)The license type of the virtual machine.ImportImageResultwithPlatform(String platform)The operating system of the virtual machine.ImportImageResultwithProgress(String progress)The progress of the task.ImportImageResultwithSnapshotDetails(SnapshotDetail... snapshotDetails)Information about the snapshots.ImportImageResultwithSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)Information about the snapshots.ImportImageResultwithStatus(String status)A brief status of the task.ImportImageResultwithStatusMessage(String statusMessage)A detailed status message of the import task.
-
-
-
Method Detail
-
setImportTaskId
public void setImportTaskId(String importTaskId)
The task ID of the import image task.
- Parameters:
importTaskId- The task ID of the import image task.
-
getImportTaskId
public String getImportTaskId()
The task ID of the import image task.
- Returns:
- The task ID of the import image task.
-
withImportTaskId
public ImportImageResult withImportTaskId(String importTaskId)
The task ID of the import image task.
- Parameters:
importTaskId- The task 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.
- Parameters:
architecture- The architecture of the virtual machine.
-
getArchitecture
public String getArchitecture()
The architecture of the virtual machine.
- Returns:
- The architecture of the virtual machine.
-
withArchitecture
public ImportImageResult withArchitecture(String architecture)
The architecture of the virtual machine.
- Parameters:
architecture- The architecture of the virtual machine.- 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 ImportImageResult 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 operating system of the virtual machine.
- Parameters:
platform- The operating system of the virtual machine.
-
getPlatform
public String getPlatform()
The operating system of the virtual machine.
- Returns:
- The operating system of the virtual machine.
-
withPlatform
public ImportImageResult withPlatform(String platform)
The operating system of the virtual machine.
- Parameters:
platform- The operating system of the virtual machine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHypervisor
public void setHypervisor(String hypervisor)
The target hypervisor of the import task.
- Parameters:
hypervisor- The target hypervisor of the import task.
-
getHypervisor
public String getHypervisor()
The target hypervisor of the import task.
- Returns:
- The target hypervisor of the import task.
-
withHypervisor
public ImportImageResult withHypervisor(String hypervisor)
The target hypervisor of the import task.
- Parameters:
hypervisor- The target hypervisor of the import task.- 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 ImportImageResult 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 ImportImageResult 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 ImportImageResult 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) created by the import task.
- Parameters:
imageId- The ID of the Amazon Machine Image (AMI) created by the import task.
-
getImageId
public String getImageId()
The ID of the Amazon Machine Image (AMI) created by the import task.
- Returns:
- The ID of the Amazon Machine Image (AMI) created by the import task.
-
withImageId
public ImportImageResult withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) created by the import task.
- Parameters:
imageId- The ID of the Amazon Machine Image (AMI) created by the import task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgress
public void setProgress(String progress)
The progress of the task.
- Parameters:
progress- The progress of the task.
-
getProgress
public String getProgress()
The progress of the task.
- Returns:
- The progress of the task.
-
withProgress
public ImportImageResult withProgress(String progress)
The progress of the task.
- Parameters:
progress- The progress of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusMessage
public void setStatusMessage(String statusMessage)
A detailed status message of the import task.
- Parameters:
statusMessage- A detailed status message of the import task.
-
getStatusMessage
public String getStatusMessage()
A detailed status message of the import task.
- Returns:
- A detailed status message of the import task.
-
withStatusMessage
public ImportImageResult withStatusMessage(String statusMessage)
A detailed status message of the import task.
- Parameters:
statusMessage- A detailed status message of the import 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 of the task.
- Parameters:
status- A brief status of the task.
-
getStatus
public String getStatus()
A brief status of the task.
- Returns:
- A brief status of the task.
-
withStatus
public ImportImageResult withStatus(String status)
A brief status of the task.
- Parameters:
status- A brief status 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportImageResult clone()
-
-