package com.njcn.pojo.excelBody;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hongawen
 * @Date: 2018/11/13 10:11
 */
public class NodeInformationExcelBody extends BaseRowModel implements Serializable {

    @Column(name = "Node_Index")
    @ExcelProperty(value = "节点序号" ,index = 0)
    private BigDecimal nodeIndex;

    @Column(name = "Node_Name")
    @ExcelProperty(value = "名称" ,index = 1)
    private String nodeName;

    @Column(name = "Node_Desc")
    @ExcelProperty(value = "描述" ,index = 2)
    private String nodeDesc;

    @Column(name = "Node_IP")
    @ExcelProperty(value = "IP" ,index = 3)
    private String nodeIP;

    @Column(name = "Node_Status")
    @ExcelProperty(value = "状态" ,index = 4)
    private BigDecimal nodeStatus;

    public BigDecimal getNodeIndex() {
        return nodeIndex;
    }

    public void setNodeIndex(BigDecimal nodeIndex) {
        this.nodeIndex = nodeIndex;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeDesc() {
        return nodeDesc;
    }

    public void setNodeDesc(String nodeDesc) {
        this.nodeDesc = nodeDesc;
    }

    public String getNodeIP() {
        return nodeIP;
    }

    public void setNodeIP(String nodeIP) {
        this.nodeIP = nodeIP;
    }

    public BigDecimal getNodeStatus() {
        return nodeStatus;
    }

    public void setNodeStatus(BigDecimal nodeStatus) {
        this.nodeStatus = nodeStatus;
    }

    @Override
    public String toString() {
        return "NodeInformationExcelBody{" +
                "nodeIndex=" + nodeIndex +
                ", nodeName='" + nodeName + '\'' +
                ", nodeDesc='" + nodeDesc + '\'' +
                ", nodeIP='" + nodeIP + '\'' +
                ", nodeStatus=" + nodeStatus +
                '}';
    }
}
