@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> 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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public 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(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(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.