private void setAttributes(String token, AddTopicReq req, TopicInfoList.TopicInfo topicInfo, String brokerStr,
            String topic) {
        req.setBrokerId(brokerStr);
        req.setTopicName(topic);
        req.setMethod(BATCH_ADD_TOPIC);
        req.setAcceptPublish(topicInfo.acceptPublish);
        req.setAcceptSubscribe(topicInfo.acceptSubscribe);
        req.setType(OP_MODIFY);
        req.setCreateUser(WEB_API);
        req.setDeleteWhen(topicInfo.getDeleteWhen());
        req.setNumPartitions(topicInfo.getNumPartitions());
        req.setUnflushInterval(topicInfo.getUnflushInterval());
        req.setConfModAuthToken(token);
        req.setDeletePolicy(topicInfo.getDeletePolicy());
    }
topic add information

@param brokerIds this is the broker ids
@param targetTopicNames The topic name of the target
@param token authorized key
@return topic data
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/tube/TubeHttpTopicInfoList.java