All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.amazon.firehose.FirehoseMoshi.kt Maven / Gradle / Ivy

package org.http4k.connect.amazon.firehose

import com.squareup.moshi.JsonAdapter
import org.http4k.connect.amazon.model.DeliveryStreamName
import org.http4k.format.AwsMoshiBuilder
import org.http4k.format.ConfigurableMoshi
import org.http4k.format.value
import se.ansman.kotshi.KotshiJsonAdapterFactory

object FirehoseMoshi : ConfigurableMoshi(
    AwsMoshiBuilder(FirehoseJsonAdapterFactory)
        .value(DeliveryStreamName)
        .done()
)

@KotshiJsonAdapterFactory
object FirehoseJsonAdapterFactory : JsonAdapter.Factory by KotshiFirehoseJsonAdapterFactory




© 2015 - 2025 Weber Informatics LLC | Privacy Policy