target.apidocs.com.google.api.services.directory.model.Privilege.html Maven / Gradle / Ivy
Privilege (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class Privilege
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.Privilege
-
public final class Privilege
extends GenericJson
Model definition for Privilege.
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 Admin SDK API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Privilege()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Privilege
clone()
List<Privilege>
getChildPrivileges()
A list of child privileges.
String
getEtag()
ETag of the resource.
Boolean
getIsOuScopable()
If the privilege can be restricted to an organization unit.
String
getKind()
The type of the API resource.
String
getPrivilegeName()
The name of the privilege.
String
getServiceId()
The obfuscated ID of the service this privilege is for.
String
getServiceName()
The name of the service this privilege is for.
Privilege
set(String fieldName,
Object value)
Privilege
setChildPrivileges(List<Privilege> childPrivileges)
A list of child privileges.
Privilege
setEtag(String etag)
ETag of the resource.
Privilege
setIsOuScopable(Boolean isOuScopable)
If the privilege can be restricted to an organization unit.
Privilege
setKind(String kind)
The type of the API resource.
Privilege
setPrivilegeName(String privilegeName)
The name of the privilege.
Privilege
setServiceId(String serviceId)
The obfuscated ID of the service this privilege is for.
Privilege
setServiceName(String serviceName)
The name of the service this privilege is for.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getChildPrivileges
public List<Privilege> getChildPrivileges()
A list of child privileges. Privileges for a service form a tree. Each privilege can have a
list of child privileges; this list is empty for a leaf privilege.
- Returns:
- value or
null
for none
-
setChildPrivileges
public Privilege setChildPrivileges(List<Privilege> childPrivileges)
A list of child privileges. Privileges for a service form a tree. Each privilege can have a
list of child privileges; this list is empty for a leaf privilege.
- Parameters:
childPrivileges
- childPrivileges or null
for none
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public Privilege setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getIsOuScopable
public Boolean getIsOuScopable()
If the privilege can be restricted to an organization unit.
- Returns:
- value or
null
for none
-
setIsOuScopable
public Privilege setIsOuScopable(Boolean isOuScopable)
If the privilege can be restricted to an organization unit.
- Parameters:
isOuScopable
- isOuScopable or null
for none
-
getKind
public String getKind()
The type of the API resource. This is always `admin#directory#privilege`.
- Returns:
- value or
null
for none
-
setKind
public Privilege setKind(String kind)
The type of the API resource. This is always `admin#directory#privilege`.
- Parameters:
kind
- kind or null
for none
-
getPrivilegeName
public String getPrivilegeName()
The name of the privilege.
- Returns:
- value or
null
for none
-
setPrivilegeName
public Privilege setPrivilegeName(String privilegeName)
The name of the privilege.
- Parameters:
privilegeName
- privilegeName or null
for none
-
getServiceId
public String getServiceId()
The obfuscated ID of the service this privilege is for. This value is returned with
[`Privileges.list()`](/admin-sdk/directory/v1/reference/privileges/list).
- Returns:
- value or
null
for none
-
setServiceId
public Privilege setServiceId(String serviceId)
The obfuscated ID of the service this privilege is for. This value is returned with
[`Privileges.list()`](/admin-sdk/directory/v1/reference/privileges/list).
- Parameters:
serviceId
- serviceId or null
for none
-
getServiceName
public String getServiceName()
The name of the service this privilege is for.
- Returns:
- value or
null
for none
-
setServiceName
public Privilege setServiceName(String serviceName)
The name of the service this privilege is for.
- Parameters:
serviceName
- serviceName or null
for none
-
set
public Privilege set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Privilege clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.