public void setTopic(String topic) {
        this.topic = topic;
    }
<p>
The topic name of the retained message to retrieve.
</p>

@param topic
       The topic name of the retained message to retrieve.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/GetRetainedMessageRequest.java