public class DescribeSnapshotsResult
extends java.lang.Object
implements java.io.Serializable
Contains the output of DescribeSnapshots.
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.util.List<Snapshot> getSnapshots()
public void setSnapshots(java.util.Collection<Snapshot> snapshots)
snapshots
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(Snapshot... snapshots)
Returns a reference to this object so that method calls can be chained together.
snapshots
- Information about the snapshots.public DescribeSnapshotsResult withSnapshots(java.util.Collection<Snapshot> snapshots)
Returns a reference to this object so that method calls can be chained together.
snapshots
- Information about the snapshots.public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.