Enum MarshallingKnownType
- java.lang.Object
-
- java.lang.Enum<MarshallingKnownType>
-
- software.amazon.awssdk.core.protocol.MarshallingKnownType
-
- All Implemented Interfaces:
Serializable,Comparable<MarshallingKnownType>
public enum MarshallingKnownType extends Enum<MarshallingKnownType>
Enum of known types of marshalling types. This enum is used to use EnumMap's for fast lookup of traits.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarshallingKnownTypefrom(Class<?> clazz)static MarshallingKnownTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MarshallingKnownType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final MarshallingKnownType NULL
-
STRING
public static final MarshallingKnownType STRING
-
INTEGER
public static final MarshallingKnownType INTEGER
-
LONG
public static final MarshallingKnownType LONG
-
FLOAT
public static final MarshallingKnownType FLOAT
-
DOUBLE
public static final MarshallingKnownType DOUBLE
-
BIG_DECIMAL
public static final MarshallingKnownType BIG_DECIMAL
-
BOOLEAN
public static final MarshallingKnownType BOOLEAN
-
INSTANT
public static final MarshallingKnownType INSTANT
-
SDK_BYTES
public static final MarshallingKnownType SDK_BYTES
-
SDK_POJO
public static final MarshallingKnownType SDK_POJO
-
LIST
public static final MarshallingKnownType LIST
-
MAP
public static final MarshallingKnownType MAP
-
SHORT
public static final MarshallingKnownType SHORT
-
BYTE
public static final MarshallingKnownType BYTE
-
DOCUMENT
public static final MarshallingKnownType DOCUMENT
-
-
Method Detail
-
values
public static MarshallingKnownType[] 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 (MarshallingKnownType c : MarshallingKnownType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarshallingKnownType 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
-
from
public static MarshallingKnownType from(Class<?> clazz)
-
-