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

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

There is a newer version: 0.1.143
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 io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * UpdateVulWhiteFieldRequest
 */



public class UpdateVulWhiteFieldRequest {
  @SerializedName("Enable")
  private Integer enable = null;

  /**
   * Gets or Sets fieldArea
   */
  @JsonAdapter(FieldAreaEnum.Adapter.class)
  public enum FieldAreaEnum {
    @SerializedName("args")
    ARGS("args"),
    @SerializedName("url")
    URL("url"),
    @SerializedName("cookies")
    COOKIES("cookies"),
    @SerializedName("headers")
    HEADERS("headers"),
    @SerializedName("bodydetail")
    BODYDETAIL("bodydetail");

    private String value;

    FieldAreaEnum(String value) {
      this.value = value;
    }
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    public static FieldAreaEnum fromValue(String input) {
      for (FieldAreaEnum b : FieldAreaEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }
    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final FieldAreaEnum enumeration) throws IOException {
        jsonWriter.value(String.valueOf(enumeration.getValue()));
      }

      @Override
      public FieldAreaEnum read(final JsonReader jsonReader) throws IOException {
        Object value = jsonReader.nextString();
        return FieldAreaEnum.fromValue((String)(value));
      }
    }
  }  @SerializedName("FieldArea")
  private FieldAreaEnum fieldArea = null;

  @SerializedName("FieldList")
  private String fieldList = null;

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

  @SerializedName("ID")
  private String ID = null;

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

  @SerializedName("ProjectName")
  private String projectName = null;

  public UpdateVulWhiteFieldRequest 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 UpdateVulWhiteFieldRequest fieldArea(FieldAreaEnum fieldArea) {
    this.fieldArea = fieldArea;
    return this;
  }

   /**
   * Get fieldArea
   * @return fieldArea
  **/
  @NotNull
  @Schema(required = true, description = "")
  public FieldAreaEnum getFieldArea() {
    return fieldArea;
  }

  public void setFieldArea(FieldAreaEnum fieldArea) {
    this.fieldArea = fieldArea;
  }

  public UpdateVulWhiteFieldRequest fieldList(String fieldList) {
    this.fieldList = fieldList;
    return this;
  }

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

  public void setFieldList(String fieldList) {
    this.fieldList = fieldList;
  }

  public UpdateVulWhiteFieldRequest 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 UpdateVulWhiteFieldRequest ID(String ID) {
    this.ID = ID;
    return this;
  }

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

  public void setID(String ID) {
    this.ID = ID;
  }

  public UpdateVulWhiteFieldRequest 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 UpdateVulWhiteFieldRequest projectName(String projectName) {
    this.projectName = projectName;
    return this;
  }

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

  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateVulWhiteFieldRequest updateVulWhiteFieldRequest = (UpdateVulWhiteFieldRequest) o;
    return Objects.equals(this.enable, updateVulWhiteFieldRequest.enable) &&
        Objects.equals(this.fieldArea, updateVulWhiteFieldRequest.fieldArea) &&
        Objects.equals(this.fieldList, updateVulWhiteFieldRequest.fieldList) &&
        Objects.equals(this.host, updateVulWhiteFieldRequest.host) &&
        Objects.equals(this.ID, updateVulWhiteFieldRequest.ID) &&
        Objects.equals(this.name, updateVulWhiteFieldRequest.name) &&
        Objects.equals(this.projectName, updateVulWhiteFieldRequest.projectName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(enable, fieldArea, fieldList, host, ID, name, projectName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateVulWhiteFieldRequest {\n");
    
    sb.append("    enable: ").append(toIndentedString(enable)).append("\n");
    sb.append("    fieldArea: ").append(toIndentedString(fieldArea)).append("\n");
    sb.append("    fieldList: ").append(toIndentedString(fieldList)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    ID: ").append(toIndentedString(ID)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).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