public class DescribeVolumesResult extends Object implements Serializable, Cloneable
Contains the response to a DescribeVolumes request.
| Constructor and Description |
|---|
DescribeVolumesResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeVolumesResult |
clone() |
boolean |
equals(Object obj) |
List<Volume> |
getVolumes()
An array of volume IDs.
|
int |
hashCode() |
void |
setVolumes(Collection<Volume> volumes)
An array of volume IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVolumesResult |
withVolumes(Collection<Volume> volumes)
An array of volume IDs.
|
DescribeVolumesResult |
withVolumes(Volume... volumes)
An array of volume IDs.
|
public void setVolumes(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(Collection<Volume> volumes)
An array of volume IDs.
volumes - An array of volume IDs.public String toString()
toString in class ObjectObject.toString()public DescribeVolumesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.