com.volcengine.model.tls.response.DescribeRulesResponse 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.annotation.JSONField;
import com.volcengine.model.tls.RuleInfo;
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 static com.volcengine.model.tls.Const.RULE_INFOS;
import static com.volcengine.model.tls.Const.TOTAL;
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class DescribeRulesResponse extends CommonResponse {
@JSONField(name = TOTAL)
int total;
@JSONField(name = RULE_INFOS)
List ruleInfos;
public DescribeRulesResponse(Header[] headers) {
super(headers);
}
@Override
public DescribeRulesResponse deSerialize(byte[] data, Class clazz) throws LogException {
DescribeRulesResponse response = (DescribeRulesResponse) super.deSerialize(data, clazz);
this.setTotal(response.getTotal());
this.setRuleInfos(response.getRuleInfos());
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy