Class PublishTrait

All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait

public final class PublishTrait extends StringTrait
smithy.mqtt#publish trait.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

    • PublishTrait

      public PublishTrait(String topic, SourceLocation sourceLocation)
    • PublishTrait

      public PublishTrait(String topic)
  • Method Details

    • getTopic

      public Topic getTopic()
      Gets the parsed topic of the trait.
      Returns:
      Returns the topic.