public abstract static class Image.Builder<T extends Image.Builder<T>> extends Resource.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected String |
checksum |
protected ContainerFormat |
containerFormat |
protected DiskFormat |
diskFormat |
protected Long |
size |
id, links, name
Constructor and Description |
---|
Image.Builder() |
Modifier and Type | Method and Description |
---|---|
Image |
build() |
T |
checksum(String checksum) |
T |
containerFormat(ContainerFormat containerFormat) |
T |
diskFormat(DiskFormat diskFormat) |
T |
fromImage(Image in) |
T |
size(Long size) |
fromResource, id, links, links, name, self
protected ContainerFormat containerFormat
protected DiskFormat diskFormat
protected Long size
protected String checksum
public T containerFormat(ContainerFormat containerFormat)
Image.getContainerFormat()
public T diskFormat(DiskFormat diskFormat)
Image.getDiskFormat()
public T size(Long size)
Image.getSize()
public T checksum(String checksum)
Image.getChecksum()
public Image build()
build
in class Resource.Builder<T extends Image.Builder<T>>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.