All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.cdn.v20180606.models.AccessControlRule Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * 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.
 */
package com.tencentcloudapi.cdn.v20180606.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class AccessControlRule extends AbstractModel{

    /**
    * requestHeader :对请求头部进行访问控制
url : 对访问url进行访问控制
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("RuleType")
    @Expose
    private String RuleType;

    /**
    * 封禁内容
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("RuleContent")
    @Expose
    private String RuleContent;

    /**
    * on :正则匹配
off :字面匹配
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Regex")
    @Expose
    private String Regex;

    /**
    * RuleType为requestHeader时必填,否则不需要填
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("RuleHeader")
    @Expose
    private String RuleHeader;

    /**
     * Get requestHeader :对请求头部进行访问控制
url : 对访问url进行访问控制
注意:此字段可能返回 null,表示取不到有效值。 
     * @return RuleType requestHeader :对请求头部进行访问控制
url : 对访问url进行访问控制
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getRuleType() {
        return this.RuleType;
    }

    /**
     * Set requestHeader :对请求头部进行访问控制
url : 对访问url进行访问控制
注意:此字段可能返回 null,表示取不到有效值。
     * @param RuleType requestHeader :对请求头部进行访问控制
url : 对访问url进行访问控制
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setRuleType(String RuleType) {
        this.RuleType = RuleType;
    }

    /**
     * Get 封禁内容
注意:此字段可能返回 null,表示取不到有效值。 
     * @return RuleContent 封禁内容
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getRuleContent() {
        return this.RuleContent;
    }

    /**
     * Set 封禁内容
注意:此字段可能返回 null,表示取不到有效值。
     * @param RuleContent 封禁内容
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setRuleContent(String RuleContent) {
        this.RuleContent = RuleContent;
    }

    /**
     * Get on :正则匹配
off :字面匹配
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Regex on :正则匹配
off :字面匹配
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getRegex() {
        return this.Regex;
    }

    /**
     * Set on :正则匹配
off :字面匹配
注意:此字段可能返回 null,表示取不到有效值。
     * @param Regex on :正则匹配
off :字面匹配
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setRegex(String Regex) {
        this.Regex = Regex;
    }

    /**
     * Get RuleType为requestHeader时必填,否则不需要填
注意:此字段可能返回 null,表示取不到有效值。 
     * @return RuleHeader RuleType为requestHeader时必填,否则不需要填
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getRuleHeader() {
        return this.RuleHeader;
    }

    /**
     * Set RuleType为requestHeader时必填,否则不需要填
注意:此字段可能返回 null,表示取不到有效值。
     * @param RuleHeader RuleType为requestHeader时必填,否则不需要填
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setRuleHeader(String RuleHeader) {
        this.RuleHeader = RuleHeader;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "RuleType", this.RuleType);
        this.setParamSimple(map, prefix + "RuleContent", this.RuleContent);
        this.setParamSimple(map, prefix + "Regex", this.Regex);
        this.setParamSimple(map, prefix + "RuleHeader", this.RuleHeader);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy