Class SimpleTypeQueryMarshaller<T>
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.internal.marshall.SimpleTypeQueryMarshaller<T>
-
- Type Parameters:
T- Type being marshalled.
- All Implemented Interfaces:
Marshaller<T>,QueryMarshaller<T>
public final class SimpleTypeQueryMarshaller<T> extends Object implements QueryMarshaller<T>
Simple implementation ofQueryMarshallerthat converts a given value to a string usingStringToValueConverter.StringToValueand emits it as a query param.
-
-
Field Summary
Fields Modifier and Type Field Description static QueryMarshaller<Boolean>BOOLEANstatic QueryMarshaller<Double>DOUBLEstatic QueryMarshaller<Float>FLOATstatic QueryMarshaller<Instant>INSTANTstatic QueryMarshaller<Integer>INTEGERstatic QueryMarshaller<Long>LONGstatic QueryMarshaller<Void>NULLstatic QueryMarshaller<SdkBytes>SDK_BYTESstatic QueryMarshaller<Short>SHORTstatic QueryMarshaller<String>STRING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<MarshallLocation,TimestampFormatTrait.Format>defaultTimestampFormats()voidmarshall(QueryMarshallerContext context, String path, T val, SdkField<T> sdkField)
-
-
-
Field Detail
-
STRING
public static final QueryMarshaller<String> STRING
-
INTEGER
public static final QueryMarshaller<Integer> INTEGER
-
FLOAT
public static final QueryMarshaller<Float> FLOAT
-
BOOLEAN
public static final QueryMarshaller<Boolean> BOOLEAN
-
DOUBLE
public static final QueryMarshaller<Double> DOUBLE
-
LONG
public static final QueryMarshaller<Long> LONG
-
SHORT
public static final QueryMarshaller<Short> SHORT
-
INSTANT
public static final QueryMarshaller<Instant> INSTANT
-
SDK_BYTES
public static final QueryMarshaller<SdkBytes> SDK_BYTES
-
NULL
public static final QueryMarshaller<Void> NULL
-
-
Method Detail
-
marshall
public void marshall(QueryMarshallerContext context, String path, T val, SdkField<T> sdkField)
- Specified by:
marshallin interfaceQueryMarshaller<T>
-
defaultTimestampFormats
public static Map<MarshallLocation,TimestampFormatTrait.Format> defaultTimestampFormats()
- Returns:
- Default timestamp formats for each location supported by the Query protocol.
-
-