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>attachmentsprotected Datecreatedprotected Stringdescriptionprotected Stringidprotected Map<String,String>metadataprotected Stringnameprotected intsizeprotected StringsnapshotIdprotected Volume.Statusstatusprotected StringvolumeTypeprotected Stringzone
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tattachments(Set<VolumeAttachment> attachments)Tattachments(VolumeAttachment... in)Volumebuild()Tcreated(Date created)Tdescription(String description)TfromVolume(Volume in)Tid(String id)Tmetadata(Map<String,String> metadata)Tname(String name)protected abstract Tself()Tsize(int size)TsnapshotId(String snapshotId)Tstatus(Volume.Status status)TvolumeType(String volumeType)Tzone(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()
-
-