public final class SecurityPolicy 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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SecurityPolicy() |
| Modifier and Type | Method and Description |
|---|---|
SecurityPolicy |
clone() |
byte[] |
decodeFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
SecurityPolicy |
encodeFingerprint(byte[] fingerprint)
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output only] Type of the resource.
|
String |
getName()
Name of the resource.
|
List<SecurityPolicyRule> |
getRules()
A list of rules that belong to this policy.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
SecurityPolicy |
set(String fieldName,
Object value) |
SecurityPolicy |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
SecurityPolicy |
setDescription(String description)
An optional description of this resource.
|
SecurityPolicy |
setFingerprint(String fingerprint)
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
SecurityPolicy |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
SecurityPolicy |
setKind(String kind)
[Output only] Type of the resource.
|
SecurityPolicy |
setName(String name)
Name of the resource.
|
SecurityPolicy |
setRules(List<SecurityPolicyRule> rules)
A list of rules that belong to this policy.
|
SecurityPolicy |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCreationTimestamp()
null for nonepublic SecurityPolicy setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic SecurityPolicy setDescription(String description)
description - description or null for nonepublic String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public SecurityPolicy setFingerprint(String fingerprint)
fingerprint - fingerprint or null for none#encodeFingerprint()public SecurityPolicy encodeFingerprint(byte[] fingerprint)
The value is encoded Base64 or {@code null} for none.
public BigInteger getId()
null for nonepublic SecurityPolicy setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic SecurityPolicy setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic SecurityPolicy setName(String name)
name - name or null for nonepublic List<SecurityPolicyRule> getRules()
null for nonepublic SecurityPolicy setRules(List<SecurityPolicyRule> rules)
rules - rules or null for nonepublic String getSelfLink()
null for nonepublic SecurityPolicy setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic SecurityPolicy set(String fieldName, Object value)
set in class GenericJsonpublic SecurityPolicy clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.