Enum NameSpaceType
- java.lang.Object
-
- java.lang.Enum<NameSpaceType>
-
- com.azure.resourcemanager.servicebus.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 EVENT_HUBEnum value EventHub.MESSAGINGEnum value Messaging.MIXEDEnum value Mixed.NOTIFICATION_HUBEnum value NotificationHub.RELAYEnum value Relay.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NameSpaceTypefromString(String value)Parses a serialized value to a NameSpaceType instance.StringtoString()static NameSpaceTypevalueOf(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.
-
MIXED
public static final NameSpaceType MIXED
Enum value Mixed.
-
EVENT_HUB
public static final NameSpaceType EVENT_HUB
Enum value EventHub.
-
RELAY
public static final NameSpaceType RELAY
Enum value Relay.
-
-
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:
toStringin classEnum<NameSpaceType>
-
-