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

com.volcengine.waf.model.CreateBotAnalyseProtectRuleRequest Maven / Gradle / Ivy

There is a newer version: 0.1.129
Show newest version
/*
 * waf
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.volcengine.waf.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volcengine.waf.model.AccurateGroupForCreateBotAnalyseProtectRuleInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * CreateBotAnalyseProtectRuleRequest
 */



public class CreateBotAnalyseProtectRuleRequest {
  @SerializedName("AccurateGroup")
  private List accurateGroup = null;

  @SerializedName("ActionAfterVerification")
  private Integer actionAfterVerification = null;

  @SerializedName("ActionType")
  private Integer actionType = null;

  @SerializedName("EffectTime")
  private Integer effectTime = null;

  @SerializedName("Enable")
  private Integer enable = null;

  @SerializedName("ExemptionTime")
  private Integer exemptionTime = null;

  @SerializedName("Field")
  private String field = null;

  @SerializedName("Host")
  private String host = null;

  @SerializedName("Name")
  private String name = null;

  @SerializedName("Path")
  private String path = null;

  @SerializedName("PathThreshold")
  private Integer pathThreshold = null;

  @SerializedName("RulePriority")
  private Integer rulePriority = null;

  @SerializedName("SingleProportion")
  private String singleProportion = null;

  @SerializedName("SingleThreshold")
  private Integer singleThreshold = null;

  @SerializedName("StatisticalDuration")
  private Integer statisticalDuration = null;

  @SerializedName("StatisticalType")
  private Integer statisticalType = null;

  public CreateBotAnalyseProtectRuleRequest accurateGroup(List accurateGroup) {
    this.accurateGroup = accurateGroup;
    return this;
  }

  public CreateBotAnalyseProtectRuleRequest addAccurateGroupItem(AccurateGroupForCreateBotAnalyseProtectRuleInput accurateGroupItem) {
    if (this.accurateGroup == null) {
      this.accurateGroup = new ArrayList();
    }
    this.accurateGroup.add(accurateGroupItem);
    return this;
  }

   /**
   * Get accurateGroup
   * @return accurateGroup
  **/
  @Valid
  @Schema(description = "")
  public List getAccurateGroup() {
    return accurateGroup;
  }

  public void setAccurateGroup(List accurateGroup) {
    this.accurateGroup = accurateGroup;
  }

  public CreateBotAnalyseProtectRuleRequest actionAfterVerification(Integer actionAfterVerification) {
    this.actionAfterVerification = actionAfterVerification;
    return this;
  }

   /**
   * Get actionAfterVerification
   * @return actionAfterVerification
  **/
  @Schema(description = "")
  public Integer getActionAfterVerification() {
    return actionAfterVerification;
  }

  public void setActionAfterVerification(Integer actionAfterVerification) {
    this.actionAfterVerification = actionAfterVerification;
  }

  public CreateBotAnalyseProtectRuleRequest actionType(Integer actionType) {
    this.actionType = actionType;
    return this;
  }

   /**
   * Get actionType
   * @return actionType
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getActionType() {
    return actionType;
  }

  public void setActionType(Integer actionType) {
    this.actionType = actionType;
  }

  public CreateBotAnalyseProtectRuleRequest effectTime(Integer effectTime) {
    this.effectTime = effectTime;
    return this;
  }

   /**
   * Get effectTime
   * @return effectTime
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getEffectTime() {
    return effectTime;
  }

  public void setEffectTime(Integer effectTime) {
    this.effectTime = effectTime;
  }

  public CreateBotAnalyseProtectRuleRequest enable(Integer enable) {
    this.enable = enable;
    return this;
  }

   /**
   * Get enable
   * @return enable
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getEnable() {
    return enable;
  }

  public void setEnable(Integer enable) {
    this.enable = enable;
  }

  public CreateBotAnalyseProtectRuleRequest exemptionTime(Integer exemptionTime) {
    this.exemptionTime = exemptionTime;
    return this;
  }

   /**
   * Get exemptionTime
   * @return exemptionTime
  **/
  @Schema(description = "")
  public Integer getExemptionTime() {
    return exemptionTime;
  }

  public void setExemptionTime(Integer exemptionTime) {
    this.exemptionTime = exemptionTime;
  }

  public CreateBotAnalyseProtectRuleRequest field(String field) {
    this.field = field;
    return this;
  }

   /**
   * Get field
   * @return field
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getField() {
    return field;
  }

  public void setField(String field) {
    this.field = field;
  }

  public CreateBotAnalyseProtectRuleRequest host(String host) {
    this.host = host;
    return this;
  }

   /**
   * Get host
   * @return host
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getHost() {
    return host;
  }

  public void setHost(String host) {
    this.host = host;
  }

  public CreateBotAnalyseProtectRuleRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public CreateBotAnalyseProtectRuleRequest path(String path) {
    this.path = path;
    return this;
  }

   /**
   * Get path
   * @return path
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  public CreateBotAnalyseProtectRuleRequest pathThreshold(Integer pathThreshold) {
    this.pathThreshold = pathThreshold;
    return this;
  }

   /**
   * Get pathThreshold
   * @return pathThreshold
  **/
  @Schema(description = "")
  public Integer getPathThreshold() {
    return pathThreshold;
  }

  public void setPathThreshold(Integer pathThreshold) {
    this.pathThreshold = pathThreshold;
  }

