com.tencentcloudapi.teo.v20220901.models.ExceptUserRuleScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.teo.v20220901.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ExceptUserRuleScope extends AbstractModel {
/**
* Exception mode. Values:
`complete`: Skip the exception rule for full requests.
`partial`: Skip the exception rule for partial requests.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* The module to be activated. Values:
`waf`: Tencent Cloud-managed rules
`rate`: Rate limiting rules
`acl`: Custom rule
`cc`: CC attack defense
`bot`: Bot protection
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("Modules")
@Expose
private String [] Modules;
/**
* Module settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("PartialModules")
@Expose
private PartialModule [] PartialModules;
/**
* Condition settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("SkipConditions")
@Expose
private SkipCondition [] SkipConditions;
/**
* Get Exception mode. Values:
`complete`: Skip the exception rule for full requests.
`partial`: Skip the exception rule for partial requests.
* @return Type Exception mode. Values:
`complete`: Skip the exception rule for full requests.
`partial`: Skip the exception rule for partial requests.
*/
public String getType() {
return this.Type;
}
/**
* Set Exception mode. Values:
`complete`: Skip the exception rule for full requests.
`partial`: Skip the exception rule for partial requests.
* @param Type Exception mode. Values:
`complete`: Skip the exception rule for full requests.
`partial`: Skip the exception rule for partial requests.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get The module to be activated. Values:
`waf`: Tencent Cloud-managed rules
`rate`: Rate limiting rules
`acl`: Custom rule
`cc`: CC attack defense
`bot`: Bot protection
Note: this field may return `null`, indicating that no valid value is obtained.
* @return Modules The module to be activated. Values:
`waf`: Tencent Cloud-managed rules
`rate`: Rate limiting rules
`acl`: Custom rule
`cc`: CC attack defense
`bot`: Bot protection
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String [] getModules() {
return this.Modules;
}
/**
* Set The module to be activated. Values:
`waf`: Tencent Cloud-managed rules
`rate`: Rate limiting rules
`acl`: Custom rule
`cc`: CC attack defense
`bot`: Bot protection
Note: this field may return `null`, indicating that no valid value is obtained.
* @param Modules The module to be activated. Values:
`waf`: Tencent Cloud-managed rules
`rate`: Rate limiting rules
`acl`: Custom rule
`cc`: CC attack defense
`bot`: Bot protection
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setModules(String [] Modules) {
this.Modules = Modules;
}
/**
* Get Module settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return PartialModules Module settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public PartialModule [] getPartialModules() {
return this.PartialModules;
}
/**
* Set Module settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param PartialModules Module settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setPartialModules(PartialModule [] PartialModules) {
this.PartialModules = PartialModules;
}
/**
* Get Condition settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return SkipConditions Condition settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public SkipCondition [] getSkipConditions() {
return this.SkipConditions;
}
/**
* Set Condition settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param SkipConditions Condition settings of the exception rule. If it is null, the settings that were last configured will be used.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setSkipConditions(SkipCondition [] SkipConditions) {
this.SkipConditions = SkipConditions;
}
public ExceptUserRuleScope() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ExceptUserRuleScope(ExceptUserRuleScope source) {
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.Modules != null) {
this.Modules = new String[source.Modules.length];
for (int i = 0; i < source.Modules.length; i++) {
this.Modules[i] = new String(source.Modules[i]);
}
}
if (source.PartialModules != null) {
this.PartialModules = new PartialModule[source.PartialModules.length];
for (int i = 0; i < source.PartialModules.length; i++) {
this.PartialModules[i] = new PartialModule(source.PartialModules[i]);
}
}
if (source.SkipConditions != null) {
this.SkipConditions = new SkipCondition[source.SkipConditions.length];
for (int i = 0; i < source.SkipConditions.length; i++) {
this.SkipConditions[i] = new SkipCondition(source.SkipConditions[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamArraySimple(map, prefix + "Modules.", this.Modules);
this.setParamArrayObj(map, prefix + "PartialModules.", this.PartialModules);
this.setParamArrayObj(map, prefix + "SkipConditions.", this.SkipConditions);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy