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
public final class SubscribeTrait extends StringTrait
smithy.mqtt#subscribe trait.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscribeTrait.Provider
-
Constructor Summary
Constructors Constructor Description SubscribeTrait(java.lang.String topic)
SubscribeTrait(java.lang.String topic, SourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Topic
getTopic()
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 Detail
-
ID
public static final ShapeId ID
-
-
Constructor Detail
-
SubscribeTrait
public SubscribeTrait(java.lang.String topic, SourceLocation sourceLocation)
-
SubscribeTrait
public SubscribeTrait(java.lang.String topic)
-
-
Method Detail
-
getTopic
public Topic getTopic()
Gets the parsed topic of the trait.- Returns:
- Returns the topic.
-
-