Class UnitTypeTrait

java.lang.Object
software.amazon.smithy.model.traits.AnnotationTrait
software.amazon.smithy.model.traits.UnitTypeTrait
All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait

public final class UnitTypeTrait extends AnnotationTrait
  • Field Details

    • ID

      public static final ShapeId ID
      The unitType shape ID.
    • UNIT

      public static final ShapeId UNIT
      The shape ID of the built-in Unit type that uses this trait.
  • Constructor Details

    • UnitTypeTrait

      public UnitTypeTrait(ObjectNode node)
    • UnitTypeTrait

      public UnitTypeTrait()