commonMain.aws.sdk.kotlin.hll.dynamodbmapper.items.ItemConverter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamodb-mapper-jvm Show documentation
Show all versions of dynamodb-mapper-jvm Show documentation
High level DynamoDbMapper client
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.hll.dynamodbmapper.items
import aws.sdk.kotlin.hll.dynamodbmapper.model.Item
import aws.sdk.kotlin.hll.mapping.core.converters.Converter
import aws.smithy.kotlin.runtime.ExperimentalApi
/**
* Defines the logic for converting between objects and DynamoDB items
* @param T The type of objects which will be converted
*/
@ExperimentalApi
public interface ItemConverter : Converter {
public fun convertTo(from: T, onlyAttributes: Set? = null): Item
public override fun convertTo(from: T): Item = convertTo(from, null)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy