package Ġio . andre wo h ara . d ynam ok t Ċ Ċ import Ġsoftware . amazon . aw ssdk . en hanced . dynamodb . Attribute Converter Ċ import Ġsoftware . amazon . aw ssdk . en hanced . dynamodb . Attribute ValueType Ċ import Ġsoftware . amazon . aw ssdk . en hanced . dynamodb . Enhanced Type Ċ import Ġsoftware . amazon . aw ssdk . services . dynamodb . model . AttributeValue Ċ import Ġjava . time . Instant Ċ Ċ class ĠInstant As Long Attribute Converter : ĠAttribute Converter < Instant > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġtransform From ( input : ĠInstant ): ĠAttribute Value Ġ= ĠAttribute Value . builder () ĊĠĠĠĠĠĠĠ Ġ. n ( input . epoch Second . toString ()) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġoverride Ġfun Ġtransform To ( input : ĠAttribute Value ): ĠInstant Ġ= ĠInstant . of Epoch Second ( input . n (). to Long ()) ĊĊĠĠĠ Ġoverride Ġfun Ġtype (): ĠEn hanced Type < Instant > Ġ= ĠEn hanced Type . of ( Instant :: class . java ) ĊĊĠĠĠ Ġoverride Ġfun Ġattribute ValueType () Ġ= ĠAttribute ValueType . N Ċ }