This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/src/main/java/com/nis/domain/restful/IpRegion.java

336 lines
6.8 KiB
Java
Raw Normal View History

2017-12-19 14:55:52 +08:00
/**
* @Title: StrRegion.java
* @Package com.nis.domain.restful
* @Description: TODO(用一句话描述该文件做什么)
* @author darnell
* @date 2016年8月29日 下午10:29:45
* @version V1.0
*/
package com.nis.domain.restful;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
2017-12-19 14:55:52 +08:00
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wordnik.swagger.annotations.ApiModelProperty;
/**
* @ClassName: StrRegion
* @Description: TODO(这里用一句话描述这个类的作用)
* @author (darnell)
* @date 2016年8月29日 下午10:29:45
* @version V1.0
*/
2017-12-19 14:55:52 +08:00
public class IpRegion implements Serializable {
/**
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
*/
2017-12-19 14:55:52 +08:00
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "域ID", required = true)
2017-12-19 14:55:52 +08:00
private Long regionId;
@ApiModelProperty(value = "分组ID", required = true)
2017-12-19 14:55:52 +08:00
private Long groupId;
@ApiModelProperty(value = "业务表名称", required = true)
2017-12-19 14:55:52 +08:00
private String tableName;
@ApiModelProperty(value = "地址类型", required = true)
2017-12-19 14:55:52 +08:00
private Integer addrType;
@ApiModelProperty(value = "源IP", required = true)
2017-12-19 14:55:52 +08:00
private String srcIp;
@ApiModelProperty(value = "源IP掩码", required = true)
2017-12-19 14:55:52 +08:00
private String maskSrcIp;
@ApiModelProperty(value = "源端口", required = true)
2017-12-19 14:55:52 +08:00
private String srcPort;
@ApiModelProperty(value = "源端口掩码", required = true)
2017-12-19 14:55:52 +08:00
private String maskSrcPort;
@ApiModelProperty(value = "目的IP", required = true)
2017-12-19 14:55:52 +08:00
private String dstIp;
@ApiModelProperty(value = "目的IP掩码", required = true)
2017-12-19 14:55:52 +08:00
private String maskDstIp;
@ApiModelProperty(value = "目的端口", required = true)
2017-12-19 14:55:52 +08:00
private String dstPort;
@ApiModelProperty(value = "目的端口掩码", required = true)
2017-12-19 14:55:52 +08:00
private String maskDstPort;
@ApiModelProperty(value = "协议", required = true)
2017-12-19 14:55:52 +08:00
private Integer protocol;
@ApiModelProperty(value = "方向", required = true)
2017-12-19 14:55:52 +08:00
private Integer direction;
@ApiModelProperty(value = "有效标志", required = true)
2017-12-19 14:55:52 +08:00
private Integer isValid;
@ApiModelProperty(value = "操作时间", required = true)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
2017-12-19 14:55:52 +08:00
private Date opTime;
@ApiModelProperty(value = "版本序列号", required = true)
2017-12-19 14:55:52 +08:00
private Long procSeq;
2017-12-19 14:55:52 +08:00
@ApiModelProperty(value = "本地更新时间 ", required = true)
private Date lastUpdate;
// 为app协议ip业务添加userregion字段,该业务的ip域需要下发到阀门中,阀门需要userregion字段,校验时需要校验当为app协议ip业务时userregion字段不能为空
@ApiModelProperty(value = "用户自定义域", required = true)
private String userRegion;
2017-12-19 14:55:52 +08:00
@JsonIgnore
public Long getProcSeq() {
return procSeq;
}
public void setProcSeq(Long procSeq) {
this.procSeq = procSeq;
}
2017-12-19 14:55:52 +08:00
@JsonIgnore
public Date getLastUpdate() {
return lastUpdate;
}
public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}
/**
* @return regionId
*/
2017-12-19 14:55:52 +08:00
public Long getRegionId() {
return regionId;
}
/**
* @param regionId
* 要设置的 regionId
*/
2017-12-19 14:55:52 +08:00
public void setRegionId(Long regionId) {
this.regionId = regionId;
}
/**
* @return groupId
*/
2017-12-19 14:55:52 +08:00
public Long getGroupId() {
return groupId;
}
/**
* @param groupId
* 要设置的 groupId
*/
2017-12-19 14:55:52 +08:00
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
/**
* @return addrType
*/
2017-12-19 14:55:52 +08:00
public Integer getAddrType() {
return addrType;
}
/**
* @param addrType
* 要设置的 addrType
*/
2017-12-19 14:55:52 +08:00
public void setAddrType(Integer addrType) {
this.addrType = addrType;
}
/**
* @return srcIp
*/
2017-12-19 14:55:52 +08:00
public String getSrcIp() {
return srcIp;
}
/**
* @param srcIp
* 要设置的 srcIp
*/
2017-12-19 14:55:52 +08:00
public void setSrcIp(String srcIp) {
this.srcIp = srcIp;
}
/**
* @return maskSrcIp
*/
2017-12-19 14:55:52 +08:00
public String getMaskSrcIp() {
return maskSrcIp;
}
/**
* @param maskSrcIp
* 要设置的 maskSrcIp
*/
2017-12-19 14:55:52 +08:00
public void setMaskSrcIp(String maskSrcIp) {
this.maskSrcIp = maskSrcIp;
}
/**
* @return srcPort
*/
2017-12-19 14:55:52 +08:00
public String getSrcPort() {
return srcPort;
}
/**
* @param srcPort
* 要设置的 srcPort
*/
2017-12-19 14:55:52 +08:00
public void setSrcPort(String srcPort) {
this.srcPort = srcPort;
}
/**
* @return maskSrcPort
*/
2017-12-19 14:55:52 +08:00
public String getMaskSrcPort() {
return maskSrcPort;
}
/**
* @param maskSrcPort
* 要设置的 maskSrcPort
*/
2017-12-19 14:55:52 +08:00
public void setMaskSrcPort(String maskSrcPort) {
this.maskSrcPort = maskSrcPort;
}
/**
* @return dstIp
*/
2017-12-19 14:55:52 +08:00
public String getDstIp() {
return dstIp;
}
/**
* @param dstIp
* 要设置的 dstIp
*/
2017-12-19 14:55:52 +08:00
public void setDstIp(String dstIp) {
this.dstIp = dstIp;
}
/**
* @return maskDstIp
*/
2017-12-19 14:55:52 +08:00
public String getMaskDstIp() {
return maskDstIp;
}
/**
* @param maskDstIp
* 要设置的 maskDstIp
*/
2017-12-19 14:55:52 +08:00
public void setMaskDstIp(String maskDstIp) {
this.maskDstIp = maskDstIp;
}
/**
* @return dstPort
*/
2017-12-19 14:55:52 +08:00
public String getDstPort() {
return dstPort;
}
/**
* @param dstPort
* 要设置的 dstPort
*/
2017-12-19 14:55:52 +08:00
public void setDstPort(String dstPort) {
this.dstPort = dstPort;
}
/**
* @return maskDstPort
*/
2017-12-19 14:55:52 +08:00
public String getMaskDstPort() {
return maskDstPort;
}
/**
* @param maskDstPort
* 要设置的 maskDstPort
*/
2017-12-19 14:55:52 +08:00
public void setMaskDstPort(String maskDstPort) {
this.maskDstPort = maskDstPort;
}
/**
* @return protocol
*/
2017-12-19 14:55:52 +08:00
public Integer getProtocol() {
return protocol;
}
/**
* @param protocol
* 要设置的 protocol
*/
2017-12-19 14:55:52 +08:00
public void setProtocol(Integer protocol) {
this.protocol = protocol;
}
/**
* @return direction
*/
2017-12-19 14:55:52 +08:00
public Integer getDirection() {
return direction;
}
/**
* @param direction
* 要设置的 direction
*/
2017-12-19 14:55:52 +08:00
public void setDirection(Integer direction) {
this.direction = direction;
}
/**
* @return isValid
*/
2017-12-19 14:55:52 +08:00
public Integer getIsValid() {
return isValid;
}
/**
* @param isValid
* 要设置的 isValid
*/
2017-12-19 14:55:52 +08:00
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
/**
* @return opTime
*/
2017-12-19 14:55:52 +08:00
public Date getOpTime() {
return opTime;
}
/**
* @param opTime
* 要设置的 opTime
*/
2017-12-19 14:55:52 +08:00
public void setOpTime(Date opTime) {
this.opTime = opTime;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getUserRegion() {
return userRegion;
}
2017-12-19 14:55:52 +08:00
public void setUserRegion(String userRegion) {
this.userRegion = userRegion;
}
2017-12-19 14:55:52 +08:00
}