![JAR search and dependency download from the Maven repository](/logo.png)
com.jdcloud.sdk.service.waf.model.SetRiskEventVarsReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waf Show documentation
Show all versions of waf Show documentation
JDCLOUD Open API SDK for Java
The newest version!
/*
* 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 java.util.List;
import java.util.ArrayList;
import com.jdcloud.sdk.annotation.Required;
/**
* setRiskEventVarsReq
*/
public class SetRiskEventVarsReq implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 规则id,新增时传0
*/
private Integer id;
/**
* WAF实例id
* Required:true
*/
@Required
private String wafInstanceId;
/**
* 域名
* Required:true
*/
@Required
private String domain;
/**
* 事件
* Required:true
*/
@Required
private RiskEventCfg event;
/**
* 变量集
* Required:true
*/
@Required
private List vars;
/**
* 策略集
*/
private List policys;
/**
* get 规则id,新增时传0
*
* @return
*/
public Integer getId() {
return id;
}
/**
* set 规则id,新增时传0
*
* @param id
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 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 RiskEventCfg getEvent() {
return event;
}
/**
* set 事件
*
* @param event
*/
public void setEvent(RiskEventCfg event) {
this.event = event;
}
/**
* get 变量集
*
* @return
*/
public List getVars() {
return vars;
}
/**
* set 变量集
*
* @param vars
*/
public void setVars(List vars) {
this.vars = vars;
}
/**
* get 策略集
*
* @return
*/
public List getPolicys() {
return policys;
}
/**
* set 策略集
*
* @param policys
*/
public void setPolicys(List policys) {
this.policys = policys;
}
/**
* set 规则id,新增时传0
*
* @param id
*/
public SetRiskEventVarsReq id(Integer id) {
this.id = id;
return this;
}
/**
* set WAF实例id
*
* @param wafInstanceId
*/
public SetRiskEventVarsReq wafInstanceId(String wafInstanceId) {
this.wafInstanceId = wafInstanceId;
return this;
}
/**
* set 域名
*
* @param domain
*/
public SetRiskEventVarsReq domain(String domain) {
this.domain = domain;
return this;
}
/**
* set 事件
*
* @param event
*/
public SetRiskEventVarsReq event(RiskEventCfg event) {
this.event = event;
return this;
}
/**
* set 变量集
*
* @param vars
*/
public SetRiskEventVarsReq vars(List vars) {
this.vars = vars;
return this;
}
/**
* set 策略集
*
* @param policys
*/
public SetRiskEventVarsReq policys(List policys) {
this.policys = policys;
return this;
}
/**
* add item to 变量集
*
* @param var
*/
public void addVar(RiskVarCfg var) {
if (this.vars == null) {
this.vars = new ArrayList<>();
}
this.vars.add(var);
}
/**
* add item to 策略集
*
* @param policy
*/
public void addPolicy(RiskPolicyCfg policy) {
if (this.policys == null) {
this.policys = new ArrayList<>();
}
this.policys.add(policy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy