Package org.jclouds.ec2.domain
Class Image
- java.lang.Object
-
- org.jclouds.ec2.domain.Image
-
- All Implemented Interfaces:
Comparable<Image>
public class Image extends Object implements Comparable<Image>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImage.Architecturestatic classImage.EbsBlockDevicestatic classImage.ImageStatestatic classImage.ImageType
-
Constructor Summary
Constructors Constructor Description Image(String region, Image.Architecture architecture, String name, String description, String imageId, String imageLocation, String imageOwnerId, Image.ImageState imageState, String rawState, Image.ImageType imageType, boolean isPublic, Iterable<String> productCodes, String kernelId, String platform, String ramdiskId, RootDeviceType rootDeviceType, String rootDeviceName, Map<String,Image.EbsBlockDevice> ebsBlockDevices, Map<String,String> tags, VirtualizationType virtualizationType, Hypervisor hypervisor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(Image o)booleanequals(Object obj)Image.ArchitecturegetArchitecture()The architecture of the image (i386 or x86_64).StringgetDescription()Map<String,Image.EbsBlockDevice>getEbsBlockDevices()HypervisorgetHypervisor()StringgetId()The ID of the AMI.StringgetImageLocation()The location of the AMI.StringgetImageOwnerId()AWS Access Key ID of the image owner.Image.ImageStategetImageState()Current state of the AMI.Image.ImageTypegetImageType()The type of image (machine, kernel, or ramdisk).StringgetKernelId()The kernel associated with the image, if any.StringgetName()StringgetPlatform()The operating platform of the instance.Set<String>getProductCodes()Product codes of the AMI.StringgetRamdiskId()The RAM disk associated with the image, if any.StringgetRawState()raw form ofgetImageState()as taken directly from the api response xml document/StringgetRegion()Deprecated.StringgetRootDeviceName()RootDeviceTypegetRootDeviceType()Map<String,String>getTags()VirtualizationTypegetVirtualizationType()inthashCode()booleanisPublic()Returns true if this image has public launch permissions.StringtoString()
-
-
-
Constructor Detail
-
Image
public Image(String region, Image.Architecture architecture, @Nullable String name, @Nullable String description, String imageId, String imageLocation, String imageOwnerId, Image.ImageState imageState, String rawState, Image.ImageType imageType, boolean isPublic, Iterable<String> productCodes, @Nullable String kernelId, @Nullable String platform, @Nullable String ramdiskId, RootDeviceType rootDeviceType, @Nullable String rootDeviceName, Map<String,Image.EbsBlockDevice> ebsBlockDevices, Map<String,String> tags, VirtualizationType virtualizationType, Hypervisor hypervisor)
-
-
Method Detail
-
getVirtualizationType
public VirtualizationType getVirtualizationType()
-
getHypervisor
public Hypervisor getHypervisor()
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
getArchitecture
public Image.Architecture getArchitecture()
The architecture of the image (i386 or x86_64).
-
getId
public String getId()
The ID of the AMI.
-
getImageLocation
public String getImageLocation()
The location of the AMI.
-
getImageOwnerId
public String getImageOwnerId()
AWS Access Key ID of the image owner.
-
getImageState
public Image.ImageState getImageState()
Current state of the AMI. If the operation returns available, the image is successfully registered and avail able for launching. If the operation returns deregistered, the image is deregistered and no longer available for launching.
-
getRawState
public String getRawState()
raw form ofgetImageState()as taken directly from the api response xml document/
-
getImageType
public Image.ImageType getImageType()
The type of image (machine, kernel, or ramdisk).
-
isPublic
public boolean isPublic()
Returns true if this image has public launch permissions. Returns false if it only has implicit and explicit launch permissions.
-
getKernelId
public String getKernelId()
The kernel associated with the image, if any. Only applicable for machine images.
-
getPlatform
public String getPlatform()
The operating platform of the instance.
-
getRamdiskId
public String getRamdiskId()
The RAM disk associated with the image, if any. Only applicable for machine images.
-
compareTo
public int compareTo(Image o)
- Specified by:
compareToin interfaceComparable<Image>
-
getRootDeviceType
public RootDeviceType getRootDeviceType()
- Returns:
- The root device type used by the AMI. The AMI can use an Amazon EBS or instance store root device.
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getRootDeviceName
public String getRootDeviceName()
-
getEbsBlockDevices
public Map<String,Image.EbsBlockDevice> getEbsBlockDevices()
-
-