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

com.tencentcloudapi.teo.v20220901.models.RateLimitTemplateDetail 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.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 RateLimitTemplateDetail extends AbstractModel {

    /**
    * The mode. Values:
  • `sup_loose`: Super loose
  • `loose`: Loose
  • `emergency`: Emergency
  • `normal`: Moderate
  • `strict`: Strict
  • `close`: Off
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("Mode") @Expose private String Mode; /** * The unique ID. */ @SerializedName("ID") @Expose private Long ID; /** * The action. Values:
  • `alg`: JavaScript challenge
  • `monitor`: Observe
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("Action") @Expose private String Action; /** * The blocking duration, in seconds. Value range: 0-172800. Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("PunishTime") @Expose private Long PunishTime; /** * The request threshold. Value range: 0-4294967294. */ @SerializedName("Threshold") @Expose private Long Threshold; /** * The statistical period. Value range: 0-120 seconds. */ @SerializedName("Period") @Expose private Long Period; /** * Get The mode. Values:
  • `sup_loose`: Super loose
  • `loose`: Loose
  • `emergency`: Emergency
  • `normal`: Moderate
  • `strict`: Strict
  • `close`: Off
  • Note: This field may return `null`, indicating that no valid value can be obtained. * @return Mode The mode. Values:
  • `sup_loose`: Super loose
  • `loose`: Loose
  • `emergency`: Emergency
  • `normal`: Moderate
  • `strict`: Strict
  • `close`: Off
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ public String getMode() { return this.Mode; } /** * Set The mode. Values:
  • `sup_loose`: Super loose
  • `loose`: Loose
  • `emergency`: Emergency
  • `normal`: Moderate
  • `strict`: Strict
  • `close`: Off
  • Note: This field may return `null`, indicating that no valid value can be obtained. * @param Mode The mode. Values:
  • `sup_loose`: Super loose
  • `loose`: Loose
  • `emergency`: Emergency
  • `normal`: Moderate
  • `strict`: Strict
  • `close`: Off
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setMode(String Mode) { this.Mode = Mode; } /** * Get The unique ID. * @return ID The unique ID. */ public Long getID() { return this.ID; } /** * Set The unique ID. * @param ID The unique ID. */ public void setID(Long ID) { this.ID = ID; } /** * Get The action. Values:
  • `alg`: JavaScript challenge
  • `monitor`: Observe
  • Note: This field may return `null`, indicating that no valid value can be obtained. * @return Action The action. Values:
  • `alg`: JavaScript challenge
  • `monitor`: Observe
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ public String getAction() { return this.Action; } /** * Set The action. Values:
  • `alg`: JavaScript challenge
  • `monitor`: Observe
  • Note: This field may return `null`, indicating that no valid value can be obtained. * @param Action The action. Values:
  • `alg`: JavaScript challenge
  • `monitor`: Observe
  • Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setAction(String Action) { this.Action = Action; } /** * Get The blocking duration, in seconds. Value range: 0-172800. Note: This field may return `null`, indicating that no valid value can be obtained. * @return PunishTime The blocking duration, in seconds. Value range: 0-172800. Note: This field may return `null`, indicating that no valid value can be obtained. */ public Long getPunishTime() { return this.PunishTime; } /** * Set The blocking duration, in seconds. Value range: 0-172800. Note: This field may return `null`, indicating that no valid value can be obtained. * @param PunishTime The blocking duration, in seconds. Value range: 0-172800. Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setPunishTime(Long PunishTime) { this.PunishTime = PunishTime; } /** * Get The request threshold. Value range: 0-4294967294. * @return Threshold The request threshold. Value range: 0-4294967294. */ public Long getThreshold() { return this.Threshold; } /** * Set The request threshold. Value range: 0-4294967294. * @param Threshold The request threshold. Value range: 0-4294967294. */ public void setThreshold(Long Threshold) { this.Threshold = Threshold; } /** * Get The statistical period. Value range: 0-120 seconds. * @return Period The statistical period. Value range: 0-120 seconds. */ public Long getPeriod() { return this.Period; } /** * Set The statistical period. Value range: 0-120 seconds. * @param Period The statistical period. Value range: 0-120 seconds. */ public void setPeriod(Long Period) { this.Period = Period; } public RateLimitTemplateDetail() { } /** * 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 RateLimitTemplateDetail(RateLimitTemplateDetail source) { if (source.Mode != null) { this.Mode = new String(source.Mode); } if (source.ID != null) { this.ID = new Long(source.ID); } if (source.Action != null) { this.Action = new String(source.Action); } if (source.PunishTime != null) { this.PunishTime = new Long(source.PunishTime); } if (source.Threshold != null) { this.Threshold = new Long(source.Threshold); } if (source.Period != null) { this.Period = new Long(source.Period); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Mode", this.Mode); this.setParamSimple(map, prefix + "ID", this.ID); this.setParamSimple(map, prefix + "Action", this.Action); this.setParamSimple(map, prefix + "PunishTime", this.PunishTime); this.setParamSimple(map, prefix + "Threshold", this.Threshold); this.setParamSimple(map, prefix + "Period", this.Period); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy