public class SnapshotQuery
extends java.lang.Object
Snapshot.getFields()
SnapshotManager.getSnapshots(SnapshotQuery)
Constructor and Description |
---|
SnapshotQuery() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getFields()
Returns a list of snapshot fields used to filter a snapshot.
|
java.util.Date |
getSearchCreatedDateFrom()
Returns query from creation date.
|
java.util.Date |
getSearchCreatedDateTo()
Returns query to creation date
|
java.util.Date |
getSearchExpiryDateFrom()
Returns query from expiry date.
|
java.util.Date |
getSearchExpiryDateTo()
Returns query to expiry date.
|
java.lang.String |
getSnapshotId()
Returns the snapshot id.
|
void |
setFields(java.util.Map<java.lang.String,java.lang.String> snapshotFields)
Sets additional information to filter snapshots.
|
void |
setSearchCreatedDateFrom(java.util.Date date)
Query snapshots created starting from this date, used in conjunction with
setSearchCreatedDateTo(Date) to search between two dates. |
void |
setSearchCreatedDateTo(java.util.Date date)
Query snapshots created up until this date, used in conjunction with
setSearchCreatedDateFrom(Date) to search between two dates. |
void |
setSearchExpiryDateFrom(java.util.Date date)
Query snapshots which expire starting from this date, used in conjunction with
setSearchExpiryDateTo(Date) to search between two dates. |
void |
setSearchExpiryDateTo(java.util.Date date)
Query snapshots which expire up until this date, used in conjunction with
setSearchExpiryDateFrom(Date) to search between two dates. |
void |
setSnapshotId(java.lang.String snapshotId)
Snapshot unique identifier
|
public void setSnapshotId(java.lang.String snapshotId)
public java.lang.String getSnapshotId()
null
if not required.
public void setSearchCreatedDateFrom(java.util.Date date)
setSearchCreatedDateTo(Date)
to search between two dates.
public void setSearchCreatedDateTo(java.util.Date date)
setSearchCreatedDateFrom(Date)
to search between two dates.
public java.util.Date getSearchCreatedDateFrom()
setSearchCreatedDateFrom(Date)
public java.util.Date getSearchCreatedDateTo()
setSearchCreatedDateTo(Date)
public void setSearchExpiryDateFrom(java.util.Date date)
setSearchExpiryDateTo(Date)
to search between two dates.
public void setSearchExpiryDateTo(java.util.Date date)
setSearchExpiryDateFrom(Date)
to search between two dates.
public java.util.Date getSearchExpiryDateFrom()
setSearchExpiryDateFrom(Date)
public java.util.Date getSearchExpiryDateTo()
setSearchExpiryDateTo(Date)
public void setFields(java.util.Map<java.lang.String,java.lang.String> snapshotFields)
snapshotFields
- - key value pairs used to filter a snapshot.SnapshotManager.getSnapshots(SnapshotQuery)
public java.util.Map<java.lang.String,java.lang.String> getFields()