public Topic withResource(NotificationResource resource) {
        setResource(resource);
        return this;
    }
@param resource
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/Topic.java