
com.jdcloud.sdk.service.waf.model.SetIpbanUsrReq Maven / Gradle / Ivy
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*
*
*
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.waf.model;
import com.jdcloud.sdk.annotation.Required;
/**
* setIpbanUsrReq
*/
public class SetIpbanUsrReq implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* WAF实例id
* Required:true
*/
@Required
private String wafInstanceId;
/**
* 域名
* Required:true
*/
@Required
private String domain;
/**
* 规则名
* Required:true
*/
@Required
private String ruleName;
/**
* 检测时间 单位秒, 限制[60-600]
* Required:true
*/
@Required
private Integer detectTime;
/**
* 封禁阈值,限制[1-20000]
* Required:true
*/
@Required
private Integer threshold;
/**
* 封禁时间,限制[1-86400]
* Required:true
*/
@Required
private Integer ipbanTime;
/**
* 0-使用中 1-禁用
* Required:true
*/
@Required
private Integer disable;
/**
* 动作配置
* Required:true
*/
@Required
private DenyActionCfg action;
/**
* get WAF实例id
*
* @return
*/
public String getWafInstanceId() {
return wafInstanceId;
}
/**
* set WAF实例id
*
* @param wafInstanceId
*/
public void setWafInstanceId(String wafInstanceId) {
this.wafInstanceId = wafInstanceId;
}
/**
* get 域名
*
* @return
*/
public String getDomain() {
return domain;
}
/**
* set 域名
*
* @param domain
*/
public void setDomain(String domain) {
this.domain = domain;
}
/**
* get 规则名
*
* @return
*/
public String getRuleName() {
return ruleName;
}
/**
* set 规则名
*
* @param ruleName
*/
public void setRuleName(String ruleName) {
this.ruleName = ruleName;
}
/**
* get 检测时间 单位秒, 限制[60-600]
*
* @return
*/
public Integer getDetectTime() {
return detectTime;
}
/**
* set 检测时间 单位秒, 限制[60-600]
*
* @param detectTime
*/
public void setDetectTime(Integer detectTime) {
this.detectTime = detectTime;
}
/**
* get 封禁阈值,限制[1-20000]
*
* @return
*/
public Integer getThreshold() {
return threshold;
}
/**
* set 封禁阈值,限制[1-20000]
*
* @param threshold
*/
public void setThreshold(Integer threshold) {
this.threshold = threshold;
}
/**
* get 封禁时间,限制[1-86400]
*
* @return
*/
public Integer getIpbanTime() {
return ipbanTime;
}
/**
* set 封禁时间,限制[1-86400]
*
* @param ipbanTime
*/
public void setIpbanTime(Integer ipbanTime) {
this.ipbanTime = ipbanTime;
}
/**
* get 0-使用中 1-禁用
*
* @return
*/
public Integer getDisable() {
return disable;
}
/**
* set 0-使用中 1-禁用
*
* @param disable
*/
public void setDisable(Integer disable) {
this.disable = disable;
}
/**
* get 动作配置
*
* @return
*/
public DenyActionCfg getAction() {
return action;
}
/**
* set 动作配置
*
* @param action
*/
public void setAction(DenyActionCfg action) {
this.action = action;
}
/**
* set WAF实例id
*
* @param wafInstanceId
*/
public SetIpbanUsrReq wafInstanceId(String wafInstanceId) {
this.wafInstanceId = wafInstanceId;
return this;
}
/**
* set 域名
*
* @param domain
*/
public SetIpbanUsrReq domain(String domain) {
this.domain = domain;
return this;
}
/**
* set 规则名
*
* @param ruleName
*/
public SetIpbanUsrReq ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* set 检测时间 单位秒, 限制[60-600]
*
* @param detectTime
*/
public SetIpbanUsrReq detectTime(Integer detectTime) {
this.detectTime = detectTime;
return this;
}
/**
* set 封禁阈值,限制[1-20000]
*
* @param threshold
*/
public SetIpbanUsrReq threshold(Integer threshold) {
this.threshold = threshold;
return this;
}
/**
* set 封禁时间,限制[1-86400]
*
* @param ipbanTime
*/
public SetIpbanUsrReq ipbanTime(Integer ipbanTime) {
this.ipbanTime = ipbanTime;
return this;
}
/**
* set 0-使用中 1-禁用
*
* @param disable
*/
public SetIpbanUsrReq disable(Integer disable) {
this.disable = disable;
return this;
}
/**
* set 动作配置
*
* @param action
*/
public SetIpbanUsrReq action(DenyActionCfg action) {
this.action = action;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy