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.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.
|
byte[] |
decodeLabelFingerprint()
A fingerprint for the labels being applied to this security policy, which is essentially a hash
of the labels set 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.
|
SecurityPolicy |
encodeLabelFingerprint(byte[] labelFingerprint)
A fingerprint for the labels being applied to this security policy, which is essentially a hash
of the labels set 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 |
getLabelFingerprint()
A fingerprint for the labels being applied to this security policy, which is essentially a hash
of the labels set used for optimistic locking.
|
Map<String,String> |
getLabels()
Labels for this 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.
|
List<SecurityPolicyUserDefinedField> |
getUserDefinedFields()
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies.
|
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 |
setLabelFingerprint(String labelFingerprint)
A fingerprint for the labels being applied to this security policy, which is essentially a hash
of the labels set used for optimistic locking.
|
SecurityPolicy |
setLabels(Map<String,String> labels)
Labels for this 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.
|
SecurityPolicy |
setUserDefinedFields(List<SecurityPolicyUserDefinedField> userDefinedFields)
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies.
|
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 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 getLabelFingerprint()
null
for nonedecodeLabelFingerprint()
public byte[] decodeLabelFingerprint()
null
for nonegetLabelFingerprint()
public SecurityPolicy setLabelFingerprint(String labelFingerprint)
labelFingerprint
- labelFingerprint or null
for none#encodeLabelFingerprint()
public SecurityPolicy encodeLabelFingerprint(byte[] labelFingerprint)
The value is encoded Base64 or {@code null} for none.
public Map<String,String> getLabels()
null
for nonepublic SecurityPolicy setLabels(Map<String,String> labels)
labels
- labels 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 List<SecurityPolicyUserDefinedField> getUserDefinedFields()
null
for nonepublic SecurityPolicy setUserDefinedFields(List<SecurityPolicyUserDefinedField> userDefinedFields)
userDefinedFields
- userDefinedFields or null
for nonepublic SecurityPolicy set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SecurityPolicy clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.