public class DescribeVolumesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeVolumes.
Constructor and Description |
---|
DescribeVolumesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeVolumesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The
NextToken value to include in a future
DescribeVolumes request. |
List<Volume> |
getVolumes()
Information about the volumes.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The
NextToken value to include in a future
DescribeVolumes request. |
void |
setVolumes(Collection<Volume> volumes)
Information about the volumes.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVolumesResult |
withNextToken(String nextToken)
The
NextToken value to include in a future
DescribeVolumes request. |
DescribeVolumesResult |
withVolumes(Collection<Volume> volumes)
Information about the volumes.
|
DescribeVolumesResult |
withVolumes(Volume... volumes)
Information about the volumes.
|
public List<Volume> getVolumes()
Information about the volumes.
public void setVolumes(Collection<Volume> volumes)
Information about the volumes.
volumes
- Information about the volumes.public DescribeVolumesResult withVolumes(Volume... volumes)
Information about the volumes.
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
- Information about the volumes.public DescribeVolumesResult withVolumes(Collection<Volume> volumes)
Information about the volumes.
volumes
- Information about the volumes.public void setNextToken(String nextToken)
The NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed MaxResults
, this
value can be used to retrieve the next page of results. This value is
null
when there are no more results to return.
nextToken
- The NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.public String getNextToken()
The NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed MaxResults
, this
value can be used to retrieve the next page of results. This value is
null
when there are no more results to return.
NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.public DescribeVolumesResult withNextToken(String nextToken)
The NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed MaxResults
, this
value can be used to retrieve the next page of results. This value is
null
when there are no more results to return.
nextToken
- The NextToken
value to include in a future
DescribeVolumes
request. When the results of a
DescribeVolumes
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeVolumesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.