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

com.volcengine.model.tls.response.DescribeLogContextResponse Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.tls.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.tls.exception.LogException;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.http.Header;

import java.util.List;
import java.util.Map;

import static com.volcengine.model.tls.Const.*;

@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class DescribeLogContextResponse extends CommonResponse {

    @JSONField(name = PREV_OVER)
    Boolean prevOver;

    @JSONField(name = NEXT_OVER)
    Boolean nextOver;

    @JSONField(name = LOG_CONTEXT_INFOS)
    List> logContextInfos;

    public DescribeLogContextResponse(Header[] headers) {
        super(headers);
    }

    @Override
    public DescribeLogContextResponse deSerialize(byte[] data, Class clazz) throws LogException {
        DescribeLogContextResponse response = (DescribeLogContextResponse) super.deSerialize(data, clazz);
        this.setPrevOver(response.getPrevOver());
        this.setNextOver(response.getNextOver());
        this.setLogContextInfos(response.getLogContextInfos());
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy