All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.datahub.model.ListTopicResult Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.model;

import java.util.ArrayList;
import java.util.List;

public class ListTopicResult extends Result {
    private com.aliyun.datahub.client.model.ListTopicResult proxyResult;

    public ListTopicResult(com.aliyun.datahub.client.model.ListTopicResult proxyResult) {
        this.proxyResult = proxyResult;
        setRequestId(proxyResult.getRequestId());
    }

    public ListTopicResult() {
        proxyResult = new com.aliyun.datahub.client.model.ListTopicResult();
    }

    public void setTopics(List topics) {
        proxyResult.setTopicNames(topics);
    }

    public void addTopic(String topic) {
        List topicNames = proxyResult.getTopicNames();
        if (topicNames == null) {
            topicNames = new ArrayList<>();
            proxyResult.setTopicNames(topicNames);
        }
        topicNames.add(topic);
    }

    public List getTopics() {
        return proxyResult.getTopicNames();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy