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.Flags
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.
|
java.util.List<Policy.Bindings> |
getBindings()
An association between a role, which comes with a set of permissions, and members who may
assume that role.
|
java.lang.String |
getEtag()
HTTP 1.1 Entity tag for the policy.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.lang.String |
getResourceId()
The ID of the resource to which this policy belongs.
|
Policy |
set(java.lang.String fieldName,
java.lang.Object value) |
Policy |
setBindings(java.util.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(java.lang.String etag)
HTTP 1.1 Entity tag for the policy.
|
Policy |
setKind(java.lang.String kind)
The kind of item this is.
|
Policy |
setResourceId(java.lang.String resourceId)
The ID of the resource to which this policy belongs.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.util.List<Policy.Bindings> getBindings()
null
for nonepublic Policy setBindings(java.util.List<Policy.Bindings> bindings)
bindings
- bindings or null
for nonepublic java.lang.String getEtag()
null
for nonedecodeEtag()
public byte[] decodeEtag()
null
for nonegetEtag()
public Policy setEtag(java.lang.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 java.lang.String getKind()
null
for nonepublic Policy setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getResourceId()
null
for nonepublic Policy setResourceId(java.lang.String resourceId)
resourceId
- resourceId or null
for nonepublic Policy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Policy clone()
clone
in class com.google.api.client.json.GenericJson