package com.youran.generate.pojo.vo;

import com.youran.common.pojo.vo.AbstractVO;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

import static com.youran.generate.pojo.example.GenHistoryExample.*;

/**
 * 生成历史VO
 *
 * @author: cbb
 * @date: 2018/3/17
 */
public class GenHistoryListVO extends AbstractVO {

    @ApiModelProperty(notes = N_HISTORYID, example = E_HISTORYID)
    private Integer historyId;

    @ApiModelProperty(notes = N_PROJECTID, example = E_PROJECTID)
    private Integer projectId;

    @ApiModelProperty(notes = N_REMOTEURL, example = E_REMOTEURL)
    private String remoteUrl;

    @ApiModelProperty(notes = N_COMMIT, example = E_COMMIT)
    private String commit;

    @ApiModelProperty(notes = N_BRANCH, example = E_BRANCH)
    private String branch;

    @ApiModelProperty(notes = N_SYSVERSION, example = E_SYSVERSION)
    private String sysVersion;

    @ApiModelProperty(notes = N_PROJECTVERSION, example = E_PROJECTVERSION)
    private Integer projectVersion;

    @ApiModelProperty(notes = N_TEMPLATE_ID, example = E_TEMPLATE_ID)
    private Integer templateId;

    @ApiModelProperty(notes = N_TEMPLATE_INNER_VERSION, example = E_TEMPLATE_INNER_VERSION)
    private Integer templateInnerVersion;

    @ApiModelProperty(notes = N_CREATEDTIME, example = E_CREATEDTIME)
    private Date createdTime;

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public Integer getTemplateInnerVersion() {
        return templateInnerVersion;
    }

    public void setTemplateInnerVersion(Integer templateInnerVersion) {
        this.templateInnerVersion = templateInnerVersion;
    }

    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getRemoteUrl() {
        return remoteUrl;
    }

    public void setRemoteUrl(String remoteUrl) {
        this.remoteUrl = remoteUrl;
    }

    public String getCommit() {
        return commit;
    }

    public void setCommit(String commit) {
        this.commit = commit;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getSysVersion() {
        return sysVersion;
    }

    public void setSysVersion(String sysVersion) {
        this.sysVersion = sysVersion;
    }

    public Integer getProjectVersion() {
        return projectVersion;
    }

    public void setProjectVersion(Integer projectVersion) {
        this.projectVersion = projectVersion;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
            .append("historyId", historyId)
            .append("projectId", projectId)
            .append("remoteUrl", remoteUrl)
            .append("commit", commit)
            .append("branch", branch)
            .append("sysVersion", sysVersion)
            .append("projectVersion", projectVersion)
            .append("createdTime", createdTime)
            .toString();
    }
}
