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 Google 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.Flags
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.
|
java.lang.String |
getConstraint()
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
java.lang.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.
|
java.lang.String |
getUpdateTime()
The time stamp the `Policy` was previously updated.
|
java.lang.Integer |
getVersion()
Version of the `Policy`.
|
OrgPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
OrgPolicy |
setBooleanPolicy(BooleanPolicy booleanPolicy)
For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
OrgPolicy |
setConstraint(java.lang.String constraint)
The name of the `Constraint` the `Policy` is configuring, for example,
`constraints/serviceuser.services`.
|
OrgPolicy |
setEtag(java.lang.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(java.lang.String updateTime)
The time stamp the `Policy` was previously updated.
|
OrgPolicy |
setVersion(java.lang.Integer version)
Version of the `Policy`.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public BooleanPolicy getBooleanPolicy()
null
for nonepublic OrgPolicy setBooleanPolicy(BooleanPolicy booleanPolicy)
booleanPolicy
- booleanPolicy or null
for nonepublic java.lang.String getConstraint()
null
for nonepublic OrgPolicy setConstraint(java.lang.String constraint)
constraint
- constraint or null
for nonepublic java.lang.String getEtag()
null
for nonedecodeEtag()
public byte[] decodeEtag()
null
for nonegetEtag()
public OrgPolicy setEtag(java.lang.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 java.lang.String getUpdateTime()
null
for nonepublic OrgPolicy setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic java.lang.Integer getVersion()
null
for nonepublic OrgPolicy setVersion(java.lang.Integer version)
version
- version or null
for nonepublic OrgPolicy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public OrgPolicy clone()
clone
in class com.google.api.client.json.GenericJson