public final class SecurityPolicyRule 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 | 
|---|
| 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. | 
| String | getDirection()The direction in which this rule applies. | 
| Boolean | getEnableLogging()Denotes whether to enable logging for a particular rule. | 
| 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. | 
| 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. | 
| Long | getRuleNumber()Identifier for the rule. | 
| Integer | getRuleTupleCount()[Output Only] Calculation of the complexity of a single firewall security policy rule. | 
| List<String> | getTargetResources()A list of network resource URLs to which this rule applies. | 
| List<String> | getTargetServiceAccounts()A list of service accounts indicating the sets of instances that are applied with this rule. | 
| 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 | setDirection(String direction)The direction in which this rule applies. | 
| SecurityPolicyRule | setEnableLogging(Boolean enableLogging)Denotes whether to enable logging for a particular rule. | 
| 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 | 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. | 
| SecurityPolicyRule | setRuleNumber(Long ruleNumber)Identifier for the rule. | 
| SecurityPolicyRule | setRuleTupleCount(Integer ruleTupleCount)[Output Only] Calculation of the complexity of a single firewall security policy rule. | 
| SecurityPolicyRule | setTargetResources(List<String> targetResources)A list of network resource URLs to which this rule applies. | 
| SecurityPolicyRule | setTargetServiceAccounts(List<String> targetServiceAccounts)A list of service accounts indicating the sets of instances that are applied with this rule. | 
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 String getDirection()
null for nonepublic SecurityPolicyRule setDirection(String direction)
direction - direction or null for nonepublic Boolean getEnableLogging()
null for nonepublic SecurityPolicyRule setEnableLogging(Boolean enableLogging)
enableLogging - enableLogging 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 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 Long getRuleNumber()
null for nonepublic SecurityPolicyRule setRuleNumber(Long ruleNumber)
ruleNumber - ruleNumber or null for nonepublic Integer getRuleTupleCount()
null for nonepublic SecurityPolicyRule setRuleTupleCount(Integer ruleTupleCount)
ruleTupleCount - ruleTupleCount or null for nonepublic List<String> getTargetResources()
null for nonepublic SecurityPolicyRule setTargetResources(List<String> targetResources)
targetResources - targetResources or null for nonepublic List<String> getTargetServiceAccounts()
null for nonepublic SecurityPolicyRule setTargetServiceAccounts(List<String> targetServiceAccounts)
targetServiceAccounts - targetServiceAccounts or null for nonepublic SecurityPolicyRule set(String fieldName, Object value)
set in class GenericJsonpublic SecurityPolicyRule clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.