Class Image.Builder<T extends Image.Builder<T>>
- java.lang.Object
-
- org.jclouds.openstack.v2_0.domain.Resource.Builder<T>
-
- org.jclouds.openstack.nova.v2_0.domain.Image.Builder<T>
-
- Enclosing class:
- Image
public abstract static class Image.Builder<T extends Image.Builder<T>> extends Resource.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<BlockDeviceMapping>
blockDeviceMapping
protected Date
created
protected Map<String,String>
metadata
protected int
minDisk
protected int
minRam
protected int
progress
protected Resource
server
protected Image.Status
status
protected String
tenantId
protected Date
updated
protected String
userId
-
Fields inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
id, links, name
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
blockDeviceMapping(List<BlockDeviceMapping> blockDeviceMapping)
Image
build()
T
created(Date created)
T
fromImage(Image in)
T
metadata(Map<String,String> metadata)
T
minDisk(int minDisk)
T
minRam(int minRam)
T
progress(int progress)
T
server(Resource server)
T
status(Image.Status status)
T
tenantId(String tenantId)
T
updated(Date updated)
T
userId(String userId)
-
Methods inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
fromResource, id, links, links, name, self
-
-
-
-
Field Detail
-
updated
protected Date updated
-
created
protected Date created
-
tenantId
protected String tenantId
-
userId
protected String userId
-
status
protected Image.Status status
-
progress
protected int progress
-
minDisk
protected int minDisk
-
minRam
protected int minRam
-
server
protected Resource server
-
blockDeviceMapping
protected List<BlockDeviceMapping> blockDeviceMapping
-
-
Method Detail
-
updated
public T updated(Date updated)
- See Also:
Image.getUpdated()
-
created
public T created(Date created)
- See Also:
Image.getCreated()
-
tenantId
public T tenantId(String tenantId)
- See Also:
Image.getTenantId()
-
userId
public T userId(String userId)
- See Also:
Image.getUserId()
-
status
public T status(Image.Status status)
- See Also:
Image.getStatus()
-
progress
public T progress(int progress)
- See Also:
Image.getProgress()
-
minDisk
public T minDisk(int minDisk)
- See Also:
Image.getMinDisk()
-
minRam
public T minRam(int minRam)
- See Also:
Image.getMinRam()
-
server
public T server(Resource server)
- See Also:
Image.getServer()
-
blockDeviceMapping
public T blockDeviceMapping(List<BlockDeviceMapping> blockDeviceMapping)
-
metadata
public T metadata(Map<String,String> metadata)
- See Also:
Image.getMetadata()
-
build
public Image build()
- Overrides:
build
in classResource.Builder<T extends Image.Builder<T>>
-
-