public class DescribeVolumesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a DescribeVolumes
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Volume> |
volumes
An array of volume IDs.
|
Constructor and Description |
---|
DescribeVolumesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeVolumesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Volume> |
getVolumes()
An array of volume IDs.
|
int |
hashCode() |
void |
setVolumes(java.util.Collection<Volume> volumes)
An array of volume IDs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVolumesResult |
withVolumes(java.util.Collection<Volume> volumes)
An array of volume IDs.
|
DescribeVolumesResult |
withVolumes(Volume... volumes)
An array of volume IDs.
|
private SdkInternalList<Volume> volumes
An array of volume IDs.
public java.util.List<Volume> getVolumes()
An array of volume IDs.
public void setVolumes(java.util.Collection<Volume> volumes)
An array of volume IDs.
volumes
- An array of volume IDs.public DescribeVolumesResult withVolumes(Volume... volumes)
An array of volume IDs.
NOTE: This method appends the values to the existing list (if
any). Use setVolumes(java.util.Collection)
or
withVolumes(java.util.Collection)
if you want to override the
existing values.
volumes
- An array of volume IDs.public DescribeVolumesResult withVolumes(java.util.Collection<Volume> volumes)
An array of volume IDs.
volumes
- An array of volume IDs.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 DescribeVolumesResult clone()
clone
in class java.lang.Object