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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventPayloadTrait.Provider
-
Constructor Summary
Constructors Constructor Description EventPayloadTrait()
EventPayloadTrait(ObjectNode node)
-
Method Summary
-
Methods inherited from class software.amazon.smithy.model.traits.AnnotationTrait
equals, getSourceLocation, hashCode, toNode, toShapeId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
-
-
-
Field Detail
-
ID
public static final ShapeId ID
-
-
Constructor Detail
-
EventPayloadTrait
public EventPayloadTrait(ObjectNode node)
-
EventPayloadTrait
public EventPayloadTrait()
-
-