com.tencentcloudapi.teo.v20220901.models.BotManagedRule 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class BotManagedRule extends AbstractModel{
/**
* The rule action. Values:
`drop`: Block
`trans`: Allow
`alg`: JavaScript challenge
`monitor`: Observe
*/
@SerializedName("Action")
@Expose
private String Action;
/**
* The rule ID, which is only used as an output parameter.
*/
@SerializedName("RuleID")
@Expose
private Long RuleID;
/**
* The ID of the rule that applies the "Allow" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("TransManagedIds")
@Expose
private Long [] TransManagedIds;
/**
* The ID of the rule that applies the "JavaScript challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("AlgManagedIds")
@Expose
private Long [] AlgManagedIds;
/**
* The ID of the rule that applies the "Managed challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("CapManagedIds")
@Expose
private Long [] CapManagedIds;
/**
* The ID of the rule that applies the "Observe" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("MonManagedIds")
@Expose
private Long [] MonManagedIds;
/**
* The ID of the rule that applies the "Block" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("DropManagedIds")
@Expose
private Long [] DropManagedIds;
/**
* Get The rule action. Values:
`drop`: Block
`trans`: Allow
`alg`: JavaScript challenge
`monitor`: Observe
* @return Action The rule action. Values:
`drop`: Block
`trans`: Allow
`alg`: JavaScript challenge
`monitor`: Observe
*/
public String getAction() {
return this.Action;
}
/**
* Set The rule action. Values:
`drop`: Block
`trans`: Allow
`alg`: JavaScript challenge
`monitor`: Observe
* @param Action The rule action. Values:
`drop`: Block
`trans`: Allow
`alg`: JavaScript challenge
`monitor`: Observe
*/
public void setAction(String Action) {
this.Action = Action;
}
/**
* Get The rule ID, which is only used as an output parameter.
* @return RuleID The rule ID, which is only used as an output parameter.
*/
public Long getRuleID() {
return this.RuleID;
}
/**
* Set The rule ID, which is only used as an output parameter.
* @param RuleID The rule ID, which is only used as an output parameter.
*/
public void setRuleID(Long RuleID) {
this.RuleID = RuleID;
}
/**
* Get The ID of the rule that applies the "Allow" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @return TransManagedIds The ID of the rule that applies the "Allow" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long [] getTransManagedIds() {
return this.TransManagedIds;
}
/**
* Set The ID of the rule that applies the "Allow" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @param TransManagedIds The ID of the rule that applies the "Allow" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setTransManagedIds(Long [] TransManagedIds) {
this.TransManagedIds = TransManagedIds;
}
/**
* Get The ID of the rule that applies the "JavaScript challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @return AlgManagedIds The ID of the rule that applies the "JavaScript challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long [] getAlgManagedIds() {
return this.AlgManagedIds;
}
/**
* Set The ID of the rule that applies the "JavaScript challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @param AlgManagedIds The ID of the rule that applies the "JavaScript challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setAlgManagedIds(Long [] AlgManagedIds) {
this.AlgManagedIds = AlgManagedIds;
}
/**
* Get The ID of the rule that applies the "Managed challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @return CapManagedIds The ID of the rule that applies the "Managed challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long [] getCapManagedIds() {
return this.CapManagedIds;
}
/**
* Set The ID of the rule that applies the "Managed challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @param CapManagedIds The ID of the rule that applies the "Managed challenge" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setCapManagedIds(Long [] CapManagedIds) {
this.CapManagedIds = CapManagedIds;
}
/**
* Get The ID of the rule that applies the "Observe" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @return MonManagedIds The ID of the rule that applies the "Observe" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long [] getMonManagedIds() {
return this.MonManagedIds;
}
/**
* Set The ID of the rule that applies the "Observe" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @param MonManagedIds The ID of the rule that applies the "Observe" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setMonManagedIds(Long [] MonManagedIds) {
this.MonManagedIds = MonManagedIds;
}
/**
* Get The ID of the rule that applies the "Block" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @return DropManagedIds The ID of the rule that applies the "Block" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long [] getDropManagedIds() {
return this.DropManagedIds;
}
/**
* Set The ID of the rule that applies the "Block" action.
Note: This field may return null, indicating that no valid values can be obtained.
* @param DropManagedIds The ID of the rule that applies the "Block" action.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setDropManagedIds(Long [] DropManagedIds) {
this.DropManagedIds = DropManagedIds;
}
public BotManagedRule() {
}
/**
* 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 BotManagedRule(BotManagedRule source) {
if (source.Action != null) {
this.Action = new String(source.Action);
}
if (source.RuleID != null) {
this.RuleID = new Long(source.RuleID);
}
if (source.TransManagedIds != null) {
this.TransManagedIds = new Long[source.TransManagedIds.length];
for (int i = 0; i < source.TransManagedIds.length; i++) {
this.TransManagedIds[i] = new Long(source.TransManagedIds[i]);
}
}
if (source.AlgManagedIds != null) {
this.AlgManagedIds = new Long[source.AlgManagedIds.length];
for (int i = 0; i < source.AlgManagedIds.length; i++) {
this.AlgManagedIds[i] = new Long(source.AlgManagedIds[i]);
}
}
if (source.CapManagedIds != null) {
this.CapManagedIds = new Long[source.CapManagedIds.length];
for (int i = 0; i < source.CapManagedIds.length; i++) {
this.CapManagedIds[i] = new Long(source.CapManagedIds[i]);
}
}
if (source.MonManagedIds != null) {
this.MonManagedIds = new Long[source.MonManagedIds.length];
for (int i = 0; i < source.MonManagedIds.length; i++) {
this.MonManagedIds[i] = new Long(source.MonManagedIds[i]);
}
}
if (source.DropManagedIds != null) {
this.DropManagedIds = new Long[source.DropManagedIds.length];
for (int i = 0; i < source.DropManagedIds.length; i++) {
this.DropManagedIds[i] = new Long(source.DropManagedIds[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Action", this.Action);
this.setParamSimple(map, prefix + "RuleID", this.RuleID);
this.setParamArraySimple(map, prefix + "TransManagedIds.", this.TransManagedIds);
this.setParamArraySimple(map, prefix + "AlgManagedIds.", this.AlgManagedIds);
this.setParamArraySimple(map, prefix + "CapManagedIds.", this.CapManagedIds);
this.setParamArraySimple(map, prefix + "MonManagedIds.", this.MonManagedIds);
this.setParamArraySimple(map, prefix + "DropManagedIds.", this.DropManagedIds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy