Enum NamespaceType
- java.lang.Object
-
- java.lang.Enum<NamespaceType>
-
- com.azure.resourcemanager.notificationhubs.models.NamespaceType
-
- All Implemented Interfaces:
Serializable
,Comparable<NamespaceType>
public enum NamespaceType extends Enum<NamespaceType>
Defines values for NamespaceType.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGING
Enum value Messaging.NOTIFICATION_HUB
Enum value NotificationHub.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamespaceType
fromString(String value)
Parses a serialized value to a NamespaceType instance.String
toString()
static NamespaceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NamespaceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGING
public static final NamespaceType MESSAGING
Enum value Messaging.
-
NOTIFICATION_HUB
public static final NamespaceType NOTIFICATION_HUB
Enum value NotificationHub.
-
-
Method Detail
-
values
public static NamespaceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NamespaceType c : NamespaceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamespaceType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static NamespaceType fromString(String value)
Parses a serialized value to a NamespaceType instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed NamespaceType object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<NamespaceType>
-
-