2018-08-30 21:21:00 +08:00
|
|
|
package com.nis.domain.basics;
|
|
|
|
|
|
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
import com.nis.domain.configuration.BaseCfg;
|
2018-10-25 18:50:59 +08:00
|
|
|
import com.nis.util.excel.ExcelField;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
|
|
|
|
public class AsnIpCfg extends BaseCfg<AsnIpCfg> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
private static final long serialVersionUID = 398247881810945300L;
|
|
|
|
|
private static final String tableName="asn_ip_cfg";
|
|
|
|
|
@Expose
|
|
|
|
|
private Integer regionId;
|
|
|
|
|
@Expose
|
|
|
|
|
private String ratelimit;
|
|
|
|
|
@Expose
|
2019-01-15 21:56:56 +08:00
|
|
|
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=6)
|
2018-08-30 21:21:00 +08:00
|
|
|
@SerializedName("ipType")
|
|
|
|
|
private Integer ipType;
|
2019-04-18 10:15:23 +08:00
|
|
|
private Integer srcIpPattern;
|
|
|
|
|
@ExcelField(title="dest_ip_pattern",dictType="IP_PATTERN",sort=8)
|
|
|
|
|
private Integer destIpPattern;
|
2018-08-30 21:21:00 +08:00
|
|
|
private String srcIpAddress;
|
2019-01-15 21:56:56 +08:00
|
|
|
@ExcelField(title="ip",sort=7)
|
2018-08-30 21:21:00 +08:00
|
|
|
private String destIpAddress;
|
2019-04-18 10:15:23 +08:00
|
|
|
private Integer srcPortPattern;
|
|
|
|
|
private Integer destPortPattern;
|
2018-08-30 21:21:00 +08:00
|
|
|
private String srcPort;
|
|
|
|
|
private String destPort;
|
2019-01-04 18:28:57 +06:00
|
|
|
//@ExcelField(title="group",sort=2)
|
2018-08-30 21:21:00 +08:00
|
|
|
private String asnIpGroupName;//asn组名
|
2018-10-26 18:57:20 +08:00
|
|
|
private Integer asnIpGroup;//asn组号
|
2018-08-30 21:21:00 +08:00
|
|
|
/**
|
|
|
|
|
* 方向
|
|
|
|
|
*/
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("direction")
|
|
|
|
|
private Integer direction ;
|
|
|
|
|
/**
|
|
|
|
|
* 方向
|
|
|
|
|
*/
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("protocol")
|
|
|
|
|
private Integer protocol ;
|
|
|
|
|
private Integer protocolId;
|
|
|
|
|
|
2019-01-15 21:56:56 +08:00
|
|
|
@ExcelField(title="organization",sort=2)
|
2019-01-04 18:28:57 +06:00
|
|
|
private String organization;
|
2019-01-15 21:56:56 +08:00
|
|
|
@ExcelField(title="country",sort=3)
|
2019-01-04 18:28:57 +06:00
|
|
|
private String country;
|
2019-01-15 21:56:56 +08:00
|
|
|
@ExcelField(title="detail",sort=3)
|
2019-01-04 18:28:57 +06:00
|
|
|
private String detail;
|
|
|
|
|
private String userregion1;
|
2018-10-25 18:50:59 +08:00
|
|
|
|
|
|
|
|
|
2019-01-04 18:28:57 +06:00
|
|
|
public String getUserregion1() {
|
|
|
|
|
return userregion1;
|
|
|
|
|
}
|
|
|
|
|
public void setUserregion1(String userregion1) {
|
|
|
|
|
this.userregion1 = userregion1;
|
|
|
|
|
}
|
|
|
|
|
public String getOrganization() {
|
|
|
|
|
return organization;
|
|
|
|
|
}
|
|
|
|
|
public void setOrganization(String organization) {
|
|
|
|
|
this.organization = organization;
|
|
|
|
|
}
|
|
|
|
|
public String getCountry() {
|
|
|
|
|
return country;
|
|
|
|
|
}
|
|
|
|
|
public void setCountry(String country) {
|
|
|
|
|
this.country = country;
|
|
|
|
|
}
|
|
|
|
|
public String getDetail() {
|
|
|
|
|
return detail;
|
|
|
|
|
}
|
|
|
|
|
public void setDetail(String detail) {
|
|
|
|
|
this.detail = detail;
|
|
|
|
|
}
|
2019-01-06 22:49:06 +08:00
|
|
|
|
|
|
|
|
public Integer getIsValid() {
|
|
|
|
|
return isValid;
|
2018-10-25 18:50:59 +08:00
|
|
|
}
|
2019-01-06 22:49:06 +08:00
|
|
|
public void setIsValid(Integer isValid) {
|
|
|
|
|
this.isValid = isValid;
|
2018-10-25 18:50:59 +08:00
|
|
|
}
|
2019-01-06 22:49:06 +08:00
|
|
|
|
2018-08-30 21:21:00 +08:00
|
|
|
public Integer getProtocolId() {
|
|
|
|
|
return protocolId;
|
|
|
|
|
}
|
|
|
|
|
public void setProtocolId(Integer protocolId) {
|
|
|
|
|
this.protocolId = protocolId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAsnIpGroupName() {
|
|
|
|
|
return asnIpGroupName;
|
|
|
|
|
}
|
|
|
|
|
public void setAsnIpGroupName(String asnIpGroupName) {
|
|
|
|
|
this.asnIpGroupName = asnIpGroupName;
|
|
|
|
|
}
|
|
|
|
|
public Integer getAsnIpGroup() {
|
|
|
|
|
return asnIpGroup;
|
|
|
|
|
}
|
|
|
|
|
public void setAsnIpGroup(Integer asnIpGroup) {
|
|
|
|
|
this.asnIpGroup = asnIpGroup;
|
|
|
|
|
}
|
|
|
|
|
public String getRatelimit() {
|
|
|
|
|
return ratelimit;
|
|
|
|
|
}
|
|
|
|
|
public void setRatelimit(String ratelimit) {
|
|
|
|
|
this.ratelimit = ratelimit;
|
|
|
|
|
}
|
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
return ipType;
|
|
|
|
|
}
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
}
|
2019-04-18 10:15:23 +08:00
|
|
|
|
|
|
|
|
public Integer getSrcIpPattern() {
|
|
|
|
|
return srcIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setSrcIpPattern(Integer srcIpPattern) {
|
|
|
|
|
this.srcIpPattern = srcIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getDestIpPattern() {
|
|
|
|
|
return destIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setDestIpPattern(Integer destIpPattern) {
|
|
|
|
|
this.destIpPattern = destIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getSrcPortPattern() {
|
|
|
|
|
return srcPortPattern;
|
2018-08-30 21:21:00 +08:00
|
|
|
}
|
2019-04-18 10:15:23 +08:00
|
|
|
public void setSrcPortPattern(Integer srcPortPattern) {
|
|
|
|
|
this.srcPortPattern = srcPortPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getDestPortPattern() {
|
|
|
|
|
return destPortPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setDestPortPattern(Integer destPortPattern) {
|
|
|
|
|
this.destPortPattern = destPortPattern;
|
2018-08-30 21:21:00 +08:00
|
|
|
}
|
|
|
|
|
public String getSrcIpAddress() {
|
|
|
|
|
return srcIpAddress;
|
|
|
|
|
}
|
|
|
|
|
public void setSrcIpAddress(String srcIpAddress) {
|
|
|
|
|
this.srcIpAddress = srcIpAddress;
|
|
|
|
|
}
|
|
|
|
|
public String getDestIpAddress() {
|
|
|
|
|
return destIpAddress;
|
|
|
|
|
}
|
|
|
|
|
public void setDestIpAddress(String destIpAddress) {
|
|
|
|
|
this.destIpAddress = destIpAddress;
|
|
|
|
|
}
|
|
|
|
|
public String getSrcPort() {
|
|
|
|
|
return srcPort;
|
|
|
|
|
}
|
|
|
|
|
public void setSrcPort(String srcPort) {
|
|
|
|
|
this.srcPort = srcPort;
|
|
|
|
|
}
|
|
|
|
|
public String getDestPort() {
|
|
|
|
|
return destPort;
|
|
|
|
|
}
|
|
|
|
|
public void setDestPort(String destPort) {
|
|
|
|
|
this.destPort = destPort;
|
|
|
|
|
}
|
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
return direction;
|
|
|
|
|
}
|
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
this.direction = direction;
|
|
|
|
|
}
|
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
return protocol;
|
|
|
|
|
}
|
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
}
|
|
|
|
|
public static String getTablename() {
|
|
|
|
|
return tableName;
|
|
|
|
|
}
|
|
|
|
|
public Integer getRegionId() {
|
|
|
|
|
return regionId;
|
|
|
|
|
}
|
|
|
|
|
public void setRegionId(Integer regionId) {
|
|
|
|
|
this.regionId = regionId;
|
|
|
|
|
}
|
2018-11-11 19:36:53 +08:00
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
2019-04-18 10:15:23 +08:00
|
|
|
return "AsnIpCfg [regionId=" + regionId + ", ratelimit=" + ratelimit + ", ipType=" + ipType + ", srcIpPattern="
|
|
|
|
|
+ srcIpPattern + ", destIpPattern="+ destIpPattern+ ", srcIpAddress=" + srcIpAddress + ", destIpAddress="
|
|
|
|
|
+ destIpAddress + ", srcPortPattern="+ srcPortPattern+", destPortPattern="+ destPortPattern + ", srcPort="
|
|
|
|
|
+ srcPort + ", destPort=" + destPort + ", asnIpGroupName=" + asnIpGroupName
|
2018-11-11 19:36:53 +08:00
|
|
|
+ ", asnIpGroup=" + asnIpGroup + ", direction=" + direction + ", protocol=" + protocol + ", protocolId="
|
2019-01-06 22:49:06 +08:00
|
|
|
+ protocolId + ", compileId=" + compileId + ", isValid=" + isValid + ", userRegion1=" + userRegion1
|
2018-11-11 19:36:53 +08:00
|
|
|
+ ", userRegion2=" + userRegion2 + ", userRegion3=" + userRegion3 + ", userRegion4=" + userRegion4
|
|
|
|
|
+ ", userRegion5=" + userRegion5 + ", cfgId=" + cfgId + ", cfgDesc=" + cfgDesc + ", action=" + action
|
|
|
|
|
+ ", isValid=" + isValid + ", isAudit=" + isAudit + ", creatorId=" + creatorId + ", createTime="
|
|
|
|
|
+ createTime + ", editorId=" + editorId + ", editTime=" + editTime + ", auditorId=" + auditorId
|
|
|
|
|
+ ", auditTime=" + auditTime + ", serviceId=" + serviceId + ", requestId=" + requestId
|
|
|
|
|
+ ", cancelRequestId=" + cancelRequestId + ", requestName=" + requestName + ", isAreaEffective="
|
|
|
|
|
+ isAreaEffective + ", classify=" + classify + ", attribute=" + attribute + ", lable=" + lable
|
|
|
|
|
+ ", cfgType=" + cfgType + ", functionId=" + functionId + ", doLog=" + doLog + "]";
|
|
|
|
|
}
|
2018-08-30 21:21:00 +08:00
|
|
|
|
|
|
|
|
}
|