@UnstableApi public enum FieldLocation extends Enum<FieldLocation>
| Enum Constant and Description |
|---|
BODY
The field is located in the request body.
|
HEADER
The field is located in the header.
|
PATH
The field is located in the path.
|
QUERY
The field is located in the query.
|
UNSPECIFIED
The location of the field is unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldLocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldLocation PATH
public static final FieldLocation HEADER
public static final FieldLocation QUERY
public static final FieldLocation BODY
public static final FieldLocation UNSPECIFIED
public static FieldLocation[] values()
for (FieldLocation c : FieldLocation.values()) System.out.println(c);
public static FieldLocation 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 nullCopyright © 2020 LeanCloud. All rights reserved.