public class DescribeVolumesResult
extends java.lang.Object
implements java.io.Serializable
Contains the output of DescribeVolumes.
Constructor and Description |
---|
DescribeVolumesResult() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.util.List<Volume> getVolumes()
public void setVolumes(java.util.Collection<Volume> volumes)
volumes
- Information about the volumes.public DescribeVolumesResult withVolumes(Volume... volumes)
Returns a reference to this object so that method calls can be chained together.
volumes
- Information about the volumes.public DescribeVolumesResult withVolumes(java.util.Collection<Volume> volumes)
Returns a reference to this object so that method calls can be chained together.
volumes
- Information about the volumes.public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.