public final class Policy
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 Storage JSON API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Policy.Bindings
Model definition for PolicyBindings.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
Policy |
clone() |
byte[] |
decodeEtag()
HTTP 1.1 Entity tag for the policy.
|
Policy |
encodeEtag(byte[] etag)
HTTP 1.1 Entity tag for the policy.
|
List<Policy.Bindings> |
getBindings()
An association between a role, which comes with a set of permissions, and members who may
assume that role.
|
String |
getEtag()
HTTP 1.1 Entity tag for the policy.
|
String |
getKind()
The kind of item this is.
|
String |
getResourceId()
The ID of the resource to which this policy belongs.
|
Integer |
getVersion()
The IAM policy format version.
|
Policy |
set(String fieldName,
Object value) |
Policy |
setBindings(List<Policy.Bindings> bindings)
An association between a role, which comes with a set of permissions, and members who may
assume that role.
|
Policy |
setEtag(String etag)
HTTP 1.1 Entity tag for the policy.
|
Policy |
setKind(String kind)
The kind of item this is.
|
Policy |
setResourceId(String resourceId)
The ID of the resource to which this policy belongs.
|
Policy |
setVersion(Integer version)
The IAM policy format version.
|
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 List<Policy.Bindings> getBindings()
null for nonepublic Policy setBindings(List<Policy.Bindings> bindings)
bindings - bindings or null for nonepublic String getEtag()
null for nonedecodeEtag()public byte[] decodeEtag()
null for nonegetEtag()public Policy setEtag(String etag)
etag - etag or null for none#encodeEtag()public Policy encodeEtag(byte[] etag)
The value is encoded Base64 or {@code null} for none.
public String getKind()
null for nonepublic Policy setKind(String kind)
kind - kind or null for nonepublic String getResourceId()
null for nonepublic Policy setResourceId(String resourceId)
resourceId - resourceId or null for nonepublic Integer getVersion()
null for nonepublic Policy setVersion(Integer version)
version - version or null for nonepublic Policy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Policy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.