org.jclouds.openstack.nova.domain
Class Image

java.lang.Object
  extended by org.jclouds.openstack.nova.domain.Resource
      extended by org.jclouds.openstack.nova.domain.Image

public class Image
extends Resource

An image is a collection of files used to create or rebuild a server. Rackspace provides a number of pre-built OS images by default. You may also create custom images from cloud servers you have launched. These custom images are useful for backup purposes or for producing gold server images if you plan to deploy a particular server configuration frequently.

Author:
Adrian Cole

Constructor Summary
Image()
           
Image(int id, String name)
           
 
Method Summary
 boolean equals(Object obj)
          note that this ignores some fields
 Date getCreated()
           
 int getId()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 Integer getProgress()
           
 String getServerRef()
           
 ImageStatus getStatus()
           
 Date getUpdated()
           
 int hashCode()
          note that this ignores some fields
 void setId(int id)
           
 void setMetadata(Map<String,String> metadata)
           
 void setName(String name)
           
 void setProgress(Integer progress)
           
 void setServerRef(String serverRef)
           
 void setStatus(ImageStatus status)
           
 String toString()
           
 
Methods inherited from class org.jclouds.openstack.nova.domain.Resource
getSelfURI, getURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image()

Image

public Image(int id,
             String name)
Method Detail

getCreated

public Date getCreated()

getUpdated

public Date getUpdated()

setId

public void setId(int id)

getId

public int getId()

setName

public void setName(String name)

getName

public String getName()

setProgress

public void setProgress(Integer progress)

getProgress

public Integer getProgress()

setServerRef

public void setServerRef(String serverRef)

getServerRef

public String getServerRef()

setStatus

public void setStatus(ImageStatus status)

getStatus

public ImageStatus getStatus()

getMetadata

public Map<String,String> getMetadata()

setMetadata

public void setMetadata(Map<String,String> metadata)

hashCode

public int hashCode()
note that this ignores some fields

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
note that this ignores some fields

Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.