public enum SdkHttpMethod extends Enum<SdkHttpMethod>
Enum Constant and Description |
---|
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
Modifier and Type | Method and Description |
---|---|
static SdkHttpMethod |
fromValue(String value) |
static SdkHttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SdkHttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SdkHttpMethod GET
public static final SdkHttpMethod POST
public static final SdkHttpMethod PUT
public static final SdkHttpMethod DELETE
public static final SdkHttpMethod HEAD
public static final SdkHttpMethod PATCH
public static final SdkHttpMethod OPTIONS
public static SdkHttpMethod[] values()
for (SdkHttpMethod c : SdkHttpMethod.values()) System.out.println(c);
public static SdkHttpMethod 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 SdkHttpMethod fromValue(String value)
value
- Raw string representing value of enumIllegalArgumentException
- If value does not represent a known enum value.Copyright © 2017. All rights reserved.