public class GlanceImage extends Object implements Image
http://docs.openstack.org/api/openstack-image-service/1.1/content/index.html
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
GlanceImage.ImageConcreteBuilder |
static class |
GlanceImage.Images |
Image.Status
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
Constructor and Description |
---|
GlanceImage() |
Modifier and Type | Method and Description |
---|---|
static ImageBuilder |
builder() |
GlanceImage |
createdAt(Date createdAt) |
GlanceImage |
deletedAt(Date deletedAt) |
String |
getChecksum() |
ContainerFormat |
getContainerFormat() |
String |
getCopyFrom() |
Date |
getCreatedAt()
The timestamp of when the image was created
|
Date |
getDeletedAt() |
DiskFormat |
getDiskFormat() |
String |
getId() |
String |
getLocation() |
long |
getMinDisk() |
long |
getMinRam() |
String |
getName() |
String |
getOwner() |
Map<String,String> |
getProperties()
A mapping of free-form key/value pairs that have been saved with the image metadata
|
Long |
getSize() |
Image.Status |
getStatus() |
StoreType |
getStoreType()
This will always be null on any list or get request.
|
Date |
getUpdatedAt()
Timestamp when an image's metadata was last updated, not its image data, as all image data is immutable once stored in Glance
|
boolean |
isDeleted() |
GlanceImage |
isDeleted(Boolean isDeleted) |
boolean |
isProtected() |
GlanceImage |
isProtected(Boolean isProtected) |
boolean |
isPublic()
Indicates whether the image is publicly available
|
boolean |
isSnapshot()
Determines if this image is a snapshot
|
GlanceImage |
location(String location) |
GlanceImage |
properties(Map<String,String> properties) |
void |
setId(String id)
Sets the identifier for this resource.
|
void |
setName(String name)
Sets the name for this resource
|
GlanceImage |
size(Long size) |
GlanceImage |
status(Image.Status status) |
ImageBuilder |
toBuilder() |
String |
toString() |
GlanceImage |
updatedAt(Date updatedAt) |
public static ImageBuilder builder()
public ImageBuilder toBuilder()
toBuilder
in interface Buildable<ImageBuilder>
public String getId()
public String getName()
getName
in interface BasicResource
public void setId(String id)
public void setName(String name)
setName
in interface BasicResource
name
- the name to setpublic ContainerFormat getContainerFormat()
getContainerFormat
in interface Image
public DiskFormat getDiskFormat()
getDiskFormat
in interface Image
public String getChecksum()
getChecksum
in interface Image
public long getMinDisk()
getMinDisk
in interface Image
public long getMinRam()
public String getLocation()
getLocation
in interface Image
public Date getUpdatedAt()
getUpdatedAt
in interface Image
public Date getCreatedAt()
getCreatedAt
in interface Image
@Nullable public Date getDeletedAt()
getDeletedAt
in interface Image
public Image.Status getStatus()
public boolean isPublic()
public boolean isDeleted()
public boolean isProtected()
isProtected
in interface Image
public StoreType getStoreType()
getStoreType
in interface Image
public Map<String,String> getProperties()
getProperties
in interface Image
public String getCopyFrom()
getCopyFrom
in interface Image
public GlanceImage isProtected(Boolean isProtected)
public GlanceImage isDeleted(Boolean isDeleted)
public GlanceImage status(Image.Status status)
public GlanceImage createdAt(Date createdAt)
public GlanceImage updatedAt(Date updatedAt)
public GlanceImage deletedAt(Date deletedAt)
public GlanceImage size(Long size)
public GlanceImage location(String location)
public GlanceImage properties(Map<String,String> properties)
public boolean isSnapshot()
isSnapshot
in interface Image
Copyright © 2017. All rights reserved.