smithy4s.kinesis4cats.kcl.http4s.generated.Response.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-kcl-http4s_3 Show documentation
Show all versions of kinesis4cats-kcl-http4s_3 Show documentation
Http4s interfaces for the KCL
package kinesis4cats.kcl.http4s.generated
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.string
import smithy4s.schema.Schema.struct
final case class Response(message: String)
object Response extends ShapeTag.Companion[Response] {
val id: ShapeId = ShapeId("kinesis4cats.kcl.http4s.generated", "Response")
val hints: Hints = Hints.empty
// constructor using the original order from the spec
private def make(message: String): Response = Response(message)
implicit val schema: Schema[Response] = struct(
string.required[Response]("message", _.message),
)(make).withId(id).addHints(hints)
}