public T getMqttTrait() {
        return mqttTrait;
    }
Gets the trait that formed the binding of the operation to MQTT
for this topic.

<p>The provided trait will be either an instance of
{@link PublishTrait} or {@link SubscribeTrait}.

@return Returns the MQTT trait binding.
smithy-mqtt-traits/src/main/java/software/amazon/smithy/mqtt/traits/TopicBinding.java