Enum AuthorizationMethod
- java.lang.Object
-
- java.lang.Enum<AuthorizationMethod>
-
- com.azure.resourcemanager.apimanagement.models.AuthorizationMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationMethod>
public enum AuthorizationMethod extends Enum<AuthorizationMethod>
Defines values for AuthorizationMethod.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationMethod
fromString(String value)
Parses a serialized value to a AuthorizationMethod instance.String
toString()
static AuthorizationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthorizationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEAD
public static final AuthorizationMethod HEAD
Enum value HEAD.
-
OPTIONS
public static final AuthorizationMethod OPTIONS
Enum value OPTIONS.
-
TRACE
public static final AuthorizationMethod TRACE
Enum value TRACE.
-
GET
public static final AuthorizationMethod GET
Enum value GET.
-
POST
public static final AuthorizationMethod POST
Enum value POST.
-
PUT
public static final AuthorizationMethod PUT
Enum value PUT.
-
PATCH
public static final AuthorizationMethod PATCH
Enum value PATCH.
-
DELETE
public static final AuthorizationMethod DELETE
Enum value DELETE.
-
-
Method Detail
-
values
public static AuthorizationMethod[] 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 (AuthorizationMethod c : AuthorizationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationMethod 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 AuthorizationMethod fromString(String value)
Parses a serialized value to a AuthorizationMethod instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed AuthorizationMethod object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<AuthorizationMethod>
-
-