Package org.jclouds.profitbricks.domain
Enum Firewall.Protocol
- java.lang.Object
-
- java.lang.Enum<Firewall.Protocol>
-
- org.jclouds.profitbricks.domain.Firewall.Protocol
-
- All Implemented Interfaces:
Serializable
,Comparable<Firewall.Protocol>
- Enclosing class:
- Firewall
public static enum Firewall.Protocol extends Enum<Firewall.Protocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
ICMP
TCP
UDP
UNRECOGNIZED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Firewall.Protocol
fromValue(String value)
static Firewall.Protocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static Firewall.Protocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCP
public static final Firewall.Protocol TCP
-
UDP
public static final Firewall.Protocol UDP
-
ICMP
public static final Firewall.Protocol ICMP
-
ANY
public static final Firewall.Protocol ANY
-
UNRECOGNIZED
public static final Firewall.Protocol UNRECOGNIZED
-
-
Method Detail
-
values
public static Firewall.Protocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Firewall.Protocol c : Firewall.Protocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Firewall.Protocol valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
public static Firewall.Protocol fromValue(String value)
-
-