com.jdcloud.sdk.service.waf.model.ListRuleCfg 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
/*
* 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;
/**
* listRuleCfg
*/
public class ListRuleCfg implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 序号id,更新时需要
*/
private Integer id;
/**
* 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW"
* Required:true
*/
@Required
private String val;
/**
* 匹配类型 method黑白名单支持0(完全匹配)
*/
private Integer matchOp;
/**
* action配置
* Required:true
*/
@Required
private AtCfg atCfg;
/**
* get 序号id,更新时需要
*
* @return
*/
public Integer getId() {
return id;
}
/**
* set 序号id,更新时需要
*
* @param id
*/
public void setId(Integer id) {
this.id = id;
}
/**
* get 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW"
*
* @return
*/
public String getVal() {
return val;
}
/**
* set 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW"
*
* @param val
*/
public void setVal(String val) {
this.val = val;
}
/**
* get 匹配类型 method黑白名单支持0(完全匹配)
*
* @return
*/
public Integer getMatchOp() {
return matchOp;
}
/**
* set 匹配类型 method黑白名单支持0(完全匹配)
*
* @param matchOp
*/
public void setMatchOp(Integer matchOp) {
this.matchOp = matchOp;
}
/**
* get action配置
*
* @return
*/
public AtCfg getAtCfg() {
return atCfg;
}
/**
* set action配置
*
* @param atCfg
*/
public void setAtCfg(AtCfg atCfg) {
this.atCfg = atCfg;
}
/**
* set 序号id,更新时需要
*
* @param id
*/
public ListRuleCfg id(Integer id) {
this.id = id;
return this;
}
/**
* set 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW"
*
* @param val
*/
public ListRuleCfg val(String val) {
this.val = val;
return this;
}
/**
* set 匹配类型 method黑白名单支持0(完全匹配)
*
* @param matchOp
*/
public ListRuleCfg matchOp(Integer matchOp) {
this.matchOp = matchOp;
return this;
}
/**
* set action配置
*
* @param atCfg
*/
public ListRuleCfg atCfg(AtCfg atCfg) {
this.atCfg = atCfg;
return this;
}
}