public class DescribeSnapshotsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a DescribeSnapshots action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
marker
An optional marker returned from a prior request.
|
private SdkInternalList<Snapshot> |
snapshots
A list of snapshots.
|
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMarker()
An optional marker returned from a prior request.
|
java.util.List<Snapshot> |
getSnapshots()
A list of snapshots.
|
int |
hashCode() |
void |
setMarker(java.lang.String marker)
An optional marker returned from a prior request.
|
void |
setSnapshots(java.util.Collection<Snapshot> snapshots)
A list of snapshots.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsResult |
withMarker(java.lang.String marker)
An optional marker returned from a prior request.
|
DescribeSnapshotsResult |
withSnapshots(java.util.Collection<Snapshot> snapshots)
A list of snapshots.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
A list of snapshots.
|
private java.lang.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.
private SdkInternalList<Snapshot> snapshots
A list of snapshots. Each item in the list contains detailed information about one snapshot.
public void setMarker(java.lang.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.
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.public java.lang.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.
public DescribeSnapshotsResult withMarker(java.lang.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.
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.public java.util.List<Snapshot> getSnapshots()
A list of snapshots. Each item in the list contains detailed information about one snapshot.
public void setSnapshots(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeSnapshotsResult clone()
clone
in class java.lang.Object