package com.jd.platform.hotkey.dashboard.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author liyunfeng31
 */
public class Summary implements Serializable {

    private Integer id;

    private String indexName;

    private String rule;

    private String app;

    private Integer val1;

    private Integer val2;

    private BigDecimal val3;

    private Integer days;

    private Integer hours;

    private Long minutes;

    private Long seconds;

    private Integer bizType;

    private String uuid;

    private Date createTime;

    public Summary() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public Integer getVal1() {
        return val1;
    }

    public void setVal1(Integer val1) {
        this.val1 = val1;
    }

    public Integer getVal2() {
        return val2;
    }

    public void setVal2(Integer val2) {
        this.val2 = val2;
    }

    public BigDecimal getVal3() {
        return val3;
    }

    public void setVal3(BigDecimal val3) {
        this.val3 = val3;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Integer getHours() {
        return hours;
    }

    public void setHours(Integer hours) {
        this.hours = hours;
    }

    public Long getMinutes() {
        return minutes;
    }

    public void setMinutes(Long minutes) {
        this.minutes = minutes;
    }

    public Long getSeconds() {
        return seconds;
    }

    public void setSeconds(Long seconds) {
        this.seconds = seconds;
    }

    public Integer getBizType() {
        return bizType;
    }

    public void setBizType(Integer bizType) {
        this.bizType = bizType;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public static SummaryBuilder aSummary() {
        return new SummaryBuilder();
    }

    public static final class SummaryBuilder {
        private Integer id;
        private String indexName;
        private String rule;
        private String app;
        private Integer val1;
        private Integer val2;
        private BigDecimal val3;
        private Integer days;
        private Integer hours;
        private Long minutes;
        private Long seconds;
        private Integer bizType;
        private String uuid;
        private Date createTime;

        private SummaryBuilder() {
        }

        public SummaryBuilder id(Integer id) {
            this.id = id;
            return this;
        }

        public SummaryBuilder indexName(String indexName) {
            this.indexName = indexName;
            return this;
        }

        public SummaryBuilder rule(String rule) {
            this.rule = rule;
            return this;
        }

        public SummaryBuilder app(String app) {
            this.app = app;
            return this;
        }

        public SummaryBuilder val1(Integer val1) {
            this.val1 = val1;
            return this;
        }

        public SummaryBuilder val2(Integer val2) {
            this.val2 = val2;
            return this;
        }

        public SummaryBuilder val3(BigDecimal val3) {
            this.val3 = val3;
            return this;
        }

        public SummaryBuilder days(Integer days) {
            this.days = days;
            return this;
        }

        public SummaryBuilder hours(Integer hours) {
            this.hours = hours;
            return this;
        }

        public SummaryBuilder minutes(Long minutes) {
            this.minutes = minutes;
            return this;
        }

        public SummaryBuilder seconds(Long seconds) {
            this.seconds = seconds;
            return this;
        }

        public SummaryBuilder bizType(Integer bizType) {
            this.bizType = bizType;
            return this;
        }

        public SummaryBuilder uuid(String uuid) {
            this.uuid = uuid;
            return this;
        }

        public SummaryBuilder createTime(Date createTime) {
            this.createTime = createTime;
            return this;
        }

        public Summary build() {
            Summary summary = new Summary();
            summary.setId(id);
            summary.setIndexName(indexName);
            summary.setRule(rule);
            summary.setApp(app);
            summary.setVal1(val1);
            summary.setVal2(val2);
            summary.setVal3(val3);
            summary.setDays(days);
            summary.setHours(hours);
            summary.setMinutes(minutes);
            summary.setSeconds(seconds);
            summary.setBizType(bizType);
            summary.setUuid(uuid);
            summary.setCreateTime(createTime);
            return summary;
        }
    }
}