Class SubscribeTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.model.traits.StringTrait
software.amazon.smithy.mqtt.traits.SubscribeTrait
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
smithy.mqtt#subscribe trait.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubscribeTrait
(String topic) SubscribeTrait
(String topic, SourceLocation sourceLocation) -
Method Summary
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
-
-
Constructor Details
-
SubscribeTrait
-
SubscribeTrait
-
-
Method Details
-
getTopic
Gets the parsed topic of the trait.- Returns:
- Returns the topic.
-