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 G Suite 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.Flags
Constructor and Description |
---|
Hold() |
Modifier and Type | Method and Description |
---|---|
Hold |
clone() |
java.util.List<HeldAccount> |
getAccounts()
If set, the hold applies to the enumerated accounts and org_unit must be empty.
|
java.lang.String |
getCorpus()
The corpus to be searched.
|
java.lang.String |
getHoldId()
The unique immutable ID of the hold.
|
java.lang.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()
The corpus-specific query.
|
java.lang.String |
getUpdateTime()
The last time this hold was modified.
|
Hold |
set(java.lang.String fieldName,
java.lang.Object value) |
Hold |
setAccounts(java.util.List<HeldAccount> accounts)
If set, the hold applies to the enumerated accounts and org_unit must be empty.
|
Hold |
setCorpus(java.lang.String corpus)
The corpus to be searched.
|
Hold |
setHoldId(java.lang.String holdId)
The unique immutable ID of the hold.
|
Hold |
setName(java.lang.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)
The corpus-specific query.
|
Hold |
setUpdateTime(java.lang.String updateTime)
The last time this hold was modified.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<HeldAccount> getAccounts()
null
for nonepublic Hold setAccounts(java.util.List<HeldAccount> accounts)
accounts
- accounts or null
for nonepublic java.lang.String getCorpus()
null
for nonepublic Hold setCorpus(java.lang.String corpus)
corpus
- corpus or null
for nonepublic java.lang.String getHoldId()
null
for nonepublic Hold setHoldId(java.lang.String holdId)
holdId
- holdId or null
for nonepublic java.lang.String getName()
null
for nonepublic Hold setName(java.lang.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 java.lang.String getUpdateTime()
null
for nonepublic Hold setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic Hold set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Hold clone()
clone
in class com.google.api.client.json.GenericJson