public final class FirewallPolicyRule 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 | 
|---|
FirewallPolicyRule()  | 
| Modifier and Type | Method and Description | 
|---|---|
FirewallPolicyRule | 
clone()  | 
String | 
getAction()
The Action to perform when the client connection triggers the rule. 
 | 
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. 
 | 
String | 
getKind()
[Output only] Type of the resource. 
 | 
FirewallPolicyRuleMatcher | 
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. 
 | 
Integer | 
getRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule. 
 | 
List<String> | 
getTargetResources()
A list of network resource URLs to which this rule applies. 
 | 
List<String> | 
getTargetSecureLabels()
A list of secure labels that controls which instances the firewall rule applies to. 
 | 
List<String> | 
getTargetServiceAccounts()
A list of service accounts indicating the sets of instances that are applied with this rule. 
 | 
FirewallPolicyRule | 
set(String fieldName,
   Object value)  | 
FirewallPolicyRule | 
setAction(String action)
The Action to perform when the client connection triggers the rule. 
 | 
FirewallPolicyRule | 
setDescription(String description)
An optional description of this resource. 
 | 
FirewallPolicyRule | 
setDirection(String direction)
The direction in which this rule applies. 
 | 
FirewallPolicyRule | 
setEnableLogging(Boolean enableLogging)
Denotes whether to enable logging for a particular rule. 
 | 
FirewallPolicyRule | 
setKind(String kind)
[Output only] Type of the resource. 
 | 
FirewallPolicyRule | 
setMatch(FirewallPolicyRuleMatcher match)
A match condition that incoming traffic is evaluated against. 
 | 
FirewallPolicyRule | 
setPreview(Boolean preview)
If set to true, the specified action is not enforced. 
 | 
FirewallPolicyRule | 
setPriority(Integer priority)
An integer indicating the priority of a rule in the list. 
 | 
FirewallPolicyRule | 
setRuleTupleCount(Integer ruleTupleCount)
[Output Only] Calculation of the complexity of a single firewall policy rule. 
 | 
FirewallPolicyRule | 
setTargetResources(List<String> targetResources)
A list of network resource URLs to which this rule applies. 
 | 
FirewallPolicyRule | 
setTargetSecureLabels(List<String> targetSecureLabels)
A list of secure labels that controls which instances the firewall rule applies to. 
 | 
FirewallPolicyRule | 
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 FirewallPolicyRule setAction(String action)
action - action or null for nonepublic String getDescription()
null for nonepublic FirewallPolicyRule setDescription(String description)
description - description or null for nonepublic String getDirection()
null for nonepublic FirewallPolicyRule setDirection(String direction)
direction - direction or null for nonepublic Boolean getEnableLogging()
null for nonepublic FirewallPolicyRule setEnableLogging(Boolean enableLogging)
enableLogging - enableLogging or null for nonepublic String getKind()
null for nonepublic FirewallPolicyRule setKind(String kind)
kind - kind or null for nonepublic FirewallPolicyRuleMatcher getMatch()
null for nonepublic FirewallPolicyRule setMatch(FirewallPolicyRuleMatcher match)
match - match or null for nonepublic Boolean getPreview()
null for nonepublic FirewallPolicyRule setPreview(Boolean preview)
preview - preview or null for nonepublic Integer getPriority()
null for nonepublic FirewallPolicyRule setPriority(Integer priority)
priority - priority or null for nonepublic Integer getRuleTupleCount()
null for nonepublic FirewallPolicyRule setRuleTupleCount(Integer ruleTupleCount)
ruleTupleCount - ruleTupleCount or null for nonepublic List<String> getTargetResources()
null for nonepublic FirewallPolicyRule setTargetResources(List<String> targetResources)
targetResources - targetResources or null for nonepublic List<String> getTargetSecureLabels()
null for nonepublic FirewallPolicyRule setTargetSecureLabels(List<String> targetSecureLabels)
targetSecureLabels - targetSecureLabels or null for nonepublic List<String> getTargetServiceAccounts()
null for nonepublic FirewallPolicyRule setTargetServiceAccounts(List<String> targetServiceAccounts)
targetServiceAccounts - targetServiceAccounts or null for nonepublic FirewallPolicyRule set(String fieldName, Object value)
set in class GenericJsonpublic FirewallPolicyRule clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.