public static enum TcpForwardingFilter.Type extends java.lang.Enum<TcpForwardingFilter.Type> implements NamedResource
getName()
method returns the SSH request typeModifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
static java.util.Set<TcpForwardingFilter.Type> |
VALUES |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
static TcpForwardingFilter.Type |
fromEnumName(java.lang.String name) |
static TcpForwardingFilter.Type |
fromName(java.lang.String name) |
static TcpForwardingFilter.Type |
fromString(java.lang.String name) |
java.lang.String |
getName() |
static TcpForwardingFilter.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TcpForwardingFilter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findByName, getNameList, getNames, removeByName
public static final TcpForwardingFilter.Type Direct
public static final TcpForwardingFilter.Type Forwarded
public static final java.util.Set<TcpForwardingFilter.Type> VALUES
private final java.lang.String name
public static TcpForwardingFilter.Type[] values()
for (TcpForwardingFilter.Type c : TcpForwardingFilter.Type.values()) System.out.println(c);
public static TcpForwardingFilter.Type 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 final java.lang.String getName()
getName
in interface NamedResource
public static TcpForwardingFilter.Type fromString(java.lang.String name)
name
- Either the enum name or the request - ignored if null
/emptyTcpForwardingFilter.Type
value - case insensitive,
or null
if no match foundfromName(String)
,
fromEnumName(String)
public static TcpForwardingFilter.Type fromName(java.lang.String name)
name
- The request name - ignored if null
/emptyTcpForwardingFilter.Type
value - case insensitive,
or null
if no match foundpublic static TcpForwardingFilter.Type fromEnumName(java.lang.String name)
name
- The enum value name - ignored if null
/emptyTcpForwardingFilter.Type
value - case insensitive,
or null
if no match found