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 ImportImageResult
clone()
boolean
equals(Object obj)
String
getArchitecture()
The architecture of the virtual machine.String
getDescription()
A description of the import task.String
getHypervisor()
The target hypervisor of the import task.String
getImageId()
The ID of the Amazon Machine Image (AMI) created by the import task.String
getImportTaskId()
The task ID of the import image task.String
getLicenseType()
The license type of the virtual machine.String
getPlatform()
The operating system of the virtual machine.String
getProgress()
The progress of the task.List<SnapshotDetail>
getSnapshotDetails()
Information about the snapshots.String
getStatus()
A brief status of the task.String
getStatusMessage()
A detailed status message of the import task.int
hashCode()
void
setArchitecture(String architecture)
The architecture of the virtual machine.void
setDescription(String description)
A description of the import task.void
setHypervisor(String hypervisor)
The target hypervisor of the import task.void
setImageId(String imageId)
The ID of the Amazon Machine Image (AMI) created by the import task.void
setImportTaskId(String importTaskId)
The task ID of the import image task.void
setLicenseType(String licenseType)
The license type of the virtual machine.void
setPlatform(String platform)
The operating system of the virtual machine.void
setProgress(String progress)
The progress of the task.void
setSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)
Information about the snapshots.void
setStatus(String status)
A brief status of the task.void
setStatusMessage(String statusMessage)
A detailed status message of the import task.String
toString()
Returns a string representation of this object; useful for testing and debugging.ImportImageResult
withArchitecture(String architecture)
The architecture of the virtual machine.ImportImageResult
withDescription(String description)
A description of the import task.ImportImageResult
withHypervisor(String hypervisor)
The target hypervisor of the import task.ImportImageResult
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI) created by the import task.ImportImageResult
withImportTaskId(String importTaskId)
The task ID of the import image task.ImportImageResult
withLicenseType(String licenseType)
The license type of the virtual machine.ImportImageResult
withPlatform(String platform)
The operating system of the virtual machine.ImportImageResult
withProgress(String progress)
The progress of the task.ImportImageResult
withSnapshotDetails(SnapshotDetail... snapshotDetails)
Information about the snapshots.ImportImageResult
withSnapshotDetails(Collection<SnapshotDetail> snapshotDetails)
Information about the snapshots.ImportImageResult
withStatus(String status)
A brief status of the task.ImportImageResult
withStatusMessage(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportImageResult clone()
-
-