Class DescribeSnapshotsResult
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.DescribeSnapshotsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeSnapshotsResult extends Object implements Serializable, Cloneable
Represents the output of a DescribeSnapshots action.
- 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
getMarker()
An optional marker returned from a prior request.List<Snapshot>
getSnapshots()
A list of snapshots.int
hashCode()
void
setMarker(String marker)
An optional marker returned from a prior request.void
setSnapshots(Collection<Snapshot> snapshots)
A list of snapshots.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeSnapshotsResult
withMarker(String marker)
An optional marker returned from a prior request.DescribeSnapshotsResult
withSnapshots(Snapshot... snapshots)
A list of snapshots.DescribeSnapshotsResult
withSnapshots(Collection<Snapshot> snapshots)
A list of snapshots.
-
-
-
Method Detail
-
setMarker
public void setMarker(String marker)
An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
- Parameters:
marker
- An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
getMarker
public String getMarker()
An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
- Returns:
- An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
withMarker
public DescribeSnapshotsResult withMarker(String marker)
An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
- Parameters:
marker
- An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSnapshots
public List<Snapshot> getSnapshots()
A list of snapshots. Each item in the list contains detailed information about one snapshot.
- Returns:
- A list of snapshots. Each item in the list contains detailed information about one snapshot.
-
setSnapshots
public void setSnapshots(Collection<Snapshot> snapshots)
A list of snapshots. Each item in the list contains detailed information about one snapshot.
- Parameters:
snapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.
-
withSnapshots
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)
orwithSnapshots(java.util.Collection)
if you want to override the existing values.- Parameters:
snapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSnapshots
public DescribeSnapshotsResult withSnapshots(Collection<Snapshot> snapshots)
A list of snapshots. Each item in the list contains detailed information about one snapshot.
- Parameters:
snapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.- 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()
-
-