public class DescribeSnapshotsResult extends Object implements Serializable, Cloneable
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.
|
public List<Snapshot> getSnapshots()
public void setSnapshots(Collection<Snapshot> snapshots)
snapshots
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(Snapshot... 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.
Returns a reference to this object so that method calls can be chained together.
snapshots
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
Returns a reference to this object so that method calls can be chained together.
snapshots
- Information about the snapshots.public String getNextToken()
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 void setNextToken(String nextToken)
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 DescribeSnapshotsResult withNextToken(String nextToken)
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.
Returns a reference to this object so that method calls can be chained together.
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 © 2015. All rights reserved.