Enum

smithy.api.Enum
object Enum extends Newtype[List[EnumDefinition]]

Constrains the acceptable values of a string to a fixed set of constant values.

Value parameters

member

An enum definition for the enum trait.

Attributes

Deprecated
[Since version 2.0] The enum trait is replaced by the enum shape in Smithy 2.0
Graph
Supertypes
class Newtype[List[EnumDefinition]]
trait HasId
class Object
trait Matchable
class Any
Self type
Enum.type

Members list

Type members

Inherited classlikes

object hint

Attributes

Inherited from:
Newtype
Supertypes
class Object
trait Matchable
class Any

Inherited types

opaque type Type

Attributes

Inherited from:
Newtype

Value members

Inherited methods

def apply(a: List[EnumDefinition]): Type

Attributes

Inherited from:
Newtype
def unapply(orig: Type): Some[A]

Attributes

Inherited from:
Newtype

Concrete fields

val hints: Hints
val id: ShapeId

Extensions

Inherited extensions

extension (orig: Type)
def value: A

Attributes

Inherited from:
Newtype

Implicits

Implicits

implicit val schema: Schema[Enum]

Inherited implicits

implicit val asBijection: Bijection[List[EnumDefinition], Type]

Attributes

Inherited from:
Newtype
implicit val tag: ShapeTag[Type]

Attributes

Inherited from:
Newtype