Package org.jclouds.ec2.domain
Class Image
java.lang.Object
org.jclouds.ec2.domain.Image
- All Implemented Interfaces:
Comparable<Image>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static enum
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionImage
(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
Modifier and TypeMethodDescriptionint
boolean
The architecture of the image (i386 or x86_64).getId()
The ID of the AMI.The location of the AMI.AWS Access Key ID of the image owner.Current state of the AMI.The type of image (machine, kernel, or ramdisk).The kernel associated with the image, if any.getName()
The operating platform of the instance.Product codes of the AMI.The RAM disk associated with the image, if any.raw form ofgetImageState()
as taken directly from the api response xml document/Deprecated.getTags()
int
hashCode()
boolean
isPublic()
Returns true if this image has public launch permissions.toString()
-
Constructor Details
-
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 Details
-
getVirtualizationType
-
getHypervisor
-
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
The architecture of the image (i386 or x86_64). -
getId
The ID of the AMI. -
getImageLocation
The location of the AMI. -
getImageOwnerId
AWS Access Key ID of the image owner. -
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
raw form ofgetImageState()
as taken directly from the api response xml document/ -
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
The kernel associated with the image, if any. Only applicable for machine images. -
getPlatform
The operating platform of the instance. -
getProductCodes
Product codes of the AMI. -
getRamdiskId
The RAM disk associated with the image, if any. Only applicable for machine images. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Image>
-
getRootDeviceType
- Returns:
- The root device type used by the AMI. The AMI can use an Amazon EBS or instance store root device.
-
getName
-
getDescription
-
getRootDeviceName
-
getEbsBlockDevices
-
getTags
-
hashCode
public int hashCode() -
equals
-
toString
-