public enum RuleProtocol extends Enum<RuleProtocol>
Enum Constant and Description |
---|
ICMP
Internet Control Message Protocol
|
TCP
Transmission Control Protocol
|
UDP
User Datagram Protocol
|
UNRECOGNIZED
Used by jclouds when the service returns an unknown value other than null.
|
Modifier and Type | Method and Description |
---|---|
static RuleProtocol |
fromValue(String name) |
String |
toString() |
static RuleProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuleProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuleProtocol TCP
public static final RuleProtocol UDP
public static final RuleProtocol ICMP
public static final RuleProtocol UNRECOGNIZED
public static RuleProtocol[] values()
for (RuleProtocol c : RuleProtocol.values()) System.out.println(c);
public static RuleProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<RuleProtocol>
public static RuleProtocol fromValue(String name)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.