public final class Hold
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Vault API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Hold() |
| Modifier and Type | Method and Description |
|---|---|
Hold |
clone() |
List<HeldAccount> |
getAccounts()
If set, the hold applies to the specified accounts and **orgUnit** must be empty.
|
String |
getCorpus()
The service to be searched.
|
String |
getHoldId()
The unique immutable ID of the hold.
|
String |
getName()
The name of the hold.
|
HeldOrgUnit |
getOrgUnit()
If set, the hold applies to all members of the organizational unit and **accounts** must be
empty.
|
CorpusQuery |
getQuery()
Service-specific options.
|
String |
getUpdateTime()
The last time this hold was modified.
|
Hold |
set(String fieldName,
Object value) |
Hold |
setAccounts(List<HeldAccount> accounts)
If set, the hold applies to the specified accounts and **orgUnit** must be empty.
|
Hold |
setCorpus(String corpus)
The service to be searched.
|
Hold |
setHoldId(String holdId)
The unique immutable ID of the hold.
|
Hold |
setName(String name)
The name of the hold.
|
Hold |
setOrgUnit(HeldOrgUnit orgUnit)
If set, the hold applies to all members of the organizational unit and **accounts** must be
empty.
|
Hold |
setQuery(CorpusQuery query)
Service-specific options.
|
Hold |
setUpdateTime(String updateTime)
The last time this hold was modified.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<HeldAccount> getAccounts()
null for nonepublic Hold setAccounts(List<HeldAccount> accounts)
accounts - accounts or null for nonepublic String getCorpus()
null for nonepublic Hold setCorpus(String corpus)
corpus - corpus or null for nonepublic String getHoldId()
null for nonepublic Hold setHoldId(String holdId)
holdId - holdId or null for nonepublic String getName()
null for nonepublic Hold setName(String name)
name - name or null for nonepublic HeldOrgUnit getOrgUnit()
null for nonepublic Hold setOrgUnit(HeldOrgUnit orgUnit)
orgUnit - orgUnit or null for nonepublic CorpusQuery getQuery()
null for nonepublic Hold setQuery(CorpusQuery query)
query - query or null for nonepublic String getUpdateTime()
null for nonepublic Hold setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic Hold set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Hold clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.