public enum RuleDirection extends Enum<RuleDirection>
Enum Constant and Description |
---|
EGRESS
An ‘egress’ rule is applied to traffic leaving the instance.
|
INGRESS
For a compute instance, an ‘ingress’ security group rule matches traffic that is incoming (ingress) for that instance.
|
UNRECOGNIZED
Used by jclouds when the service returns an unknown value other than null.
|
Modifier and Type | Method and Description |
---|---|
static RuleDirection |
fromValue(String name) |
String |
toString() |
static RuleDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuleDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuleDirection INGRESS
public static final RuleDirection EGRESS
public static final RuleDirection UNRECOGNIZED
public static RuleDirection[] values()
for (RuleDirection c : RuleDirection.values()) System.out.println(c);
public static RuleDirection 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<RuleDirection>
public static RuleDirection fromValue(String name)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.