public static class GlanceImage.ImageConcreteBuilder extends BasicResourceBuilder<Image,GlanceImage.ImageConcreteBuilder> implements ImageBuilder
Modifier and Type | Method and Description |
---|---|
Image |
build()
Creates and return the Model Entity M
|
ImageBuilder |
checksum(String checksum) |
ImageBuilder |
containerFormat(ContainerFormat containerFormat) |
ImageBuilder |
copyFrom(String copyFrom) |
ImageBuilder |
diskFormat(DiskFormat diskFormat) |
ImageBuilder |
from(Image in)
Creates a Builder using the param M as the default values
|
ImageBuilder |
isPublic(Boolean isPublic) |
ImageBuilder |
minDisk(Long minDisk) |
ImageBuilder |
minRam(Long minRam) |
ImageBuilder |
owner(String owner) |
ImageBuilder |
properties(Map<String,String> properties) |
ImageBuilder |
property(String key,
String value) |
protected Image |
reference() |
ImageBuilder |
size(Long size) |
ImageBuilder |
storeType(StoreType storeType)
Store type to be used during create or reserving of new images
|
id, name, self
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
id, name
public ImageBuilder diskFormat(DiskFormat diskFormat)
diskFormat
in interface ImageBuilder
Image.getDiskFormat()
public ImageBuilder containerFormat(ContainerFormat containerFormat)
containerFormat
in interface ImageBuilder
Image.getContainerFormat()
public ImageBuilder size(Long size)
size
in interface ImageBuilder
Image.getSize()
public ImageBuilder checksum(String checksum)
checksum
in interface ImageBuilder
Image.getChecksum()
public ImageBuilder minDisk(Long minDisk)
minDisk
in interface ImageBuilder
Image.getMinDisk()
public ImageBuilder minRam(Long minRam)
minRam
in interface ImageBuilder
Image.getMinRam()
public ImageBuilder owner(String owner)
owner
in interface ImageBuilder
Image.getOwner()
public ImageBuilder isPublic(Boolean isPublic)
isPublic
in interface ImageBuilder
Image.isPublic()
public ImageBuilder properties(Map<String,String> properties)
properties
in interface ImageBuilder
Image.getProperties()
protected Image reference()
reference
in class BasicResourceBuilder<Image,GlanceImage.ImageConcreteBuilder>
public Image build()
Buildable.Builder
build
in interface Buildable.Builder<ImageBuilder,Image>
public ImageBuilder from(Image in)
Buildable.Builder
from
in interface Buildable.Builder<ImageBuilder,Image>
public ImageBuilder property(String key, String value)
property
in interface ImageBuilder
Image.getProperties()
public ImageBuilder storeType(StoreType storeType)
ImageBuilder
storeType
in interface ImageBuilder
storeType
- the store typepublic ImageBuilder copyFrom(String copyFrom)
copyFrom
in interface ImageBuilder
Image.getCopyFrom()
Copyright © 2017. All rights reserved.