Class PublishTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.model.traits.StringTrait
software.amazon.smithy.mqtt.traits.PublishTrait
All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.model.shapes.ToShapeId, software.amazon.smithy.model.traits.Trait

public final class PublishTrait extends software.amazon.smithy.model.traits.StringTrait
smithy.mqtt#publish trait.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final software.amazon.smithy.model.shapes.ShapeId
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PublishTrait(String topic, software.amazon.smithy.model.SourceLocation sourceLocation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the parsed topic of the trait.

    Methods inherited from class software.amazon.smithy.model.traits.StringTrait

    createNode, getValue

    Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait

    equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.smithy.model.traits.Trait

    isSynthetic
  • Field Details

    • ID

      public static final software.amazon.smithy.model.shapes.ShapeId ID
  • Constructor Details

    • PublishTrait

      public PublishTrait(String topic, software.amazon.smithy.model.SourceLocation sourceLocation)
    • PublishTrait

      public PublishTrait(String topic)
  • Method Details

    • getTopic

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