public class DescribeSnapshotsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeSnapshots.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
The
NextToken value to include in a future
DescribeSnapshots request. |
private SdkInternalList<Snapshot> |
snapshots
Information about the snapshots.
|
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
The
NextToken value to include in a future
DescribeSnapshots request. |
java.util.List<Snapshot> |
getSnapshots()
Information about the snapshots.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeSnapshots request. |
void |
setSnapshots(java.util.Collection<Snapshot> snapshots)
Information about the snapshots.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsResult |
withNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeSnapshots request. |
DescribeSnapshotsResult |
withSnapshots(java.util.Collection<Snapshot> snapshots)
Information about the snapshots.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
Information about the snapshots.
|
private SdkInternalList<Snapshot> snapshots
Information about the snapshots.
private java.lang.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.
public java.util.List<Snapshot> getSnapshots()
Information about the snapshots.
public void setSnapshots(java.util.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(java.util.Collection<Snapshot> snapshots)
Information about the snapshots.
snapshots
- Information about the snapshots.public void setNextToken(java.lang.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 java.lang.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(java.lang.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 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