public final class SecurityPolicy
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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.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.
|
SecurityPolicyAdaptiveProtectionConfig |
getAdaptiveProtectionConfig() |
SecurityPolicyAdvancedOptionsConfig |
getAdvancedOptionsConfig() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
SecurityPolicyDdosProtectionConfig |
getDdosProtectionConfig() |
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.
|
SecurityPolicyRecaptchaOptionsConfig |
getRecaptchaOptionsConfig() |
String |
getRegion()
[Output Only] URL of the region where the regional security policy resides.
|
List<SecurityPolicyRule> |
getRules()
A list of rules that belong to this policy.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getType()
The type indicates the intended use of the security policy.
|
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 |
setDdosProtectionConfig(SecurityPolicyDdosProtectionConfig ddosProtectionConfig) |
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 |
setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig) |
SecurityPolicy |
setRegion(String region)
[Output Only] URL of the region where the regional security policy resides.
|
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.
|
SecurityPolicy |
setType(String type)
The type indicates the intended use of the security policy.
|
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 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 SecurityPolicyDdosProtectionConfig getDdosProtectionConfig()
null for nonepublic SecurityPolicy setDdosProtectionConfig(SecurityPolicyDdosProtectionConfig ddosProtectionConfig)
ddosProtectionConfig - ddosProtectionConfig 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 SecurityPolicyRecaptchaOptionsConfig getRecaptchaOptionsConfig()
null for nonepublic SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig)
recaptchaOptionsConfig - recaptchaOptionsConfig or null for nonepublic String getRegion()
null for nonepublic SecurityPolicy setRegion(String region)
region - region 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 String getType()
null for nonepublic SecurityPolicy setType(String type)
type - type or null for nonepublic SecurityPolicy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SecurityPolicy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.