HReqContext

fun <T, S : ItemSchema<T>, HReq> HReqContext(highLevelRequest: HReq, serializeSchema: S, mapperContext: MapperContext<T>, error: Throwable? = null): HReqContext<T, S, HReq>

Creates a new HReqContext

Parameters

highLevelRequest

The high-level request object which is to be serialized into a low-level request object

serializeSchema

The ItemSchema to use for serializing objects into items

mapperContext

Additional, generalized context which may be useful to interceptors

error

The most recent error which occurred, if any. Defaults to null.

Type Parameters

T

The type of objects being converted to/from DynamoDB items

S

The type of schema used for conversion

HReq

The type of high-level request object (e.g., GetItemRequest)