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.
|
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() |
List<SecurityPolicyAssociation> |
getAssociations()
A list of associations that belong to this policy.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getDisplayName()
User-provided name of the Organization security plicy.
|
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.
|
String |
getParent()
[Output Only] The parent of the security policy.
|
List<SecurityPolicyRule> |
getRules()
A list of rules that belong to this policy.
|
Integer |
getRuleTupleCount()
[Output Only] Total count of all security policy rule tuples.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
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 |
setAssociations(List<SecurityPolicyAssociation> associations)
A list of associations that belong to this policy.
|
SecurityPolicy |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
SecurityPolicy |
setDescription(String description)
An optional description of this resource.
|
SecurityPolicy |
setDisplayName(String displayName)
User-provided name of the Organization security plicy.
|
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 |
setParent(String parent)
[Output Only] The parent of the security policy.
|
SecurityPolicy |
setRules(List<SecurityPolicyRule> rules)
A list of rules that belong to this policy.
|
SecurityPolicy |
setRuleTupleCount(Integer ruleTupleCount)
[Output Only] Total count of all security policy rule tuples.
|
SecurityPolicy |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
SecurityPolicy |
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id.
|
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 List<SecurityPolicyAssociation> getAssociations()
null for nonepublic SecurityPolicy setAssociations(List<SecurityPolicyAssociation> associations)
associations - associations 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 getDisplayName()
null for nonepublic SecurityPolicy setDisplayName(String displayName)
displayName - displayName 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 String getParent()
null for nonepublic SecurityPolicy setParent(String parent)
parent - parent or null for nonepublic Integer getRuleTupleCount()
null for nonepublic SecurityPolicy setRuleTupleCount(Integer ruleTupleCount)
ruleTupleCount - ruleTupleCount 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 getSelfLinkWithId()
null for nonepublic SecurityPolicy setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId 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 GenericJsonpublic SecurityPolicy clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.