public final class SecurityPolicyRule
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 |
|---|
SecurityPolicyRule() |
| Modifier and Type | Method and Description |
|---|---|
SecurityPolicyRule |
clone() |
String |
getAction()
The Action to perform when the rule is matched.
|
String |
getDescription()
An optional description of this resource.
|
SecurityPolicyRuleHttpHeaderAction |
getHeaderAction()
Optional, additional actions that are performed on headers.
|
String |
getKind()
[Output only] Type of the resource.
|
SecurityPolicyRuleMatcher |
getMatch()
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRuleNetworkMatcher |
getNetworkMatch()
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security
policies.
|
SecurityPolicyRulePreconfiguredWafConfig |
getPreconfiguredWafConfig()
Preconfigured WAF configuration to be applied for the rule.
|
Boolean |
getPreview()
If set to true, the specified action is not enforced.
|
Integer |
getPriority()
An integer indicating the priority of a rule in the list.
|
SecurityPolicyRuleRateLimitOptions |
getRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRuleRedirectOptions |
getRedirectOptions()
Parameters defining the redirect action.
|
SecurityPolicyRule |
set(String fieldName,
Object value) |
SecurityPolicyRule |
setAction(String action)
The Action to perform when the rule is matched.
|
SecurityPolicyRule |
setDescription(String description)
An optional description of this resource.
|
SecurityPolicyRule |
setHeaderAction(SecurityPolicyRuleHttpHeaderAction headerAction)
Optional, additional actions that are performed on headers.
|
SecurityPolicyRule |
setKind(String kind)
[Output only] Type of the resource.
|
SecurityPolicyRule |
setMatch(SecurityPolicyRuleMatcher match)
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRule |
setNetworkMatch(SecurityPolicyRuleNetworkMatcher networkMatch)
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security
policies.
|
SecurityPolicyRule |
setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig)
Preconfigured WAF configuration to be applied for the rule.
|
SecurityPolicyRule |
setPreview(Boolean preview)
If set to true, the specified action is not enforced.
|
SecurityPolicyRule |
setPriority(Integer priority)
An integer indicating the priority of a rule in the list.
|
SecurityPolicyRule |
setRateLimitOptions(SecurityPolicyRuleRateLimitOptions rateLimitOptions)
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRule |
setRedirectOptions(SecurityPolicyRuleRedirectOptions redirectOptions)
Parameters defining the redirect action.
|
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 String getAction()
null for nonepublic SecurityPolicyRule setAction(String action)
action - action or null for nonepublic String getDescription()
null for nonepublic SecurityPolicyRule setDescription(String description)
description - description or null for nonepublic SecurityPolicyRuleHttpHeaderAction getHeaderAction()
null for nonepublic SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction headerAction)
headerAction - headerAction or null for nonepublic String getKind()
null for nonepublic SecurityPolicyRule setKind(String kind)
kind - kind or null for nonepublic SecurityPolicyRuleMatcher getMatch()
null for nonepublic SecurityPolicyRule setMatch(SecurityPolicyRuleMatcher match)
match - match or null for nonepublic SecurityPolicyRuleNetworkMatcher getNetworkMatch()
null for nonepublic SecurityPolicyRule setNetworkMatch(SecurityPolicyRuleNetworkMatcher networkMatch)
networkMatch - networkMatch or null for nonepublic SecurityPolicyRulePreconfiguredWafConfig getPreconfiguredWafConfig()
null for nonepublic SecurityPolicyRule setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig)
preconfiguredWafConfig - preconfiguredWafConfig or null for nonepublic Boolean getPreview()
null for nonepublic SecurityPolicyRule setPreview(Boolean preview)
preview - preview or null for nonepublic Integer getPriority()
null for nonepublic SecurityPolicyRule setPriority(Integer priority)
priority - priority or null for nonepublic SecurityPolicyRuleRateLimitOptions getRateLimitOptions()
null for nonepublic SecurityPolicyRule setRateLimitOptions(SecurityPolicyRuleRateLimitOptions rateLimitOptions)
rateLimitOptions - rateLimitOptions or null for nonepublic SecurityPolicyRuleRedirectOptions getRedirectOptions()
null for nonepublic SecurityPolicyRule setRedirectOptions(SecurityPolicyRuleRedirectOptions redirectOptions)
redirectOptions - redirectOptions or null for nonepublic SecurityPolicyRule set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SecurityPolicyRule clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.