Class EventHeaderTrait

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

public final class EventHeaderTrait extends AnnotationTrait
Marks a structure member of an event as an event header.

This trait can targets members of a structure marked with the event trait that targets blob, boolean, integer, long, string, or timestamp.

  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

    • EventHeaderTrait

      public EventHeaderTrait(ObjectNode node)
    • EventHeaderTrait

      public EventHeaderTrait()