![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.Firewall.Allowed.html Maven / Gradle / Ivy
Firewall.Allowed (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class Firewall.Allowed
- 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.Firewall.Allowed
-
-
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
Allowed()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Firewall.Allowed
clone()
String
getIPProtocol()
The IP protocol to which this rule applies.
List<String>
getPorts()
An optional list of ports to which this rule applies.
Firewall.Allowed
set(String fieldName,
Object value)
Firewall.Allowed
setIPProtocol(String iPProtocol)
The IP protocol to which this rule applies.
Firewall.Allowed
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
-
-
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 Firewall.Allowed 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 the 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 Firewall.Allowed setPorts(List<String> ports)
An optional list of ports to which this rule applies. This field is only applicable for the 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 Firewall.Allowed set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Firewall.Allowed clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy