|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,V> java.util.LinkedHashMap<java.lang.String,java.lang.Object> com.splunk.Args com.splunk.CollectionArgs
public class CollectionArgs
The CollectionArgs
class contains arguments for retrieving and
listing entities from a collection, such as the number of entities to return
and how to sort them.
Nested Class Summary | |
---|---|
static class |
CollectionArgs.SortDirection
Indicates whether to sort entries in ascending or descending order. |
static class |
CollectionArgs.SortMode
Indicates the sorting mode for entries. |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
CollectionArgs()
Class constructor. |
Method Summary | |
---|---|
void |
setApp(java.lang.String app)
Sets the app context in which to list the collection. |
void |
setCount(int count)
Sets the maximum number of entries to return. |
void |
setOffset(int offset)
Sets the index of the first entry to return. |
void |
setOwner(java.lang.String owner)
Sets the owner context in which to list the collection. |
void |
setSearch(java.lang.String search)
Sets a search query to filter the response. |
void |
setSharing(java.lang.String sharing)
Sets the sharing context in which to list the collection. |
void |
setSortDirection(CollectionArgs.SortDirection sortDirection)
Sets the direction to sort entries. |
void |
setSortKey(java.lang.String sortKey)
Sets the field to use for sorting. |
void |
setSortMode(CollectionArgs.SortMode sortMode)
Sets the mode to use for sorting. |
Methods inherited from class com.splunk.Args |
---|
add, create, create, create, encode, encode, encode, get |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public CollectionArgs()
Method Detail |
---|
public void setApp(java.lang.String app)
app
- The app context in which to list the collection. A null
value indicates no app context, and a value of "-"
indicates an app wildcard.public void setOwner(java.lang.String owner)
owner
- The owner context in which to list the collection. A value of "-"
indicates a wildcard, and a null
value indicates no owner context.public void setSharing(java.lang.String sharing)
sharing
- The sharing context in which to list the collection. Valid values are "user", "app", "global", and "system".public void setCount(int count)
count
- The maximum number of entries to return. To return all entries, specify 0.public void setOffset(int offset)
offset
- The index of the first entry to return.public void setSearch(java.lang.String search)
search
- A search query to filter the response.public void setSortDirection(CollectionArgs.SortDirection sortDirection)
sortDirection
- The sorting order--ascending or descending.public void setSortKey(java.lang.String sortKey)
sortKey
- The field to sort by.public void setSortMode(CollectionArgs.SortMode sortMode)
sortMode
- The collating sequence for sorting entries.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |