public enum UnavailableReason extends Enum<UnavailableReason>
Enum Constant and Description |
---|
INVALID_NAME
Enum value InvalidName.
|
NAME_IN_LOCKDOWN
Enum value NameInLockdown.
|
NAME_IN_USE
Enum value NameInUse.
|
NONE
Enum value None.
|
SUBSCRIPTION_IS_DISABLED
Enum value SubscriptionIsDisabled.
|
TOO_MANY_NAMESPACE_IN_CURRENT_SUBSCRIPTION
Enum value TooManyNamespaceInCurrentSubscription.
|
Modifier and Type | Method and Description |
---|---|
static UnavailableReason |
fromString(String value)
Parses a serialized value to a UnavailableReason instance.
|
String |
toString() |
static UnavailableReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnavailableReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnavailableReason NONE
public static final UnavailableReason INVALID_NAME
public static final UnavailableReason SUBSCRIPTION_IS_DISABLED
public static final UnavailableReason NAME_IN_USE
public static final UnavailableReason NAME_IN_LOCKDOWN
public static final UnavailableReason TOO_MANY_NAMESPACE_IN_CURRENT_SUBSCRIPTION
public static UnavailableReason[] values()
for (UnavailableReason c : UnavailableReason.values()) System.out.println(c);
public static UnavailableReason 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 static UnavailableReason fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<UnavailableReason>
Copyright © 2019. All rights reserved.