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

237 lines
4.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 com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
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-02-07 14:51:11 +08:00
protected Integer ipType;
protected Integer ipPattern;
2018-05-22 15:14:14 +08:00
protected String srcIpAddress;
protected String destIpAddress;
protected Integer portPattern;
2018-05-22 15:14:14 +08:00
protected String srcPort;
protected String destPort;
2018-02-07 14:51:11 +08:00
/**
* 方向
*/
@Expose
@SerializedName("direction")
protected Integer direction ;
2018-02-07 14:51:11 +08:00
/**
* 方向
*/
@Expose
@SerializedName("protocol")
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 Integer ratelimit ;
/**
* ratelimit
* @return ratelimit
*/
public Integer getRatelimit() {
return ratelimit;
}
/**
* @param ratelimit the ratelimit to set
*/
public void setRatelimit(Integer ratelimit) {
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
}
@Override
public void initDefaultValue(){
super.initDefaultValue();
this.direction = 0;
}
2018-02-07 14:51:11 +08:00
}