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-ntc/src/main/java/com/nis/domain/configuration/BaseIpCfg.java

312 lines
6.3 KiB
Java
Raw Normal View History

2018-02-07 14:51:11 +08:00
/**
*@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 java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
2018-07-03 14:55:36 +08:00
import com.nis.util.excel.ExcelField;
2018-02-07 14:51:11 +08:00
/**
* @ClassName: BaseIpConfig.java
* @Description: 基础IP配置
* @author (dell)
* @date 2018年2月5日 下午5:02:24
* @version V1.0
*/
public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
2018-02-07 14:51:11 +08:00
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
* @since 1.0.0
*/
private static final long serialVersionUID = -1939538118388300002L;
/**
* 创建一个新的实例 BaseIpCfg.
*
*/
public BaseIpCfg() {
super();
// TODO Auto-generated constructor stub
}
2018-02-07 14:51:11 +08:00
/**
* ip类型
*/
@Expose
@SerializedName("ipType")
2018-10-19 19:41:19 +08:00
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=2)
2018-02-07 14:51:11 +08:00
protected Integer ipType;
2018-10-19 19:41:19 +08:00
@ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=3)
protected Integer ipPattern;
2018-10-19 19:41:19 +08:00
@ExcelField(title="client_ip",sort=4)
2018-05-22 15:14:14 +08:00
protected String srcIpAddress;
2018-10-19 19:41:19 +08:00
@ExcelField(title="server_ip",sort=5)
2018-07-03 14:55:36 +08:00
protected String destIpAddress;
2018-10-19 19:41:19 +08:00
@ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=6)
2018-07-03 14:55:36 +08:00
protected Integer portPattern;
2018-10-19 19:41:19 +08:00
@ExcelField(title="client_port",sort=7)
2018-07-03 14:55:36 +08:00
protected String srcPort;
2018-10-19 19:41:19 +08:00
@ExcelField(title="server_port",sort=8)
2018-05-22 15:14:14 +08:00
protected String destPort;
protected Integer dnsStrategyId;
2018-10-19 19:41:19 +08:00
@ExcelField(title="ir_type",dictType="IR_TYPE",sort=9)
protected Integer irType;
2018-10-19 19:41:19 +08:00
@ExcelField(title="group_name",sort=10)
protected String groupName;
private List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList;
private NtcSubscribeIdCfg ntcSubscribeIdCfg;
/**
* 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;
}
2018-02-07 14:51:11 +08:00
/**
* 方向
*/
@Expose
@SerializedName("direction")
2018-10-19 19:41:19 +08:00
@ExcelField(title="direction",dictType="DIRECTION",sort=11)
protected Integer direction ;
2018-02-07 14:51:11 +08:00
/**
2018-10-19 19:41:19 +08:00
* 协议
2018-02-07 14:51:11 +08:00
*/
@Expose
@SerializedName("protocol")
2018-10-19 19:41:19 +08:00
@ExcelField(title="protocol",dictType="PROTOCOL",sort=12)
2018-02-07 14:51:11 +08:00
protected Integer protocol ;
/**
* 协议ID
*/
@Expose
@SerializedName("protocolId")
2018-02-07 14:51:11 +08:00
protected Integer protocolId ;
2018-06-21 14:51:43 +08:00
/**
* 限速比例
*/
protected String ratelimit ;
2018-06-21 14:51:43 +08:00
/**
* ratelimit
* @return ratelimit
*/
public String getRatelimit() {
2018-06-21 14:51:43 +08:00
return ratelimit;
}
/**
* @param ratelimit the ratelimit to set
*/
public void setRatelimit(String ratelimit) {
2018-06-21 14:51:43 +08:00
this.ratelimit = ratelimit;
}
2018-02-07 14:51:11 +08:00
/**
* 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
2018-02-07 14:51:11 +08:00
*/
public Integer getDirection() {
return direction;
2018-02-07 14:51:11 +08:00
}
/**
* @param direction the direction to set
2018-02-07 14:51:11 +08:00
*/
public void setDirection(Integer direction) {
this.direction = direction;
2018-02-07 14:51:11 +08:00
}
/**
* protocol
* @return protocol
2018-02-07 14:51:11 +08:00
*/
public Integer getProtocol() {
return protocol;
2018-02-07 14:51:11 +08:00
}
/**
* @param protocol the protocol to set
2018-02-07 14:51:11 +08:00
*/
public void setProtocol(Integer protocol) {
this.protocol = protocol;
2018-02-07 14:51:11 +08:00
}
/**
* protocolId
* @return protocolId
2018-02-07 14:51:11 +08:00
*/
public Integer getProtocolId() {
return protocolId;
2018-02-07 14:51:11 +08:00
}
/**
* @param protocolId the protocolId to set
2018-02-07 14:51:11 +08:00
*/
public void setProtocolId(Integer protocolId) {
this.protocolId = protocolId;
2018-02-07 14:51:11 +08:00
}
/**
* ipPattern
* @return ipPattern
2018-02-07 14:51:11 +08:00
*/
public Integer getIpPattern() {
return ipPattern;
2018-02-07 14:51:11 +08:00
}
/**
* @param ipPattern the ipPattern to set
2018-02-07 14:51:11 +08:00
*/
public void setIpPattern(Integer ipPattern) {
this.ipPattern = ipPattern;
2018-02-07 14:51:11 +08:00
}
/**
* portPattern
* @return portPattern
2018-02-07 14:51:11 +08:00
*/
public Integer getPortPattern() {
return portPattern;
2018-02-07 14:51:11 +08:00
}
/**
* @param portPattern the portPattern to set
2018-02-07 14:51:11 +08:00
*/
public void setPortPattern(Integer portPattern) {
this.portPattern = portPattern;
2018-02-07 14:51:11 +08:00
}
2018-05-22 15:14:14 +08:00
/**
* 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;
}
2018-02-07 14:51:11 +08:00
/**
2018-05-22 15:14:14 +08:00
* destPort
* @return destPort
2018-02-07 14:51:11 +08:00
*/
2018-05-22 15:14:14 +08:00
public String getDestPort() {
return destPort;
2018-02-07 14:51:11 +08:00
}
/**
2018-05-22 15:14:14 +08:00
* @param destPort the destPort to set
2018-02-07 14:51:11 +08:00
*/
2018-05-22 15:14:14 +08:00
public void setDestPort(String destPort) {
this.destPort = destPort;
2018-02-07 14:51:11 +08:00
}
/**
* 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;
}
2018-02-07 14:51:11 +08:00
public List<NtcSubscribeIdCfg> getNtcSubscribeIdCfgList() {
return ntcSubscribeIdCfgList;
}
public void setNtcSubscribeIdCfgList(List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList) {
this.ntcSubscribeIdCfgList = ntcSubscribeIdCfgList;
}
public NtcSubscribeIdCfg getNtcSubscribeIdCfg() {
return ntcSubscribeIdCfg;
}
public void setNtcSubscribeIdCfg(NtcSubscribeIdCfg ntcsSubscribeIdCfg) {
this.ntcSubscribeIdCfg = ntcsSubscribeIdCfg;
}
2018-02-07 14:51:11 +08:00
}