293 lines
5.5 KiB
Java
293 lines
5.5 KiB
Java
/**
|
||
*@Title: BaseIpConfig.java
|
||
*@Package com.nis.domain.restful
|
||
*@Description TODO
|
||
*@author dell
|
||
*@date 2018年2月5日 下午5:02:24
|
||
*@version 版本号
|
||
*/
|
||
package com.nis.domain.configuration;
|
||
|
||
import com.google.gson.annotations.Expose;
|
||
import com.google.gson.annotations.SerializedName;
|
||
import com.nis.util.excel.ExcelField;
|
||
|
||
/**
|
||
* @ClassName: BaseIpConfig.java
|
||
* @Description: 基础IP配置
|
||
* @author (dell)
|
||
* @date 2018年2月5日 下午5:02:24
|
||
* @version V1.0
|
||
*/
|
||
public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
|
||
/**
|
||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||
*
|
||
* @since 1.0.0
|
||
*/
|
||
private static final long serialVersionUID = -1939538118388300002L;
|
||
|
||
/**
|
||
* 创建一个新的实例 BaseIpCfg.
|
||
*
|
||
*/
|
||
public BaseIpCfg() {
|
||
super();
|
||
// TODO Auto-generated constructor stub
|
||
}
|
||
/**
|
||
* ip类型
|
||
*/
|
||
@Expose
|
||
@SerializedName("ipType")
|
||
@ExcelField(title="ip_type",dictType="IP_TYPE")
|
||
protected Integer ipType;
|
||
@ExcelField(title="ip_pattern",dictType="IP_PATTERN")
|
||
protected Integer ipPattern;
|
||
@ExcelField(title="client_ip")
|
||
protected String srcIpAddress;
|
||
@ExcelField(title="server_ip")
|
||
protected String destIpAddress;
|
||
@ExcelField(title="port_pattern",dictType="PORT_PATTERN")
|
||
protected Integer portPattern;
|
||
@ExcelField(title="client_port")
|
||
protected String srcPort;
|
||
@ExcelField(title="server_port")
|
||
protected String destPort;
|
||
protected Integer dnsStrategyId;
|
||
@ExcelField(title="ir_type",dictType="IR_TYPE")
|
||
protected Integer irType;
|
||
@ExcelField(title="group_name")
|
||
protected String groupName;
|
||
|
||
/**
|
||
* irType
|
||
* @return irType
|
||
*/
|
||
|
||
public Integer getIrType() {
|
||
return irType;
|
||
}
|
||
/**
|
||
* @param irType the irType to set
|
||
*/
|
||
public void setIrType(Integer irType) {
|
||
this.irType = irType;
|
||
}
|
||
/**
|
||
* groupName
|
||
* @return groupName
|
||
*/
|
||
|
||
public String getGroupName() {
|
||
return groupName;
|
||
}
|
||
/**
|
||
* @param groupName the groupName to set
|
||
*/
|
||
public void setGroupName(String groupName) {
|
||
this.groupName = groupName;
|
||
}
|
||
/**
|
||
* 方向
|
||
*/
|
||
@Expose
|
||
@SerializedName("direction")
|
||
protected Integer direction ;
|
||
/**
|
||
* 方向
|
||
*/
|
||
@Expose
|
||
@SerializedName("protocol")
|
||
protected Integer protocol ;
|
||
/**
|
||
* 协议ID
|
||
*/
|
||
@Expose
|
||
@SerializedName("protocolId")
|
||
protected Integer protocolId ;
|
||
/**
|
||
* 限速比例
|
||
*/
|
||
protected String ratelimit ;
|
||
|
||
/**
|
||
* ratelimit
|
||
* @return ratelimit
|
||
*/
|
||
|
||
public String getRatelimit() {
|
||
return ratelimit;
|
||
}
|
||
/**
|
||
* @param ratelimit the ratelimit to set
|
||
*/
|
||
public void setRatelimit(String ratelimit) {
|
||
this.ratelimit = ratelimit;
|
||
}
|
||
/**
|
||
* ipType
|
||
* @return ipType
|
||
*/
|
||
|
||
public Integer getIpType() {
|
||
return ipType;
|
||
}
|
||
/**
|
||
* @param ipType the ipType to set
|
||
*/
|
||
public void setIpType(Integer ipType) {
|
||
this.ipType = ipType;
|
||
}
|
||
|
||
/**
|
||
* direction
|
||
* @return direction
|
||
*/
|
||
|
||
public Integer getDirection() {
|
||
return direction;
|
||
}
|
||
/**
|
||
* @param direction the direction to set
|
||
*/
|
||
public void setDirection(Integer direction) {
|
||
this.direction = direction;
|
||
}
|
||
/**
|
||
* protocol
|
||
* @return protocol
|
||
*/
|
||
|
||
public Integer getProtocol() {
|
||
return protocol;
|
||
}
|
||
/**
|
||
* @param protocol the protocol to set
|
||
*/
|
||
public void setProtocol(Integer protocol) {
|
||
this.protocol = protocol;
|
||
}
|
||
/**
|
||
* protocolId
|
||
* @return protocolId
|
||
*/
|
||
|
||
public Integer getProtocolId() {
|
||
return protocolId;
|
||
}
|
||
/**
|
||
* @param protocolId the protocolId to set
|
||
*/
|
||
public void setProtocolId(Integer protocolId) {
|
||
this.protocolId = protocolId;
|
||
}
|
||
|
||
/**
|
||
* ipPattern
|
||
* @return ipPattern
|
||
*/
|
||
|
||
public Integer getIpPattern() {
|
||
return ipPattern;
|
||
}
|
||
/**
|
||
* @param ipPattern the ipPattern to set
|
||
*/
|
||
public void setIpPattern(Integer ipPattern) {
|
||
this.ipPattern = ipPattern;
|
||
}
|
||
/**
|
||
* portPattern
|
||
* @return portPattern
|
||
*/
|
||
|
||
public Integer getPortPattern() {
|
||
return portPattern;
|
||
}
|
||
/**
|
||
* @param portPattern the portPattern to set
|
||
*/
|
||
public void setPortPattern(Integer portPattern) {
|
||
this.portPattern = portPattern;
|
||
}
|
||
|
||
/**
|
||
* srcIpAddress
|
||
* @return srcIpAddress
|
||
*/
|
||
|
||
public String getSrcIpAddress() {
|
||
return srcIpAddress;
|
||
}
|
||
/**
|
||
* @param srcIpAddress the srcIpAddress to set
|
||
*/
|
||
public void setSrcIpAddress(String srcIpAddress) {
|
||
this.srcIpAddress = srcIpAddress;
|
||
}
|
||
/**
|
||
* destIpAddress
|
||
* @return destIpAddress
|
||
*/
|
||
|
||
public String getDestIpAddress() {
|
||
return destIpAddress;
|
||
}
|
||
/**
|
||
* @param destIpAddress the destIpAddress to set
|
||
*/
|
||
public void setDestIpAddress(String destIpAddress) {
|
||
this.destIpAddress = destIpAddress;
|
||
}
|
||
/**
|
||
* srcPort
|
||
* @return srcPort
|
||
*/
|
||
|
||
public String getSrcPort() {
|
||
return srcPort;
|
||
}
|
||
/**
|
||
* @param srcPort the srcPort to set
|
||
*/
|
||
public void setSrcPort(String srcPort) {
|
||
this.srcPort = srcPort;
|
||
}
|
||
/**
|
||
* destPort
|
||
* @return destPort
|
||
*/
|
||
|
||
public String getDestPort() {
|
||
return destPort;
|
||
}
|
||
/**
|
||
* @param destPort the destPort to set
|
||
*/
|
||
public void setDestPort(String destPort) {
|
||
this.destPort = destPort;
|
||
}
|
||
|
||
/**
|
||
* dnsStrategyId
|
||
* @return dnsStrategyId
|
||
*/
|
||
|
||
public Integer getDnsStrategyId() {
|
||
return dnsStrategyId;
|
||
}
|
||
/**
|
||
* @param dnsStrategyId the dnsStrategyId to set
|
||
*/
|
||
public void setDnsStrategyId(Integer dnsStrategyId) {
|
||
this.dnsStrategyId = dnsStrategyId;
|
||
}
|
||
@Override
|
||
public void initDefaultValue(){
|
||
super.initDefaultValue();
|
||
this.direction = 0;
|
||
}
|
||
|
||
}
|