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 class
Image.Architecture
static class
Image.EbsBlockDevice
static class
Image.ImageState
static class
Image.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 int
compareTo(Image o)
boolean
equals(Object obj)
Image.Architecture
getArchitecture()
The architecture of the image (i386 or x86_64).String
getDescription()
Map<String,Image.EbsBlockDevice>
getEbsBlockDevices()
Hypervisor
getHypervisor()
String
getId()
The ID of the AMI.String
getImageLocation()
The location of the AMI.String
getImageOwnerId()
AWS Access Key ID of the image owner.Image.ImageState
getImageState()
Current state of the AMI.Image.ImageType
getImageType()
The type of image (machine, kernel, or ramdisk).String
getKernelId()
The kernel associated with the image, if any.String
getName()
String
getPlatform()
The operating platform of the instance.Set<String>
getProductCodes()
Product codes of the AMI.String
getRamdiskId()
The RAM disk associated with the image, if any.String
getRawState()
raw form ofgetImageState()
as taken directly from the api response xml document/String
getRegion()
Deprecated.String
getRootDeviceName()
RootDeviceType
getRootDeviceType()
Map<String,String>
getTags()
VirtualizationType
getVirtualizationType()
int
hashCode()
boolean
isPublic()
Returns true if this image has public launch permissions.String
toString()
-
-
-
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:
compareTo
in 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()
-
-