java.lang.Object
io.github.springwolf.asyncapi.v3.model.ExtendableObject
io.github.springwolf.asyncapi.v3.model.channel.message.MessageTrait
All Implemented Interfaces:
Reference

public class MessageTrait extends ExtendableObject implements Reference
Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits.

If you're looking to apply traits to an operation, see the Operation Trait Object.
See Also:
  • Constructor Details

    • MessageTrait

      public MessageTrait()
  • Method Details

    • getRef

      public String getRef()
      Description copied from interface: Reference
      Required. The reference string.
      Specified by:
      getRef in interface Reference