mirror of https://github.com/apache/jclouds.git
Nova VolumeClient: improving javadocs
This commit is contained in:
parent
01c6a48786
commit
1dfcc6cde5
|
@ -84,56 +84,67 @@ public class Volume {
|
||||||
private String description;
|
private String description;
|
||||||
private Map<String, String> metadata = Maps.newHashMap();
|
private Map<String, String> metadata = Maps.newHashMap();
|
||||||
|
|
||||||
|
/** @see Volume#getId() */
|
||||||
public T id(String id) {
|
public T id(String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getStatus() */
|
||||||
public T status(Status status) {
|
public T status(Status status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getSize() */
|
||||||
public T size(int size) {
|
public T size(int size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getZone() */
|
||||||
public T zone(String zone) {
|
public T zone(String zone) {
|
||||||
this.zone = zone;
|
this.zone = zone;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getCreated() */
|
||||||
public T created(Date created) {
|
public T created(Date created) {
|
||||||
this.created = created;
|
this.created = created;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getAttachments() */
|
||||||
public T attachments(Set<VolumeAttachment> attachments) {
|
public T attachments(Set<VolumeAttachment> attachments) {
|
||||||
this.attachments = attachments;
|
this.attachments = attachments;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getVolumeType() */
|
||||||
public T volumeType(String volumeType) {
|
public T volumeType(String volumeType) {
|
||||||
this.volumeType = volumeType;
|
this.volumeType = volumeType;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getSnapshotId() */
|
||||||
public T snapshotId(String snapshotId) {
|
public T snapshotId(String snapshotId) {
|
||||||
this.snapshotId = snapshotId;
|
this.snapshotId = snapshotId;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getMetadata() */
|
||||||
public T metadata(Map<String, String> metadata) {
|
public T metadata(Map<String, String> metadata) {
|
||||||
this.metadata = metadata;
|
this.metadata = metadata;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getName() */
|
||||||
public T name(String name) {
|
public T name(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see Volume#getDescription() */
|
||||||
public T description(String description) {
|
public T description(String description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
return self();
|
return self();
|
||||||
|
@ -247,9 +258,6 @@ public class Volume {
|
||||||
return this.volumeType;
|
return this.volumeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the snapshot id this volume is associated with.
|
|
||||||
*/
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public String getSnapshotId() {
|
public String getSnapshotId() {
|
||||||
return this.snapshotId;
|
return this.snapshotId;
|
||||||
|
|
|
@ -46,21 +46,25 @@ public class VolumeAttachment {
|
||||||
private String serverId;
|
private String serverId;
|
||||||
private String device;
|
private String device;
|
||||||
|
|
||||||
|
/** @see VolumeAttachment#getId() */
|
||||||
public T id(String id) {
|
public T id(String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeAttachment#getVolumeId() */
|
||||||
public T volumeId(String volumeId) {
|
public T volumeId(String volumeId) {
|
||||||
this.volumeId = volumeId;
|
this.volumeId = volumeId;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeAttachment#getServerId() */
|
||||||
public T serverId(String serverId) {
|
public T serverId(String serverId) {
|
||||||
this.serverId = serverId;
|
this.serverId = serverId;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeAttachment#getDevice() */
|
||||||
public T device(String device) {
|
public T device(String device) {
|
||||||
this.device = device;
|
this.device = device;
|
||||||
return self();
|
return self();
|
||||||
|
|
|
@ -52,36 +52,43 @@ public class VolumeSnapshot {
|
||||||
private String name;
|
private String name;
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getId() */
|
||||||
public T id(String id) {
|
public T id(String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getVolumeId() */
|
||||||
public T volumeId(String volumeId) {
|
public T volumeId(String volumeId) {
|
||||||
this.volumeId = volumeId;
|
this.volumeId = volumeId;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getStatus() */
|
||||||
public T status(Volume.Status status) {
|
public T status(Volume.Status status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getSize() */
|
||||||
public T size(int size) {
|
public T size(int size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getCreated() */
|
||||||
public T created(Date created) {
|
public T created(Date created) {
|
||||||
this.created = created;
|
this.created = created;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getName() */
|
||||||
public T name(String name) {
|
public T name(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @see VolumeSnapshot#getDescription() */
|
||||||
public T description(String description) {
|
public T description(String description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
return self();
|
return self();
|
||||||
|
|
Loading…
Reference in New Issue