Enum AmqpResponseCode
- java.lang.Object
-
- java.lang.Enum<AmqpResponseCode>
-
- com.microsoft.azure.eventhubs.impl.AmqpResponseCode
-
- All Implemented Interfaces:
Serializable
,Comparable<AmqpResponseCode>
public enum AmqpResponseCode extends Enum<AmqpResponseCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTED
BAD_REQUEST
FORBIDDEN
INTERNAL_SERVER_ERROR
NOT_FOUND
OK
UNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static AmqpResponseCode
valueOf(int value)
Returns the enum constant of this type with the specified name.static AmqpResponseCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AmqpResponseCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPTED
public static final AmqpResponseCode ACCEPTED
-
OK
public static final AmqpResponseCode OK
-
BAD_REQUEST
public static final AmqpResponseCode BAD_REQUEST
-
NOT_FOUND
public static final AmqpResponseCode NOT_FOUND
-
FORBIDDEN
public static final AmqpResponseCode FORBIDDEN
-
INTERNAL_SERVER_ERROR
public static final AmqpResponseCode INTERNAL_SERVER_ERROR
-
UNAUTHORIZED
public static final AmqpResponseCode UNAUTHORIZED
-
-
Method Detail
-
values
public static AmqpResponseCode[] 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 (AmqpResponseCode c : AmqpResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AmqpResponseCode 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
-
valueOf
public static AmqpResponseCode valueOf(int value)
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:
value
- 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
-
getValue
public int getValue()
-
-