@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeVolumesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeVolumesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeVolumesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to include in another request to get the next page of items.
|
List<Volume> |
getVolumes()
Information about the volumes.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
void |
setVolumes(Collection<Volume> volumes)
Information about the volumes.
|
String |
toString()
Returns a string representation of this object.
|
DescribeVolumesResult |
withNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
DescribeVolumesResult |
withVolumes(Collection<Volume> volumes)
Information about the volumes.
|
DescribeVolumesResult |
withVolumes(Volume... volumes)
Information about the volumes.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
null
when there are no more items to return.public DescribeVolumesResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String toString()
toString
in class Object
Object.toString()
public DescribeVolumesResult clone()