Enum MarshallLocation
- java.lang.Object
-
- java.lang.Enum<MarshallLocation>
-
- software.amazon.awssdk.core.protocol.MarshallLocation
-
- All Implemented Interfaces:
Serializable,Comparable<MarshallLocation>
@SdkProtectedApi public enum MarshallLocation extends Enum<MarshallLocation>
Enum representing the various locations data can be marshalled to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GREEDY_PATHReplace the placeholder in the request URI (greedy).HEADERHTTP header.PATHReplace the placeholder in the request URI (non-greedy).PAYLOADPayload of the request (format depends on the protocol/content-type)QUERY_PARAMAdd as a query parameter.STATUS_CODEHTTP status code of response.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarshallLocationvalueOf(String name)Returns the enum constant of this type with the specified name.static MarshallLocation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAYLOAD
public static final MarshallLocation PAYLOAD
Payload of the request (format depends on the protocol/content-type)
-
QUERY_PARAM
public static final MarshallLocation QUERY_PARAM
Add as a query parameter.
-
HEADER
public static final MarshallLocation HEADER
HTTP header.
-
PATH
public static final MarshallLocation PATH
Replace the placeholder in the request URI (non-greedy).
-
GREEDY_PATH
public static final MarshallLocation GREEDY_PATH
Replace the placeholder in the request URI (greedy). This location is really the same asPATH, the only difference is whether it's URL encoded or not. Members bound to thePATHwill be URL encoded before replacing, members bound toGREEDY_PATHwill not be URL encoded.
-
STATUS_CODE
public static final MarshallLocation STATUS_CODE
HTTP status code of response.
-
-
Method Detail
-
values
public static MarshallLocation[] 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 (MarshallLocation c : MarshallLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarshallLocation 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
-
-