  public CreateBotAnalyseProtectRuleRequest rulePriority(Integer rulePriority) {
    this.rulePriority = rulePriority;
    return this;
  }

   /**
   * Get rulePriority
   * @return rulePriority
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getRulePriority() {
    return rulePriority;
  }

  public void setRulePriority(Integer rulePriority) {
    this.rulePriority = rulePriority;
  }

  public CreateBotAnalyseProtectRuleRequest singleProportion(String singleProportion) {
    this.singleProportion = singleProportion;
    return this;
  }

   /**
   * Get singleProportion
   * @return singleProportion
  **/
  @Schema(description = "")
  public String getSingleProportion() {
    return singleProportion;
  }

  public void setSingleProportion(String singleProportion) {
    this.singleProportion = singleProportion;
  }

  public CreateBotAnalyseProtectRuleRequest singleThreshold(Integer singleThreshold) {
    this.singleThreshold = singleThreshold;
    return this;
  }

   /**
   * Get singleThreshold
   * @return singleThreshold
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getSingleThreshold() {
    return singleThreshold;
  }

  public void setSingleThreshold(Integer singleThreshold) {
    this.singleThreshold = singleThreshold;
  }

  public CreateBotAnalyseProtectRuleRequest statisticalDuration(Integer statisticalDuration) {
    this.statisticalDuration = statisticalDuration;
    return this;
  }

   /**
   * Get statisticalDuration
   * @return statisticalDuration
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getStatisticalDuration() {
    return statisticalDuration;
  }

  public void setStatisticalDuration(Integer statisticalDuration) {
    this.statisticalDuration = statisticalDuration;
  }

  public CreateBotAnalyseProtectRuleRequest statisticalType(Integer statisticalType) {
    this.statisticalType = statisticalType;
    return this;
  }

   /**
   * Get statisticalType
   * @return statisticalType
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getStatisticalType() {
    return statisticalType;
  }

  public void setStatisticalType(Integer statisticalType) {
    this.statisticalType = statisticalType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateBotAnalyseProtectRuleRequest createBotAnalyseProtectRuleRequest = (CreateBotAnalyseProtectRuleRequest) o;
    return Objects.equals(this.accurateGroup, createBotAnalyseProtectRuleRequest.accurateGroup) &&
        Objects.equals(this.actionAfterVerification, createBotAnalyseProtectRuleRequest.actionAfterVerification) &&
        Objects.equals(this.actionType, createBotAnalyseProtectRuleRequest.actionType) &&
        Objects.equals(this.effectTime, createBotAnalyseProtectRuleRequest.effectTime) &&
        Objects.equals(this.enable, createBotAnalyseProtectRuleRequest.enable) &&
        Objects.equals(this.exemptionTime, createBotAnalyseProtectRuleRequest.exemptionTime) &&
        Objects.equals(this.field, createBotAnalyseProtectRuleRequest.field) &&
        Objects.equals(this.host, createBotAnalyseProtectRuleRequest.host) &&
        Objects.equals(this.name, createBotAnalyseProtectRuleRequest.name) &&
        Objects.equals(this.path, createBotAnalyseProtectRuleRequest.path) &&
        Objects.equals(this.pathThreshold, createBotAnalyseProtectRuleRequest.pathThreshold) &&
        Objects.equals(this.rulePriority, createBotAnalyseProtectRuleRequest.rulePriority) &&
        Objects.equals(this.singleProportion, createBotAnalyseProtectRuleRequest.singleProportion) &&
        Objects.equals(this.singleThreshold, createBotAnalyseProtectRuleRequest.singleThreshold) &&
        Objects.equals(this.statisticalDuration, createBotAnalyseProtectRuleRequest.statisticalDuration) &&
        Objects.equals(this.statisticalType, createBotAnalyseProtectRuleRequest.statisticalType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accurateGroup, actionAfterVerification, actionType, effectTime, enable, exemptionTime, field, host, name, path, pathThreshold, rulePriority, singleProportion, singleThreshold, statisticalDuration, statisticalType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateBotAnalyseProtectRuleRequest {\n");
    
    sb.append("    accurateGroup: ").append(toIndentedString(accurateGroup)).append("\n");
    sb.append("    actionAfterVerification: ").append(toIndentedString(actionAfterVerification)).append("\n");
    sb.append("    actionType: ").append(toIndentedString(actionType)).append("\n");
    sb.append("    effectTime: ").append(toIndentedString(effectTime)).append("\n");
    sb.append("    enable: ").append(toIndentedString(enable)).append("\n");
    sb.append("    exemptionTime: ").append(toIndentedString(exemptionTime)).append("\n");
    sb.append("    field: ").append(toIndentedString(field)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    path: ").append(toIndentedString(path)).append("\n");
    sb.append("    pathThreshold: ").append(toIndentedString(pathThreshold)).append("\n");
    sb.append("    rulePriority: ").append(toIndentedString(rulePriority)).append("\n");
    sb.append("    singleProportion: ").append(toIndentedString(singleProportion)).append("\n");
    sb.append("    singleThreshold: ").append(toIndentedString(singleThreshold)).append("\n");
    sb.append("    statisticalDuration: ").append(toIndentedString(statisticalDuration)).append("\n");
    sb.append("    statisticalType: ").append(toIndentedString(statisticalType)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy