@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()
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
List<Snapshot> |
getSnapshots()
A list of snapshots.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
void |
setSnapshots(Collection<Snapshot> snapshots)
A list of snapshots.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSnapshotsResult |
withNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
DescribeSnapshotsResult |
withSnapshots(Collection<Snapshot> snapshots)
A list of snapshots.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
A list of snapshots.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
nextToken
- An optional argument to pass in case the total number of records exceeds the value of MaxResults. If
nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page. Keep all
other arguments unchanged.public String getNextToken()
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
public DescribeSnapshotsResult withNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
nextToken
- An optional argument to pass in case the total number of records exceeds the value of MaxResults. If
nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page. Keep all
other arguments unchanged.public List<Snapshot> getSnapshots()
A list of snapshots. Each item in the list contains detailed information about one snapshot.
public void setSnapshots(Collection<Snapshot> snapshots)
A list of snapshots. Each item in the list contains detailed information about one snapshot.
snapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.public DescribeSnapshotsResult withSnapshots(Snapshot... snapshots)
A list of snapshots. Each item in the list contains detailed information about one snapshot.
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 snapshots. Each item in the list contains detailed information about one snapshot.public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
A list of snapshots. Each item in the list contains detailed information about one snapshot.
snapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsResult clone()