com.volcengine.model.tls.response.DescribeTopicResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.tls.response;
import com.alibaba.fastjson.JSONObject;
import com.volcengine.model.tls.TopicInfo;
import com.volcengine.model.tls.exception.LogException;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.http.Header;
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class DescribeTopicResponse extends CommonResponse {
TopicInfo topicInfo;
public DescribeTopicResponse(Header[] headers) {
super(headers);
}
@Override
public DescribeTopicResponse deSerialize(byte[] data, Class clazz) throws LogException {
TopicInfo topicInfo = JSONObject.parseObject(data, TopicInfo.class);
this.setTopicInfo(topicInfo);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy