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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
Constructors Modifier Constructor Description 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, List<BlockDeviceMapping> blockDeviceMapping, Resource server, Map<String,String> metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Image.Builder<?>
builder()
boolean
equals(Object obj)
List<BlockDeviceMapping>
getBlockDeviceMapping()
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.MoreObjects.ToStringHelper
string()
Image.Builder<?>
toBuilder()
-
-
-
Constructor Detail
-
Image
@ConstructorProperties({"id","name","links","updated","created","tenant_id","user_id","status","progress","minDisk","minRam","server","blockDeviceMapping","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 List<BlockDeviceMapping> blockDeviceMapping, @Nullable Resource server, @Nullable Map<String,String> metadata)
-
-
Method Detail
-
builder
public static Image.Builder<?> builder()
-
toBuilder
public Image.Builder<?> toBuilder()
-
getStatus
@Nullable public Image.Status getStatus()
-
getProgress
public int getProgress()
-
getMinDisk
public int getMinDisk()
-
getMinRam
public int getMinRam()
-
getBlockDeviceMapping
@Nullable public List<BlockDeviceMapping> getBlockDeviceMapping()
-
-