Enum HttpChecksumProperty.Location
- java.lang.Object
-
- java.lang.Enum<HttpChecksumProperty.Location>
-
- software.amazon.smithy.model.traits.HttpChecksumProperty.Location
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpChecksumProperty.Location>
,ToNode
- Enclosing class:
- HttpChecksumProperty
public static enum HttpChecksumProperty.Location extends java.lang.Enum<HttpChecksumProperty.Location> implements ToNode
Location where the checksum is supplied.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpChecksumProperty.Location
fromNode(Node node)
Create a Location from a Node.static HttpChecksumProperty.Location
fromString(java.lang.String value)
Returns a Location enum from String.Node
toNode()
Converts a value to aNode
.java.lang.String
toString()
static HttpChecksumProperty.Location
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpChecksumProperty.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final HttpChecksumProperty.Location HEADER
The checksum is sent in an HTTP Header.
-
TRAILER
public static final HttpChecksumProperty.Location TRAILER
The checksum is sent in a trailer field.
-
-
Method Detail
-
values
public static HttpChecksumProperty.Location[] 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 (HttpChecksumProperty.Location c : HttpChecksumProperty.Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpChecksumProperty.Location valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromNode
public static HttpChecksumProperty.Location fromNode(Node node)
Create a Location from a Node.- Parameters:
node
- Node to create the Location from.- Returns:
- Returns the created Location.
- Throws:
ExpectationNotMetException
- when given an invalid Node.
-
fromString
public static HttpChecksumProperty.Location fromString(java.lang.String value)
Returns a Location enum from String.- Parameters:
value
- string to map Location enum to.- Returns:
- Location if location string is valid.
- Throws:
java.lang.IllegalArgumentException
- when given an invalid location string.java.lang.NullPointerException
- when given a null location string.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HttpChecksumProperty.Location>
-
-