public class DescribeSnapshotsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the results of the DescribeSnapshots operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
If not null, more results are available.
|
private SdkInternalList<Snapshot> |
snapshots
The list of Snapshot objects that were retrieved.
|
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
If not null, more results are available.
|
java.util.List<Snapshot> |
getSnapshots()
The list of Snapshot objects that were retrieved.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
If not null, more results are available.
|
void |
setSnapshots(java.util.Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsResult |
withNextToken(java.lang.String nextToken)
If not null, more results are available.
|
DescribeSnapshotsResult |
withSnapshots(java.util.Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
The list of Snapshot objects that were retrieved.
|
private SdkInternalList<Snapshot> 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.
private java.lang.String nextToken
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
public java.util.List<Snapshot> getSnapshots()
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.
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(java.util.Collection<Snapshot> 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.
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)
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.
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.
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(java.util.Collection<Snapshot> 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.
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 void setNextToken(java.lang.String nextToken)
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
nextToken
- If not null, more results are available. Pass this value in the
NextToken member of a subsequent call to
DescribeSnapshots.public java.lang.String getNextToken()
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
public DescribeSnapshotsResult withNextToken(java.lang.String nextToken)
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
nextToken
- If not null, more results are available. Pass this value in the
NextToken member of a subsequent call to
DescribeSnapshots.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 DescribeSnapshotsResult clone()
clone
in class java.lang.Object