org.jclouds.openstack.nova.v2_0.domain
Class Image

java.lang.Object
  extended by org.jclouds.openstack.v2_0.domain.Resource
      extended by org.jclouds.openstack.nova.v2_0.domain.Image
All Implemented Interfaces:
Comparable<Resource>

public class Image
extends Resource

An image is a collection of files you use to create or rebuild a server. Operators provide pre-built OS images by default. You may also create custom images.

Author:
Jeremy Daggett
See Also:

Nested Class Summary
static class Image.Builder<T extends Image.Builder<T>>
           
static class Image.Status
          In-flight images will have the status attribute set to SAVING and the conditional progress element (0-100% completion) will also be returned.
 
Constructor Summary
protected Image(String id, String name, Set<Link> links, Date updated, Date created, String tenantId, String userId, Image.Status status, int progress, int minDisk, int minRam, Resource server, Map<String,String> metadata)
           
 
Method Summary
static Image.Builder<?> builder()
           
 boolean equals(Object obj)
           
 Date getCreated()
           
 Map<String,String> getMetadata()
           
 int getMinDisk()
           
 int getMinRam()
           
 int getProgress()
           
 Resource getServer()
           
 Image.Status getStatus()
           
 String getTenantId()
           
 Date getUpdated()
           
 String getUserId()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Image.Builder<?> toBuilder()
           
 
Methods inherited from class org.jclouds.openstack.v2_0.domain.Resource
compareTo, getId, getLinks, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

@ConstructorProperties(value={"id","name","links","updated","created","tenant_id","user_id","status","progress","minDisk","minRam","server","metadata"})
protected Image(String id,
                                           @Nullable
                                           String name,
                                           Set<Link> links,
                                           @Nullable
                                           Date updated,
                                           @Nullable
                                           Date created,
                                           String tenantId,
                                           @Nullable
                                           String userId,
                                           @Nullable
                                           Image.Status status,
                                           int progress,
                                           int minDisk,
                                           int minRam,
                                           @Nullable
                                           Resource server,
                                           @Nullable
                                           Map<String,String> metadata)
Method Detail

builder

public static Image.Builder<?> builder()

toBuilder

public Image.Builder<?> toBuilder()
Overrides:
toBuilder in class Resource

getUpdated

@Nullable
public Date getUpdated()

getCreated

@Nullable
public Date getCreated()

getTenantId

@Nullable
public String getTenantId()

getUserId

@Nullable
public String getUserId()

getStatus

@Nullable
public Image.Status getStatus()

getProgress

public int getProgress()

getMinDisk

public int getMinDisk()

getMinRam

public int getMinRam()

getServer

@Nullable
public Resource getServer()

getMetadata

public Map<String,String> getMetadata()

hashCode

public int hashCode()
Overrides:
hashCode in class Resource

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class Resource


Copyright © 2009-2012 jclouds. All Rights Reserved.