smithy4s.com.amazonaws.kinesis.ConsumerStatus.scala Maven / Gradle / Ivy
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 ConsumerStatus(_value: String, _name: String, _intValue: Int, _hints: Hints) extends Enumeration.Value {
override type EnumType = ConsumerStatus
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] = ConsumerStatus
@inline final def widen: ConsumerStatus = this
}
object ConsumerStatus extends Enumeration[ConsumerStatus] with ShapeTag.Companion[ConsumerStatus] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "ConsumerStatus")
val hints: Hints = Hints(
alloy.OpenEnum(),
).lazily
case object CREATING extends ConsumerStatus("CREATING", "CREATING", 0, Hints.empty)
case object DELETING extends ConsumerStatus("DELETING", "DELETING", 1, Hints.empty)
case object ACTIVE extends ConsumerStatus("ACTIVE", "ACTIVE", 2, Hints.empty)
final case class $Unknown(str: String) extends ConsumerStatus(str, "$Unknown", -1, Hints.empty)
val $unknown: String => ConsumerStatus = $Unknown(_)
val values: List[ConsumerStatus] = List(
CREATING,
DELETING,
ACTIVE,
)
val tag: EnumTag[ConsumerStatus] = EnumTag.OpenStringEnum($unknown)
implicit val schema: Schema[ConsumerStatus] = enumeration(tag, values).withId(id).addHints(hints)
}