public String getTopic() {
        return this.topic;
    }
<p>
The topic name to which the retained message was published.
</p>

@return The topic name to which the retained message was published.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/RetainedMessageSummary.java