com.tencentcloudapi.teo.v20220901.models.BotPortraitRule 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 BotPortraitRule extends AbstractModel {
/**
* Switch. Values:
`on`: Enable
`off`: Disable
*/
@SerializedName("Switch")
@Expose
private String Switch;
/**
* 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 "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 Switch. Values:
`on`: Enable
`off`: Disable
* @return Switch Switch. Values:
`on`: Enable
`off`: Disable
*/
public String getSwitch() {
return this.Switch;
}
/**
* Set Switch. Values:
`on`: Enable
`off`: Disable
* @param Switch Switch. Values:
`on`: Enable
`off`: Disable
*/
public void setSwitch(String Switch) {
this.Switch = Switch;
}
/**
* 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 "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 BotPortraitRule() {
}
/**
* 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 BotPortraitRule(BotPortraitRule source) {
if (source.Switch != null) {
this.Switch = new String(source.Switch);
}
if (source.RuleID != null) {
this.RuleID = new Long(source.RuleID);
}
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 + "Switch", this.Switch);
this.setParamSimple(map, prefix + "RuleID", this.RuleID);
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);
}
}