Serializable
, Comparable<EurekaDataCenterType>
, org.refcodes.mixin.NameAccessor
public enum EurekaDataCenterType extends Enum<EurekaDataCenterType> implements org.refcodes.mixin.NameAccessor
Enum Constant | Description |
---|---|
AMAZON |
You are running on an Amazon data-center.
|
MY_OWN |
You are running on a Non-Amazon data-center.
|
Modifier and Type | Method | Description |
---|---|---|
static EurekaDataCenterType |
fromName(String aName) |
Resolves an
EurekaDataCenterType from the given name case
insensitive. |
String |
getName() |
|
String |
toString() |
|
static EurekaDataCenterType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static EurekaDataCenterType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EurekaDataCenterType MY_OWN
public static final EurekaDataCenterType AMAZON
public static EurekaDataCenterType[] values()
for (EurekaDataCenterType c : EurekaDataCenterType.values()) System.out.println(c);
public static EurekaDataCenterType 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 getName()
getName
in interface org.refcodes.mixin.NameAccessor
public String toString()
toString
in class Enum<EurekaDataCenterType>
public static EurekaDataCenterType fromName(String aName)
EurekaDataCenterType
from the given name case
insensitive.aName
- The name for which to resolve case insensitive the
EurekaDataCenterType
.EurekaDataCenterType
or null if the name
was not resolvable.Copyright © 2018. All rights reserved.