package com.njcn.gather.tool.addledger.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 设备保存参数。
 */
@Data
@ApiModel("设备保存参数")
public class AddLedgerEquipmentSaveParam {

    @ApiModelProperty("设备ID")
    private String id;

    @ApiModelProperty("父级项目ID")
    private String projectId;

    @ApiModelProperty(value = "装置名称", required = true)
    @NotBlank(message = "设备名称不能为空")
    private String name;

    @ApiModelProperty(value = "网络设备ID", required = true)
    @NotBlank(message = "设备 ndid 不能为空")
    private String ndid;

    @ApiModelProperty(value = "装置 MAC 地址", required = true)
    @NotBlank(message = "设备 mac 不能为空")
    private String mac;

    @ApiModelProperty("装置类型")
    private String devType;

    @ApiModelProperty(value = "装置型号", required = true)
    @NotBlank(message = "设备 dev_model 不能为空")
    private String devModel;

    @ApiModelProperty("装置接入方式")
    private String devAccessMethod;

    @ApiModelProperty("前置服务器IP")
    private String nodeId;

    @ApiModelProperty("前置进程号")
    private Integer nodeProcess;

    @ApiModelProperty("是否支持升级")
    private Integer upgrade;
}
