Class Volume.Builder<T extends Volume.Builder<T>>
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.Volume.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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()
-
-