org.jclouds.openstack.nova.v2_0.domain
Class Volume.Builder<T extends Volume.Builder<T>>
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.Volume.Builder<T>
- Enclosing class:
- Volume
public abstract static class Volume.Builder<T extends Volume.Builder<T>>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
status
protected Volume.Status status
size
protected int size
zone
protected String zone
created
protected Date created
attachments
protected Set<VolumeAttachment> attachments
volumeType
protected String volumeType
snapshotId
protected String snapshotId
name
protected String name
description
protected String description
metadata
protected Map<String,String> metadata
Volume.Builder
public Volume.Builder()
self
protected abstract T self()
id
public T id(String id)
- See Also:
Volume.getId()
status
public T status(Volume.Status status)
- See Also:
Volume.getStatus()
size
public T size(int size)
- See Also:
Volume.getSize()
zone
public T zone(String zone)
- See Also:
Volume.getZone()
created
public T created(Date created)
- See Also:
Volume.getCreated()
attachments
public T attachments(Set<VolumeAttachment> attachments)
- See Also:
Volume.getAttachments()
attachments
public T attachments(VolumeAttachment... in)
volumeType
public T volumeType(String volumeType)
- See Also:
Volume.getVolumeType()
snapshotId
public T snapshotId(String snapshotId)
- See Also:
Volume.getSnapshotId()
name
public T name(String name)
- See Also:
Volume.getName()
description
public T description(String description)
- See Also:
Volume.getDescription()
metadata
public T metadata(Map<String,String> metadata)
- See Also:
Volume.getMetadata()
build
public Volume build()
fromVolume
public T fromVolume(Volume in)
Copyright © 2009-2012 jclouds. All Rights Reserved.