public final class OrgPolicy
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 Cloud Resource Manager 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 |
|---|
OrgPolicy() |
| Modifier and Type | Method and Description |
|---|---|
OrgPolicy |
clone() |
byte[] |
decodeEtag()
An opaque tag indicating the current version of the `Policy`, used for concurrency control.
|
OrgPolicy |
encodeEtag(byte[] etag)
An opaque tag indicating the current version of the `Policy`, used for concurrency control.
|
BooleanPolicy |
getBooleanPolicy()
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
String |
getConstraint()
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
String |
getEtag()
An opaque tag indicating the current version of the `Policy`, used for concurrency control.
|
ListPolicy |
getListPolicy()
List of values either allowed or disallowed.
|
RestoreDefault |
getRestoreDefault()
Restores the default behavior of the constraint; independent of `Constraint` type.
|
String |
getUpdateTime()
The time stamp the `Policy` was previously updated.
|
Integer |
getVersion()
Version of the `Policy`.
|
OrgPolicy |
set(String fieldName,
Object value) |
OrgPolicy |
setBooleanPolicy(BooleanPolicy booleanPolicy)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
OrgPolicy |
setConstraint(String constraint)
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
OrgPolicy |
setEtag(String etag)
An opaque tag indicating the current version of the `Policy`, used for concurrency control.
|
OrgPolicy |
setListPolicy(ListPolicy listPolicy)
List of values either allowed or disallowed.
|
OrgPolicy |
setRestoreDefault(RestoreDefault restoreDefault)
Restores the default behavior of the constraint; independent of `Constraint` type.
|
OrgPolicy |
setUpdateTime(String updateTime)
The time stamp the `Policy` was previously updated.
|
OrgPolicy |
setVersion(Integer version)
Version of the `Policy`.
|
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 BooleanPolicy getBooleanPolicy()
null for nonepublic OrgPolicy setBooleanPolicy(BooleanPolicy booleanPolicy)
booleanPolicy - booleanPolicy or null for nonepublic String getConstraint()
null for nonepublic OrgPolicy setConstraint(String constraint)
constraint - constraint or null for nonepublic String getEtag()
null for nonedecodeEtag()public byte[] decodeEtag()
null for nonegetEtag()public OrgPolicy setEtag(String etag)
etag - etag or null for none#encodeEtag()public OrgPolicy encodeEtag(byte[] etag)
The value is encoded Base64 or {@code null} for none.
public ListPolicy getListPolicy()
null for nonepublic OrgPolicy setListPolicy(ListPolicy listPolicy)
listPolicy - listPolicy or null for nonepublic RestoreDefault getRestoreDefault()
null for nonepublic OrgPolicy setRestoreDefault(RestoreDefault restoreDefault)
restoreDefault - restoreDefault or null for nonepublic String getUpdateTime()
null for nonepublic OrgPolicy setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic Integer getVersion()
null for nonepublic OrgPolicy setVersion(Integer version)
version - version or null for nonepublic OrgPolicy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic OrgPolicy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.