public class DescribeVolumesResult extends Object implements Serializable, Cloneable
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()
public void setVolumes(Collection<Volume> volumes)
volumes
- Information about the volumes.public DescribeVolumesResult withVolumes(Volume... 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.
Returns a reference to this object so that method calls can be chained together.
volumes
- Information about the volumes.public DescribeVolumesResult withVolumes(Collection<Volume> volumes)
Returns a reference to this object so that method calls can be chained together.
volumes
- Information about the volumes.public String getNextToken()
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 void setNextToken(String nextToken)
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 DescribeVolumesResult withNextToken(String nextToken)
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.
Returns a reference to this object so that method calls can be chained together.
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 © 2015. All rights reserved.