@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of DescribeSnapshots.
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The
NextToken value to include in a future DescribeSnapshots request. |
List<Snapshot> |
getSnapshots()
Information about the snapshots.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The
NextToken value to include in a future DescribeSnapshots request. |
void |
setSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DescribeSnapshotsResult |
withNextToken(String nextToken)
The
NextToken value to include in a future DescribeSnapshots request. |
DescribeSnapshotsResult |
withSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
Information about the snapshots.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Snapshot> getSnapshots()
Information about the snapshots.
public void setSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
snapshots
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(Snapshot... snapshots)
Information about the snapshots.
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
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
snapshots
- Information about the snapshots.public void setNextToken(String nextToken)
The NextToken
value to include in a future DescribeSnapshots
request. When the results
of a DescribeSnapshots
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 DescribeSnapshots
request. When the
results of a DescribeSnapshots
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 String getNextToken()
The NextToken
value to include in a future DescribeSnapshots
request. When the results
of a DescribeSnapshots
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 DescribeSnapshots
request. When the
results of a DescribeSnapshots
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 DescribeSnapshotsResult withNextToken(String nextToken)
The NextToken
value to include in a future DescribeSnapshots
request. When the results
of a DescribeSnapshots
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 DescribeSnapshots
request. When the
results of a DescribeSnapshots
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 String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.