public final class AccessPolicy
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 YouTube Data 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 |
---|
AccessPolicy() |
Modifier and Type | Method and Description |
---|---|
AccessPolicy |
clone() |
java.lang.Boolean |
getAllowed()
The value of allowed indicates whether the access to the policy is allowed or denied by
default.
|
java.util.List<java.lang.String> |
getException()
A list of region codes that identify countries where the default policy do not apply.
|
AccessPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
AccessPolicy |
setAllowed(java.lang.Boolean allowed)
The value of allowed indicates whether the access to the policy is allowed or denied by
default.
|
AccessPolicy |
setException(java.util.List<java.lang.String> exception)
A list of region codes that identify countries where the default policy do not apply.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getAllowed()
null
for nonepublic AccessPolicy setAllowed(java.lang.Boolean allowed)
allowed
- allowed or null
for nonepublic java.util.List<java.lang.String> getException()
null
for nonepublic AccessPolicy setException(java.util.List<java.lang.String> exception)
exception
- exception or null
for nonepublic AccessPolicy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public AccessPolicy clone()
clone
in class com.google.api.client.json.GenericJson