public EventTopic withDirectoryId(String directoryId) {
        setDirectoryId(directoryId);
        return this;
    }
<p>
The Directory ID of an Directory Service directory that will publish status messages to an Amazon SNS topic.
</p>

@param directoryId
       The Directory ID of an Directory Service directory that will publish status messages to an Amazon SNS
       topic.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/EventTopic.java