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.Flags
AbstractMap.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.
|
SecurityPolicyAdaptiveProtectionConfig |
getAdaptiveProtectionConfig() |
SecurityPolicyAdvancedOptionsConfig |
getAdvancedOptionsConfig() |
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 |
setAdaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig) |
SecurityPolicy |
setAdvancedOptionsConfig(SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig) |
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public SecurityPolicyAdaptiveProtectionConfig getAdaptiveProtectionConfig()
null
for nonepublic SecurityPolicy setAdaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig)
adaptiveProtectionConfig
- adaptiveProtectionConfig or null
for nonepublic SecurityPolicyAdvancedOptionsConfig getAdvancedOptionsConfig()
null
for nonepublic SecurityPolicy setAdvancedOptionsConfig(SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig)
advancedOptionsConfig
- advancedOptionsConfig or null
for nonepublic 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 GenericJson
public SecurityPolicy clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.