Class Volume.Builder
- java.lang.Object
-
- org.jclouds.openstack.cinder.v1.domain.Volume.Builder
-
-
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
tenantId
protected String
volumeType
protected String
zone
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Volume.Builder
attachments(Set<VolumeAttachment> attachments)
Volume.Builder
attachments(VolumeAttachment... in)
Volume
build()
Volume.Builder
created(Date created)
Volume.Builder
description(String description)
Volume.Builder
fromVolume(Volume in)
Volume.Builder
id(String id)
Volume.Builder
metadata(Map<String,String> metadata)
Volume.Builder
name(String name)
protected Volume.Builder
self()
Volume.Builder
size(int size)
Volume.Builder
snapshotId(String snapshotId)
Volume.Builder
status(Volume.Status status)
Volume.Builder
tenantId(String tenantId)
Volume.Builder
volumeType(String volumeType)
Volume.Builder
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
-
tenantId
protected String tenantId
-
-
Method Detail
-
id
public Volume.Builder id(String id)
- See Also:
Volume.getId()
-
status
public Volume.Builder status(Volume.Status status)
- See Also:
Volume.getStatus()
-
size
public Volume.Builder size(int size)
- See Also:
Volume.getSize()
-
zone
public Volume.Builder zone(String zone)
- See Also:
Volume.getZone()
-
created
public Volume.Builder created(Date created)
- See Also:
Volume.getCreated()
-
attachments
public Volume.Builder attachments(Set<VolumeAttachment> attachments)
- See Also:
Volume.getAttachments()
-
attachments
public Volume.Builder attachments(VolumeAttachment... in)
-
volumeType
public Volume.Builder volumeType(String volumeType)
- See Also:
Volume.getVolumeType()
-
snapshotId
public Volume.Builder snapshotId(String snapshotId)
- See Also:
Volume.getSnapshotId()
-
name
public Volume.Builder name(String name)
- See Also:
Volume.getName()
-
description
public Volume.Builder description(String description)
- See Also:
Volume.getDescription()
-
metadata
public Volume.Builder metadata(Map<String,String> metadata)
- See Also:
Volume.getMetadata()
-
tenantId
public Volume.Builder tenantId(String tenantId)
- See Also:
Volume.getTenantId()
-
build
public Volume build()
-
fromVolume
public Volume.Builder fromVolume(Volume in)
-
self
protected Volume.Builder self()
-
-