Class DescribeSnapshotsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeSnapshotsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeSnapshotsResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSnapshots.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeSnapshotsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeSnapshotsResult
clone()
boolean
equals(Object obj)
String
getNextToken()
TheNextToken
value to include in a futureDescribeSnapshots
request.List<Snapshot>
getSnapshots()
Information about the snapshots.int
hashCode()
void
setNextToken(String nextToken)
TheNextToken
value to include in a futureDescribeSnapshots
request.void
setSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeSnapshotsResult
withNextToken(String nextToken)
TheNextToken
value to include in a futureDescribeSnapshots
request.DescribeSnapshotsResult
withSnapshots(Snapshot... snapshots)
Information about the snapshots.DescribeSnapshotsResult
withSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
-
-
-
Method Detail
-
getSnapshots
public List<Snapshot> getSnapshots()
Information about the snapshots.
- Returns:
- Information about the snapshots.
-
setSnapshots
public void setSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
- Parameters:
snapshots
- Information about the snapshots.
-
withSnapshots
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)
orwithSnapshots(java.util.Collection)
if you want to override the existing values.- Parameters:
snapshots
- Information about the snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSnapshots
public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
Information about the snapshots.
- Parameters:
snapshots
- Information about the snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The
NextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Parameters:
nextToken
- TheNextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
-
getNextToken
public String getNextToken()
The
NextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Returns:
- The
NextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.
-
withNextToken
public DescribeSnapshotsResult withNextToken(String nextToken)
The
NextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Parameters:
nextToken
- TheNextToken
value to include in a futureDescribeSnapshots
request. When the results of aDescribeSnapshots
request exceedMaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeSnapshotsResult clone()
-
-