public final class Policy extends 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: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Policy.Bindings
Model definition for PolicyBindings.
|
GenericData.Flags
AbstractMap.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.
|
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 Policy set(String fieldName, Object value)
set
in class GenericJson
public Policy clone()
clone
in class GenericJson