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

com.volcengine.model.tls.request.WebTracksRequest Maven / Gradle / Ivy

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

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

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

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

@Data
@NoArgsConstructor
public class WebTracksRequest {
    @JSONField(serialize = false)
    String topicId;

    @JSONField(serialize = false)
    String projectId;

    @JSONField(serialize = false)
    String compressType = LZ4;

    @JSONField(name = LOGS)
    List> logs;

    @JSONField(name = SOURCE)
    String source;

    /**
     * @return 日志主题 ID
     */
    public String getTopicId() {
        return topicId;
    }

    /**
     * @param topicId 日志主题 ID
     */
    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    /**
     * @return 日志项目 ID
     */
    public String getProjectId() {
        return projectId;
    }

    /**
     * @param projectId 日志项目 ID
     */
    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    /**
     * @return 请求体的压缩格式支持lz4。默认不压缩
     */
    public String getCompressType() {
        return compressType;
    }

    /**
     * @param compressType 请求体的压缩格式支持lz4,默认lz4压缩
     */
    public void setCompressType(String compressType) {
        this.compressType = compressType;
    }

    /**
     * @return 日志内容
     */
    public List> getLogs() {
        return logs;
    }

    /**
     * @param logs 日志内容
     */
    public void setLogs(List> logs) {
        this.logs = logs;
    }

    /**
     * @return 日志来源
     */
    public String getSource() {
        return source;
    }

    /**
     * @param source 日志来源
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * @return 检验必填参数,true合法false不合法
     */
    public boolean CheckValidation() {
        if (this.topicId == null || this.projectId == null || this.logs == null) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy