Class Firewall.Rule
- java.lang.Object
-
- org.jclouds.googlecomputeengine.domain.Firewall.Rule
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Firewall.Rule
create(String ipProtocol, List<String> ports)
abstract String
ipProtocol()
This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.abstract List<String>
ports()
An optional list of ports which are allowed.
-
-
-
Method Detail
-
ipProtocol
public abstract String ipProtocol()
This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
-
ports
@Nullable public abstract List<String> ports()
An optional list of ports which are allowed. This is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range (ex.12345-12349
). If not specified, connections through any port are allowed.
-
create
public static Firewall.Rule create(String ipProtocol, List<String> ports)
-
-