package com.cym.model;

import cn.craccd.sqlHelper.bean.BaseModel;
import cn.craccd.sqlHelper.config.InitValue;
import cn.craccd.sqlHelper.config.Table;

@Table
public class Server extends BaseModel {
	String serverName;
	String listen;
	@InitValue("0")
	Integer def;  // 是否为默认server
	
	@InitValue("0")
	Integer rewrite; // 0否 1是
	@InitValue("80")
	String rewriteListen; // 转跳监听
	
	@InitValue("0")
	Integer ssl; // 0 否 1是
	@InitValue("0")
	Integer http2; // 0否 1是
	String pem;
	String key;
	@InitValue("0")
	Integer proxyType; // 代理类型 0 http 1 tcp 2 udp
	String proxyUpstreamId;
	
	String pemStr;
	String keyStr;
	
	@InitValue("true")
	Boolean enable; // 是否启用
	
	String descr; // 描述
	@InitValue("TLSv1 TLSv1.1 TLSv1.2 TLSv1.3")
	String protocols; // 加密协议
	
	String passwordId;
	
	
	public String getPasswordId() {
		return passwordId;
	}
	public void setPasswordId(String passwordId) {
		this.passwordId = passwordId;
	}
	public String getProtocols() {
		return protocols;
	}
	public void setProtocols(String protocols) {
		this.protocols = protocols;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public Integer getDef() {
		return def;
	}
	public void setDef(Integer def) {
		this.def = def;
	}
	public Boolean getEnable() {
		return enable;
	}
	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	public Integer getHttp2() {
		return http2;
	}
	public void setHttp2(Integer http2) {
		this.http2 = http2;
	}
	public String getPemStr() {
		return pemStr;
	}
	public void setPemStr(String pemStr) {
		this.pemStr = pemStr;
	}
	public String getKeyStr() {
		return keyStr;
	}
	public void setKeyStr(String keyStr) {
		this.keyStr = keyStr;
	}
	public String getProxyUpstreamId() {
		return proxyUpstreamId;
	}
	public void setProxyUpstreamId(String proxyUpstreamId) {
		this.proxyUpstreamId = proxyUpstreamId;
	}
	public Integer getProxyType() {
		return proxyType;
	}
	public void setProxyType(Integer proxyType) {
		this.proxyType = proxyType;
	}
	public Integer getSsl() {
		return ssl;
	}
	public void setSsl(Integer ssl) {
		this.ssl = ssl;
	}
	public String getPem() {
		return pem;
	}
	public void setPem(String pem) {
		this.pem = pem;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getServerName() {
		return serverName;
	}
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	public String getListen() {
		return listen;
	}
	public void setListen(String listen) {
		this.listen = listen;
	}

	public Integer getRewrite() {
		return rewrite;
	}

	public void setRewrite(Integer rewrite) {
		this.rewrite = rewrite;
	}
	public String getRewriteListen() {
		return rewriteListen;
	}
	public void setRewriteListen(String rewriteListen) {
		this.rewriteListen = rewriteListen;
	}

	

}
