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

com.volcengine.waf.model.DataForListBlockRuleOutput 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.IpGroupForListBlockRuleOutput;
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;
/**
 * DataForListBlockRuleOutput
 */



public class DataForListBlockRuleOutput {
  @SerializedName("Action")
  private String action = null;

  @SerializedName("AddSrc")
  private Integer addSrc = null;

  @SerializedName("Advanced")
  private Integer advanced = null;

  @SerializedName("ClientIp")
  private String clientIp = null;

  @SerializedName("Description")
  private String description = null;

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

  @SerializedName("GroupId")
  private Integer groupId = null;

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

  @SerializedName("Id")
  private Integer id = null;

  @SerializedName("IpAddType")
  private Integer ipAddType = null;

  @SerializedName("IpGroups")
  private List ipGroups = null;

  @SerializedName("IpType")
  private Integer ipType = null;

  @SerializedName("IsolationId")
  private String isolationId = null;

  @SerializedName("JsConfId")
  private Integer jsConfId = null;

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

  @SerializedName("RuleTag")
  private String ruleTag = null;

  @SerializedName("UpdateTime")
  private String updateTime = null;

  @SerializedName("Url")
  private String url = null;

  public DataForListBlockRuleOutput action(String action) {
    this.action = action;
    return this;
  }

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

  public void setAction(String action) {
    this.action = action;
  }

  public DataForListBlockRuleOutput addSrc(Integer addSrc) {
    this.addSrc = addSrc;
    return this;
  }

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

  public void setAddSrc(Integer addSrc) {
    this.addSrc = addSrc;
  }

  public DataForListBlockRuleOutput advanced(Integer advanced) {
    this.advanced = advanced;
    return this;
  }

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

  public void setAdvanced(Integer advanced) {
    this.advanced = advanced;
  }

  public DataForListBlockRuleOutput clientIp(String clientIp) {
    this.clientIp = clientIp;
    return this;
  }

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

  public void setClientIp(String clientIp) {
    this.clientIp = clientIp;
  }

  public DataForListBlockRuleOutput description(String description) {
    this.description = description;
    return this;
  }

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

  public void setDescription(String description) {
    this.description = description;
  }

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

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

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

  public DataForListBlockRuleOutput groupId(Integer groupId) {
    this.groupId = groupId;
    return this;
  }

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

  public void setGroupId(Integer groupId) {
    this.groupId = groupId;
  }

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

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

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

  public DataForListBlockRuleOutput id(Integer id) {
    this.id = id;
    return this;
  }

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

  public void setId(Integer id) {
    this.id = id;
  }

  public DataForListBlockRuleOutput ipAddType(Integer ipAddType) {
    this.ipAddType = ipAddType;
    return this;
  }

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

  public void setIpAddType(Integer ipAddType) {
    this.ipAddType = ipAddType;
  }

  public DataForListBlockRuleOutput ipGroups(List ipGroups) {
    this.ipGroups = ipGroups;
    return this;
  }

  public DataForListBlockRuleOutput addIpGroupsItem(IpGroupForListBlockRuleOutput ipGroupsItem) {
    if (this.ipGroups == null) {
      this.ipGroups = new ArrayList();
    }
    this.ipGroups.add(ipGroupsItem);
    return this;
  }

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

  public void setIpGroups(List ipGroups) {
    this.ipGroups = ipGroups;
  }

  public DataForListBlockRuleOutput ipType(Integer ipType) {
    this.ipType = ipType;
    return this;
  }

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

  public void setIpType(Integer ipType) {
    this.ipType = ipType;
  }

  public DataForListBlockRuleOutput isolationId(String isolationId) {
    this.isolationId = isolationId;
    return this;
  }

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

  public void setIsolationId(String isolationId) {
    this.isolationId = isolationId;
  }

  public DataForListBlockRuleOutput jsConfId(Integer jsConfId) {
    this.jsConfId = jsConfId;
    return this;
  }

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

  public void setJsConfId(Integer jsConfId) {
    this.jsConfId = jsConfId;
  }

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

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

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

  public DataForListBlockRuleOutput ruleTag(String ruleTag) {
    this.ruleTag = ruleTag;
    return this;
  }

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

  public void setRuleTag(String ruleTag) {
    this.ruleTag = ruleTag;
  }

  public DataForListBlockRuleOutput updateTime(String updateTime) {
    this.updateTime = updateTime;
    return this;
  }

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

  public void setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
  }

  public DataForListBlockRuleOutput url(String url) {
    this.url = url;
    return this;
  }

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

  public void setUrl(String url) {
    this.url = url;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DataForListBlockRuleOutput dataForListBlockRuleOutput = (DataForListBlockRuleOutput) o;
    return Objects.equals(this.action, dataForListBlockRuleOutput.action) &&
        Objects.equals(this.addSrc, dataForListBlockRuleOutput.addSrc) &&
        Objects.equals(this.advanced, dataForListBlockRuleOutput.advanced) &&
        Objects.equals(this.clientIp, dataForListBlockRuleOutput.clientIp) &&
        Objects.equals(this.description, dataForListBlockRuleOutput.description) &&
        Objects.equals(this.enable, dataForListBlockRuleOutput.enable) &&
        Objects.equals(this.groupId, dataForListBlockRuleOutput.groupId) &&
        Objects.equals(this.host, dataForListBlockRuleOutput.host) &&
        Objects.equals(this.id, dataForListBlockRuleOutput.id) &&
        Objects.equals(this.ipAddType, dataForListBlockRuleOutput.ipAddType) &&
        Objects.equals(this.ipGroups, dataForListBlockRuleOutput.ipGroups) &&
        Objects.equals(this.ipType, dataForListBlockRuleOutput.ipType) &&
        Objects.equals(this.isolationId, dataForListBlockRuleOutput.isolationId) &&
        Objects.equals(this.jsConfId, dataForListBlockRuleOutput.jsConfId) &&
        Objects.equals(this.name, dataForListBlockRuleOutput.name) &&
        Objects.equals(this.ruleTag, dataForListBlockRuleOutput.ruleTag) &&
        Objects.equals(this.updateTime, dataForListBlockRuleOutput.updateTime) &&
        Objects.equals(this.url, dataForListBlockRuleOutput.url);
  }

  @Override
  public int hashCode() {
    return Objects.hash(action, addSrc, advanced, clientIp, description, enable, groupId, host, id, ipAddType, ipGroups, ipType, isolationId, jsConfId, name, ruleTag, updateTime, url);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DataForListBlockRuleOutput {\n");
    
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    addSrc: ").append(toIndentedString(addSrc)).append("\n");
    sb.append("    advanced: ").append(toIndentedString(advanced)).append("\n");
    sb.append("    clientIp: ").append(toIndentedString(clientIp)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    enable: ").append(toIndentedString(enable)).append("\n");
    sb.append("    groupId: ").append(toIndentedString(groupId)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    ipAddType: ").append(toIndentedString(ipAddType)).append("\n");
    sb.append("    ipGroups: ").append(toIndentedString(ipGroups)).append("\n");
    sb.append("    ipType: ").append(toIndentedString(ipType)).append("\n");
    sb.append("    isolationId: ").append(toIndentedString(isolationId)).append("\n");
    sb.append("    jsConfId: ").append(toIndentedString(jsConfId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    ruleTag: ").append(toIndentedString(ruleTag)).append("\n");
    sb.append("    updateTime: ").append(toIndentedString(updateTime)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).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