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

smithy4s.kinesis4cats.kcl.http4s.generated.Response.scala Maven / Gradle / Ivy

There is a newer version: 0.0.32
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy