@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
ListSnapshotsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token that indicates the start of the next sequential page of results.
|
List<SnapshotSummary> |
getSnapshots()
A list of snapshot summaries.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token that indicates the start of the next sequential page of results.
|
void |
setSnapshots(Collection<SnapshotSummary> snapshots)
A list of snapshot summaries.
|
String |
toString()
Returns a string representation of this object.
|
ListSnapshotsResult |
withNextToken(String nextToken)
The token that indicates the start of the next sequential page of results.
|
ListSnapshotsResult |
withSnapshots(Collection<SnapshotSummary> snapshots)
A list of snapshot summaries.
|
ListSnapshotsResult |
withSnapshots(SnapshotSummary... snapshots)
A list of snapshot summaries.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token that indicates the start of the next sequential page of results.
Use this value when making the next call to this operation to continue where the last one finished.
nextToken
- The token that indicates the start of the next sequential page of results.
Use this value when making the next call to this operation to continue where the last one finished.
public String getNextToken()
The token that indicates the start of the next sequential page of results.
Use this value when making the next call to this operation to continue where the last one finished.
Use this value when making the next call to this operation to continue where the last one finished.
public ListSnapshotsResult withNextToken(String nextToken)
The token that indicates the start of the next sequential page of results.
Use this value when making the next call to this operation to continue where the last one finished.
nextToken
- The token that indicates the start of the next sequential page of results.
Use this value when making the next call to this operation to continue where the last one finished.
public List<SnapshotSummary> getSnapshots()
A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.
UpdateSnapshot
and GetSnapshot
operations.public void setSnapshots(Collection<SnapshotSummary> snapshots)
A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.
snapshots
- A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.public ListSnapshotsResult withSnapshots(SnapshotSummary... snapshots)
A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.
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
- A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.public ListSnapshotsResult withSnapshots(Collection<SnapshotSummary> snapshots)
A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.
snapshots
- A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot
and
GetSnapshot
operations.public String toString()
toString
in class Object
Object.toString()
public ListSnapshotsResult clone()