org.jclouds.openstack.nova.v2_0.domain
Class Image
java.lang.Object
org.jclouds.openstack.v2_0.domain.Resource
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)
|
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)
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.