Class DescribeSnapshotsResult
- java.lang.Object
-
- com.amazonaws.services.directory.model.DescribeSnapshotsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeSnapshotsResult extends Object implements Serializable, Cloneable
Contains the results of the DescribeSnapshots operation.
- 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()
If not null, more results are available.List<Snapshot>
getSnapshots()
The list of Snapshot objects that were retrieved.int
hashCode()
void
setNextToken(String nextToken)
If not null, more results are available.void
setSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeSnapshotsResult
withNextToken(String nextToken)
If not null, more results are available.DescribeSnapshotsResult
withSnapshots(Snapshot... snapshots)
The list of Snapshot objects that were retrieved.DescribeSnapshotsResult
withSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
-
-
-
Method Detail
-
getSnapshots
public List<Snapshot> getSnapshots()
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Returns:
- The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
-
setSnapshots
public void setSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Parameters:
snapshots
- The list of Snapshot objects that were retrieved.It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
-
withSnapshots
public DescribeSnapshotsResult withSnapshots(Snapshot... snapshots)
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
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
- The list of Snapshot objects that were retrieved.It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSnapshots
public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Parameters:
snapshots
- The list of Snapshot objects that were retrieved.It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
- Parameters:
nextToken
- If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
-
getNextToken
public String getNextToken()
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
- Returns:
- If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
-
withNextToken
public DescribeSnapshotsResult withNextToken(String nextToken)
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
- Parameters:
nextToken
- If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.- 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()
-
-