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

com.volcengine.model.tls.LogItem Maven / Gradle / Ivy

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

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@Data
public class LogItem {
    private long time;
    private List contents;

    public LogItem() {
        this.contents = new ArrayList<>();
    }

    public LogItem(long time) {
        this.time = time;
        this.contents = new ArrayList<>();
    }

    public LogItem(long time, List contents) {
        this.time = time;
        this.contents = contents;
    }

    public void addContent(String key, String value) {
        this.addContent(new LogContent(key, value));
    }

    public void addContent(LogContent content) {
        this.contents.add(content);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy