![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.FirewallPolicyRuleMatcherLayer4Config.html Maven / Gradle / Ivy
FirewallPolicyRuleMatcherLayer4Config (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class FirewallPolicyRuleMatcherLayer4Config
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.FirewallPolicyRuleMatcherLayer4Config
-
public final class FirewallPolicyRuleMatcherLayer4Config
extends GenericJson
Model definition for FirewallPolicyRuleMatcherLayer4Config.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
FirewallPolicyRuleMatcherLayer4Config()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
FirewallPolicyRuleMatcherLayer4Config
clone()
String
getIpProtocol()
The IP protocol to which this rule applies.
List<String>
getPorts()
An optional list of ports to which this rule applies.
FirewallPolicyRuleMatcherLayer4Config
set(String fieldName,
Object value)
FirewallPolicyRuleMatcherLayer4Config
setIpProtocol(String ipProtocol)
The IP protocol to which this rule applies.
FirewallPolicyRuleMatcherLayer4Config
setPorts(List<String> ports)
An optional list of ports to which this rule applies.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
FirewallPolicyRuleMatcherLayer4Config
public FirewallPolicyRuleMatcherLayer4Config()
-
Method Detail
-
getIpProtocol
public String getIpProtocol()
The IP protocol to which this rule applies. The protocol type is required when creating a
firewall rule. This value can either be one of the following well known protocol strings (tcp,
udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
- Returns:
- value or
null
for none
-
setIpProtocol
public FirewallPolicyRuleMatcherLayer4Config setIpProtocol(String ipProtocol)
The IP protocol to which this rule applies. The protocol type is required when creating a
firewall rule. This value can either be one of the following well known protocol strings (tcp,
udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
- Parameters:
ipProtocol
- ipProtocol or null
for none
-
getPorts
public List<String> getPorts()
An optional list of ports to which this rule applies. This field is only applicable for UDP or
TCP protocol. Each entry must be either an integer or a range. If not specified, this rule
applies to connections through any port. Example inputs include: ["22"], ["80","443"], and
["12345-12349"].
- Returns:
- value or
null
for none
-
setPorts
public FirewallPolicyRuleMatcherLayer4Config setPorts(List<String> ports)
An optional list of ports to which this rule applies. This field is only applicable for UDP or
TCP protocol. Each entry must be either an integer or a range. If not specified, this rule
applies to connections through any port. Example inputs include: ["22"], ["80","443"], and
["12345-12349"].
- Parameters:
ports
- ports or null
for none
-
set
public FirewallPolicyRuleMatcherLayer4Config set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public FirewallPolicyRuleMatcherLayer4Config clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy