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

com.tencentcloudapi.teo.v20220901.models.RateLimitTemplateDetail Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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 {

    /**
    * Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: normal;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ @SerializedName("Mode") @Expose private String Mode; /** * Unique ID. */ @SerializedName("ID") @Expose private Long ID; /** * Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ @SerializedName("Action") @Expose private String Action; /** * Penalty duration, in seconds. Value range: 0-2 days. Note: This field may return null, which indicates a failure to obtain a valid value. */ @SerializedName("PunishTime") @Expose private Long PunishTime; /** * Statistical threshold, in times. Value range: 0-4294967294. */ @SerializedName("Threshold") @Expose private Long Threshold; /** * Statistical cycle. Value range: 0-120 seconds. */ @SerializedName("Period") @Expose private Long Period; /** * Get Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: normal;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Note: This field may return null, which indicates a failure to obtain a valid value. * @return Mode Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: normal;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ public String getMode() { return this.Mode; } /** * Set Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: normal;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Note: This field may return null, which indicates a failure to obtain a valid value. * @param Mode Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: normal;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ public void setMode(String Mode) { this.Mode = Mode; } /** * Get Unique ID. * @return ID Unique ID. */ public Long getID() { return this.ID; } /** * Set Unique ID. * @param ID Unique ID. */ public void setID(Long ID) { this.ID = ID; } /** * Get Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • Note: This field may return null, which indicates a failure to obtain a valid value. * @return Action Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ public String getAction() { return this.Action; } /** * Set Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • Note: This field may return null, which indicates a failure to obtain a valid value. * @param Action Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • Note: This field may return null, which indicates a failure to obtain a valid value. */ public void setAction(String Action) { this.Action = Action; } /** * Get Penalty duration, in seconds. Value range: 0-2 days. Note: This field may return null, which indicates a failure to obtain a valid value. * @return PunishTime Penalty duration, in seconds. Value range: 0-2 days. Note: This field may return null, which indicates a failure to obtain a valid value. */ public Long getPunishTime() { return this.PunishTime; } /** * Set Penalty duration, in seconds. Value range: 0-2 days. Note: This field may return null, which indicates a failure to obtain a valid value. * @param PunishTime Penalty duration, in seconds. Value range: 0-2 days. Note: This field may return null, which indicates a failure to obtain a valid value. */ public void setPunishTime(Long PunishTime) { this.PunishTime = PunishTime; } /** * Get Statistical threshold, in times. Value range: 0-4294967294. * @return Threshold Statistical threshold, in times. Value range: 0-4294967294. */ public Long getThreshold() { return this.Threshold; } /** * Set Statistical threshold, in times. Value range: 0-4294967294. * @param Threshold Statistical threshold, in times. Value range: 0-4294967294. */ public void setThreshold(Long Threshold) { this.Threshold = Threshold; } /** * Get Statistical cycle. Value range: 0-120 seconds. * @return Period Statistical cycle. Value range: 0-120 seconds. */ public Long getPeriod() { return this.Period; } /** * Set Statistical cycle. Value range: 0-120 seconds. * @param Period Statistical cycle. 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