/** *@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; /** * @ClassName: BaseIpConfig.java * @Description: 基础IP配置 * @author (dell) * @date 2018年2月5日 下午5:02:24 * @version V1.0 */ public class BaseIpCfg extends BaseCfg { /** * @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") protected Integer ipType; protected Integer ipPattern; protected String ipAddress; protected Integer portPattern; protected String port; /** * 方向 */ @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; } /** * ipAddress * @return ipAddress */ public String getIpAddress() { return ipAddress; } /** * @param ipAddress the ipAddress to set */ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } /** * portPattern * @return portPattern */ public Integer getPortPattern() { return portPattern; } /** * @param portPattern the portPattern to set */ public void setPortPattern(Integer portPattern) { this.portPattern = portPattern; } /** * port * @return port */ public String getPort() { return port; } /** * @param port the port to set */ public void setPort(String port) { this.port = port; } @Override public void initDefaultValue(){ super.initDefaultValue(); this.direction = 0; } }