public class DiskImageVolumeDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a disk image volume.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
The volume identifier.
|
private java.lang.Long |
size
The size of the volume, in GiB.
|
Constructor and Description |
---|
DiskImageVolumeDescription() |
Modifier and Type | Method and Description |
---|---|
DiskImageVolumeDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
The volume identifier.
|
java.lang.Long |
getSize()
The size of the volume, in GiB.
|
int |
hashCode() |
void |
setId(java.lang.String id)
The volume identifier.
|
void |
setSize(java.lang.Long size)
The size of the volume, in GiB.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DiskImageVolumeDescription |
withId(java.lang.String id)
The volume identifier.
|
DiskImageVolumeDescription |
withSize(java.lang.Long size)
The size of the volume, in GiB.
|
private java.lang.Long size
The size of the volume, in GiB.
private java.lang.String id
The volume identifier.
public void setSize(java.lang.Long size)
The size of the volume, in GiB.
size
- The size of the volume, in GiB.public java.lang.Long getSize()
The size of the volume, in GiB.
public DiskImageVolumeDescription withSize(java.lang.Long size)
The size of the volume, in GiB.
size
- The size of the volume, in GiB.public void setId(java.lang.String id)
The volume identifier.
id
- The volume identifier.public java.lang.String getId()
The volume identifier.
public DiskImageVolumeDescription withId(java.lang.String id)
The volume identifier.
id
- The volume identifier.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DiskImageVolumeDescription clone()
clone
in class java.lang.Object