Package com.amazonaws.services.ec2.model
Class DiskImageVolumeDescription
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DiskImageVolumeDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DiskImageVolumeDescription extends Object implements Serializable, Cloneable
Describes a disk image volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiskImageVolumeDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskImageVolumeDescription
clone()
boolean
equals(Object obj)
String
getId()
The volume identifier.Long
getSize()
The size of the volume, in GiB.int
hashCode()
void
setId(String id)
The volume identifier.void
setSize(Long size)
The size of the volume, in GiB.String
toString()
Returns a string representation of this object; useful for testing and debugging.DiskImageVolumeDescription
withId(String id)
The volume identifier.DiskImageVolumeDescription
withSize(Long size)
The size of the volume, in GiB.
-
-
-
Method Detail
-
setSize
public void setSize(Long size)
The size of the volume, in GiB.
- Parameters:
size
- The size of the volume, in GiB.
-
getSize
public Long getSize()
The size of the volume, in GiB.
- Returns:
- The size of the volume, in GiB.
-
withSize
public DiskImageVolumeDescription withSize(Long size)
The size of the volume, in GiB.
- Parameters:
size
- The size of the volume, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setId
public void setId(String id)
The volume identifier.
- Parameters:
id
- The volume identifier.
-
getId
public String getId()
The volume identifier.
- Returns:
- The volume identifier.
-
withId
public DiskImageVolumeDescription withId(String id)
The volume identifier.
- Parameters:
id
- The volume identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DiskImageVolumeDescription clone()
-
-