org.jclouds.openstack.nova.v2_0.domain
Class Volume.Builder<T extends Volume.Builder<T>>

java.lang.Object
  extended by 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


Field Summary
protected  Set<VolumeAttachment> attachments
           
protected  Date created
           
protected  String description
           
protected  String id
           
protected  Map<String,String> metadata
           
protected  String name
           
protected  int size
           
protected  String snapshotId
           
protected  Volume.Status status
           
protected  String volumeType
           
protected  String zone
           
 
Constructor Summary
Volume.Builder()
           
 
Method Summary
 T attachments(Set<VolumeAttachment> attachments)
           
 T attachments(VolumeAttachment... in)
           
 Volume build()
           
 T created(Date created)
           
 T description(String description)
           
 T fromVolume(Volume in)
           
 T id(String id)
           
 T metadata(Map<String,String> metadata)
           
 T name(String name)
           
protected abstract  T self()
           
 T size(int size)
           
 T snapshotId(String snapshotId)
           
 T status(Volume.Status status)
           
 T volumeType(String volumeType)
           
 T zone(String zone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Volume.Builder

public Volume.Builder()
Method Detail

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.