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

smithy.api.HttpApiKeyLocations.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
package smithy.api

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 HttpApiKeyLocations(_value: String, _name: String, _intValue: Int, _hints: Hints) extends Enumeration.Value {
  override type EnumType = HttpApiKeyLocations
  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] = HttpApiKeyLocations
  @inline final def widen: HttpApiKeyLocations = this
}
object HttpApiKeyLocations extends Enumeration[HttpApiKeyLocations] with ShapeTag.Companion[HttpApiKeyLocations] {
  val id: ShapeId = ShapeId("smithy.api", "HttpApiKeyLocations")

  val hints: Hints = Hints(
    smithy.api.Private(),
  ).lazily

  case object HEADER extends HttpApiKeyLocations("header", "HEADER", 0, Hints.empty)
  case object QUERY extends HttpApiKeyLocations("query", "QUERY", 1, Hints.empty)

  val values: List[HttpApiKeyLocations] = List(
    HEADER,
    QUERY,
  )
  val tag: EnumTag[HttpApiKeyLocations] = EnumTag.ClosedStringEnum
  implicit val schema: Schema[HttpApiKeyLocations] = enumeration(tag, values).withId(id).addHints(hints)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy