public final class ContentRestriction extends 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 Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ContentRestriction() |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
clone() |
Boolean |
getReadOnly()
Whether the content of the file is read-only.
|
String |
getReason()
Reason for why the content of the file is restricted.
|
User |
getRestrictingUser()
The user who set the content restriction.
|
DateTime |
getRestrictionTime()
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
String |
getType()
The type of the content restriction.
|
ContentRestriction |
set(String fieldName,
Object value) |
ContentRestriction |
setReadOnly(Boolean readOnly)
Whether the content of the file is read-only.
|
ContentRestriction |
setReason(String reason)
Reason for why the content of the file is restricted.
|
ContentRestriction |
setRestrictingUser(User restrictingUser)
The user who set the content restriction.
|
ContentRestriction |
setRestrictionTime(DateTime restrictionTime)
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
ContentRestriction |
setType(String type)
The type of the content restriction.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getReadOnly()
null
for nonepublic ContentRestriction setReadOnly(Boolean readOnly)
readOnly
- readOnly or null
for nonepublic String getReason()
null
for nonepublic ContentRestriction setReason(String reason)
reason
- reason or null
for nonepublic User getRestrictingUser()
null
for nonepublic ContentRestriction setRestrictingUser(User restrictingUser)
restrictingUser
- restrictingUser or null
for nonepublic DateTime getRestrictionTime()
null
for nonepublic ContentRestriction setRestrictionTime(DateTime restrictionTime)
restrictionTime
- restrictionTime or null
for nonepublic String getType()
null
for nonepublic ContentRestriction setType(String type)
type
- type or null
for nonepublic ContentRestriction set(String fieldName, Object value)
set
in class GenericJson
public ContentRestriction clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.