org.jclouds.ec2.domain
Class Image

java.lang.Object
  extended by org.jclouds.ec2.domain.Image
All Implemented Interfaces:
Comparable<Image>

public class Image
extends Object
implements Comparable<Image>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Image.Architecture
           
static class Image.EbsBlockDevice
           
static class Image.ImageState
           
static class Image.ImageType
           
 
Constructor Summary
Image(String region, Image.Architecture architecture, String name, String description, String imageId, String imageLocation, String imageOwnerId, Image.ImageState imageState, Image.ImageType imageType, boolean isPublic, Iterable<String> productCodes, String kernelId, String platform, String ramdiskId, RootDeviceType rootDeviceType, String rootDeviceName, Map<String,Image.EbsBlockDevice> ebsBlockDevices, VirtualizationType virtualizationType, Hypervisor hypervisor)
           
 
Method Summary
 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 getRegion()
          AMIs are tied to the Region where its files are located within Amazon S3.
 String getRootDeviceName()
           
 RootDeviceType getRootDeviceType()
           
 VirtualizationType getVirtualizationType()
           
 int hashCode()
           
 boolean isPublic()
          Returns true if this image has public launch permissions.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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,
             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,
             VirtualizationType virtualizationType,
             Hypervisor hypervisor)
Method Detail

getVirtualizationType

public VirtualizationType getVirtualizationType()

getHypervisor

public Hypervisor getHypervisor()

getRegion

public String getRegion()
AMIs are tied to the Region where its files are located within Amazon S3.


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.


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.


getProductCodes

public Set<String> getProductCodes()
Product codes of the AMI.


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 interface Comparable<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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.