package com.nis.domain.configuration; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; /** * @Description: APP策略配置 * @author (dell) * @date 2018年2月5日 下午5:26:02 * @version V1.0 */ public class AppIpCfg extends BaseCfg { /** * */ private static final long serialVersionUID = 4758285716968228089L; private static final String tableName="app_ip_cfg"; @Expose private Integer compileId; @Expose private Integer ratelimit; private String appCode; private Integer specServiceId; private String appName; @Expose @SerializedName("ipType") protected Integer ipType; protected Integer ipPattern; protected String srcIpAddress; protected String destIpAddress; protected Integer portPattern; protected String srcPort; protected String destPort; /** * 方向 */ @Expose @SerializedName("direction") protected Integer direction ; /** * 方向 */ @Expose @SerializedName("protocol") protected Integer protocol ; /** * 协议ID */ // @Expose // @SerializedName("protocolId") // protected Integer protocolId ; /** * 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; } @Override public void initDefaultValue(){ super.initDefaultValue(); this.direction = 0; } public Integer getCompileId() { return compileId; } public void setCompileId(Integer compileId) { this.compileId = compileId; } public static String getTablename() { return tableName; } public Integer getRatelimit() { return ratelimit; } public void setRatelimit(Integer ratelimit) { this.ratelimit = ratelimit; } public String getAppCode() { return appCode; } public void setAppCode(String appCode) { this.appCode = appCode; } public Integer getSpecServiceId() { return specServiceId; } public void setSpecServiceId(Integer specServiceId) { this.specServiceId = specServiceId; } public String getAppName() { return appName; } public void setAppName(String appName) { this.appName = appName; } }