public enum PortForwardingProtocol extends java.lang.Enum<PortForwardingProtocol>
| Enum Constant and Description |
|---|
TCP
TCP protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(PortForwardingProtocol protocol)
Get the debug description of port forwarding protocol
|
java.lang.String |
toString()
Get the debug description
|
int |
value()
Get value of port forwarding protocol.
|
static PortForwardingProtocol |
valueOf(int protocol)
Get port forwarding protocol from protocol value.
|
static PortForwardingProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PortForwardingProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortForwardingProtocol TCP
public static PortForwardingProtocol[] values()
for (PortForwardingProtocol c : PortForwardingProtocol.values()) System.out.println(c);
public static PortForwardingProtocol valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static PortForwardingProtocol valueOf(int protocol)
protocol - The protocol valuejava.lang.IllegalArgumentExceptionpublic int value()
public static java.lang.String format(PortForwardingProtocol protocol)
protocol - The port forwarding protocolpublic java.lang.String toString()
toString in class java.lang.Enum<PortForwardingProtocol>