2018-12-07 19:47:37 +08:00
|
|
|
package com.nis.domain.configuration;
|
|
|
|
|
|
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
import com.nis.util.Constants;
|
2018-12-23 00:36:58 +08:00
|
|
|
import com.nis.util.excel.ExcelField;
|
2018-12-07 19:47:37 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* IP复用DNAT策略实体
|
|
|
|
|
* @author dell
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public class IpReuseDnatPolicyCfg extends IpPortCfg{
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 3965263675989864475L;
|
|
|
|
|
private String indexTable="ip_reuse_dnat_policy";
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("configId")
|
2018-12-23 00:36:58 +08:00
|
|
|
@ExcelField(title="cfg_id",sort=0)
|
2018-12-09 14:14:41 +08:00
|
|
|
private Integer compileId;
|
2018-12-07 19:47:37 +08:00
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("originalAddrType")
|
|
|
|
|
private Integer ipType;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("originalDestIp")
|
2018-12-23 00:36:58 +08:00
|
|
|
@ExcelField(title="original_dest_ip",sort=4)
|
2018-12-07 19:47:37 +08:00
|
|
|
private String srcIpAddress;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("originalDestPort")
|
2018-12-23 00:36:58 +08:00
|
|
|
@ExcelField(title="original_dest_port",sort=5)
|
2018-12-07 19:47:37 +08:00
|
|
|
private String srcPort;
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("originalProtocol")
|
2018-12-23 00:36:58 +08:00
|
|
|
@ExcelField(title="protocol",dictType="PROTOCOL",sort=8)
|
2018-12-07 19:47:37 +08:00
|
|
|
private Integer protocol;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("translatedDestIp")
|
2019-01-16 18:49:44 +08:00
|
|
|
//@ExcelField(title="translated_dest_ip",sort=6)
|
2018-12-07 19:47:37 +08:00
|
|
|
private String destIpAddress;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("translatedDestPort")
|
2018-12-23 00:36:58 +08:00
|
|
|
@ExcelField(title="translated_dest_port",sort=7)
|
2018-12-07 19:47:37 +08:00
|
|
|
private String destPort;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
private Integer doLog = Constants.MAAT_CFG_DOLOG_DEFAULT;
|
|
|
|
|
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("effectiveRange")
|
|
|
|
|
private String areaEffectiveIds;
|
2019-01-16 18:49:44 +08:00
|
|
|
@ExcelField(title="user",sort=10)
|
|
|
|
|
@Expose
|
|
|
|
|
private String translatedUserId;
|
|
|
|
|
@Expose
|
|
|
|
|
@ExcelField(title="user_type",sort=9)
|
|
|
|
|
private String translatedUserType;
|
|
|
|
|
|
2018-12-07 19:47:37 +08:00
|
|
|
|
|
|
|
|
|
2019-01-16 18:49:44 +08:00
|
|
|
public String getTranslatedUserId() {
|
|
|
|
|
return translatedUserId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTranslatedUserId(String translatedUserId) {
|
|
|
|
|
this.translatedUserId = translatedUserId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTranslatedUserType() {
|
|
|
|
|
return translatedUserType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTranslatedUserType(String translatedUserType) {
|
|
|
|
|
this.translatedUserType = translatedUserType;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-07 19:47:37 +08:00
|
|
|
public String getIndexTable() {
|
|
|
|
|
return indexTable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIndexTable(String indexTable) {
|
|
|
|
|
this.indexTable = indexTable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
return ipType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
return protocol;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-09 14:14:41 +08:00
|
|
|
public Integer getCompileId() {
|
|
|
|
|
return compileId;
|
2018-12-07 19:47:37 +08:00
|
|
|
}
|
|
|
|
|
|
2018-12-09 14:14:41 +08:00
|
|
|
public void setCompileId(Integer compileId) {
|
|
|
|
|
this.compileId = compileId;
|
2018-12-07 19:47:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSrcIpAddress() {
|
|
|
|
|
return srcIpAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSrcIpAddress(String srcIpAddress) {
|
|
|
|
|
this.srcIpAddress = srcIpAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSrcPort() {
|
|
|
|
|
return srcPort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSrcPort(String srcPort) {
|
|
|
|
|
this.srcPort = srcPort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDestIpAddress() {
|
|
|
|
|
return destIpAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDestIpAddress(String destIpAddress) {
|
|
|
|
|
this.destIpAddress = destIpAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDestPort() {
|
|
|
|
|
return destPort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDestPort(String destPort) {
|
|
|
|
|
this.destPort = destPort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getDoLog() {
|
|
|
|
|
return doLog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDoLog(Integer doLog) {
|
|
|
|
|
this.doLog = doLog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAreaEffectiveIds() {
|
|
|
|
|
return areaEffectiveIds;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAreaEffectiveIds(String areaEffectiveIds) {
|
|
|
|
|
this.areaEffectiveIds = areaEffectiveIds;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|