public class DescribeVolumesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeVolumes.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
The
NextToken value to include in a future
DescribeVolumes request. |
private SdkInternalList<Volume> |
volumes
Information about the volumes.
|
Constructor and Description |
---|
DescribeVolumesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeVolumesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
The
NextToken value to include in a future
DescribeVolumes request. |
java.util.List<Volume> |
getVolumes()
Information about the volumes.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeVolumes request. |
void |
setVolumes(java.util.Collection<Volume> volumes)
Information about the volumes.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVolumesResult |
withNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeVolumes request. |
DescribeVolumesResult |
withVolumes(java.util.Collection<Volume> volumes)
Information about the volumes.
|
DescribeVolumesResult |
withVolumes(Volume... volumes)
Information about the volumes.
|
private SdkInternalList<Volume> volumes
Information about the volumes.
private java.lang.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.
public java.util.List<Volume> getVolumes()
Information about the volumes.
public void setVolumes(java.util.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(java.util.Collection<Volume> volumes)
Information about the volumes.
volumes
- Information about the volumes.public void setNextToken(java.lang.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 java.lang.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(java.lang.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 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