public class DescribeSnapshotsResult extends Object implements Serializable, Cloneable
Contains the results of the DescribeSnapshots operation.
| Constructor and Description |
|---|
DescribeSnapshotsResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If not null, more results are available.
|
List<Snapshot> |
getSnapshots()
The list of Snapshot objects that were retrieved.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
If not null, more results are available.
|
void |
setSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsResult |
withNextToken(String nextToken)
If not null, more results are available.
|
DescribeSnapshotsResult |
withSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
The list of Snapshot objects that were retrieved.
|
public List<Snapshot> getSnapshots()
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public void setSnapshots(Collection<Snapshot> snapshots)
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
snapshots - The list of Snapshot objects that were retrieved. It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public DescribeSnapshotsResult withSnapshots(Snapshot... snapshots)
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
NOTE: This method appends the values to the existing list (if
any). Use setSnapshots(java.util.Collection) or withSnapshots(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.
snapshots - The list of Snapshot objects that were retrieved. It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
Returns a reference to this object so that method calls can be chained together.
snapshots - The list of Snapshot objects that were retrieved. It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public String getNextToken()
public void setNextToken(String nextToken)
nextToken - If not null, more results are available. Pass this value in the
NextToken member of a subsequent call to
DescribeSnapshots.public DescribeSnapshotsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - If not null, more results are available. Pass this value in the
NextToken member of a subsequent call to
DescribeSnapshots.public String toString()
toString in class ObjectObject.toString()public DescribeSnapshotsResult clone()
Copyright © 2015. All rights reserved.