Class EventPayloadTrait

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

public final class EventPayloadTrait extends AnnotationTrait
Marks a structure member of an event as the event payload. This trait can targets members of a structure marked with the event trait that targets a blob or structure.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

    • EventPayloadTrait

      public EventPayloadTrait(ObjectNode node)
    • EventPayloadTrait

      public EventPayloadTrait()