scala.com.amazonaws.kinesis.StreamMode.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Cats tooling for the Smithy4s Kinesis Client
package com.amazonaws.kinesis
import smithy4s.Enumeration
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.EnumTag
import smithy4s.schema.Schema.enumeration
sealed abstract class StreamMode(_value: String, _name: String, _intValue: Int, _hints: Hints) extends Enumeration.Value {
override type EnumType = StreamMode
override val value: String = _value
override val name: String = _name
override val intValue: Int = _intValue
override val hints: Hints = _hints
override def enumeration: Enumeration[EnumType] = StreamMode
@inline final def widen: StreamMode = this
}
object StreamMode extends Enumeration[StreamMode] with ShapeTag.Companion[StreamMode] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "StreamMode")
val hints: Hints = Hints(
alloy.OpenEnum(),
)
case object ON_DEMAND extends StreamMode("ON_DEMAND", "ON_DEMAND", 1, Hints())
case object PROVISIONED extends StreamMode("PROVISIONED", "PROVISIONED", 0, Hints())
final case class $Unknown(str: String) extends StreamMode(str, "$Unknown", -1, Hints.empty)
val $unknown: String => StreamMode = $Unknown(_)
val values: List[StreamMode] = List(
ON_DEMAND,
PROVISIONED,
)
val tag: EnumTag[StreamMode] = EnumTag.OpenStringEnum($unknown)
implicit val schema: Schema[StreamMode] = enumeration(tag, values).withId(id).addHints(hints)
}