LResContext

fun <T, HReq, LReq, LRes> LResContext(highLevelRequest: HReq, serializeSchema: ItemSchema<T>, mapperContext: MapperContext<T>, lowLevelRequest: LReq, lowLevelResponse: LRes, deserializeSchema: ItemSchema<T>, error: Throwable? = null): LResContext<T, HReq, LReq, LRes>

Creates a new LResContext

Parameters

T

The type of objects being converted to/from DynamoDB items

HReq

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

LReq

The type of low-level request object (e.g., LowLevelGetItemRequest)

LRes

The type of low-level response object (e.g., LowLevelGetItemResponse)

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

lowLevelRequest

The low-level request object which is to be used in the low-level operation invocation

lowLevelResponse

The low-level response which is to be deserialized into a high-level response object

deserializeSchema

The ItemSchema to use for deserializing items into objects

error

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