@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the output of a DescribeSnapshots
operation.
Constructor and Description |
---|
DescribeSnapshotsResult() |
Modifier and Type | Method and 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.
|
DescribeSnapshotsResult |
withMarker(String marker)
An optional marker returned from a prior request.
|
DescribeSnapshotsResult |
withSnapshots(Collection<Snapshot> snapshots)
A list of snapshots.
|
DescribeSnapshotsResult |
withSnapshots(Snapshot... snapshots)
A list of snapshots.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setMarker(String marker)
An optional marker returned from a prior request. Use this marker for pagination of results from this operation.
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
operation. If this parameter is specified, the response includes only records beyond the marker, up to the
value specified by MaxRecords
.public String getMarker()
An optional marker returned from a prior request. Use this marker for pagination of results from this operation.
If this parameter is specified, the response includes only records beyond the marker, up to the value specified
by MaxRecords
.
MaxRecords
.public DescribeSnapshotsResult withMarker(String marker)
An optional marker returned from a prior request. Use this marker for pagination of results from this operation.
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
operation. If this parameter is specified, the response includes only records beyond the marker, up to the
value specified by MaxRecords
.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()