@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to include in another request to get the next page of items.
|
List<Snapshot> |
getSnapshots()
Information about the snapshots.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
void |
setSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSnapshotsResult |
withNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
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 token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
null
when there are no more items to return.public DescribeSnapshotsResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsResult clone()