com.volcengine.waf.model.CreateVulWhiteFieldRequest Maven / Gradle / Ivy
/*
* 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;
/**
* CreateVulWhiteFieldRequest
*/
public class CreateVulWhiteFieldRequest {
@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("Name")
private String name = null;
@SerializedName("ProjectName")
private String projectName = null;
public CreateVulWhiteFieldRequest 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 CreateVulWhiteFieldRequest fieldArea(FieldAreaEnum fieldArea) {
this.fieldArea = fieldArea;
return this;
}
/**
* Get fieldArea
* @return fieldArea
**/
@Schema(description = "")
public FieldAreaEnum getFieldArea() {
return fieldArea;
}
public void setFieldArea(FieldAreaEnum fieldArea) {
this.fieldArea = fieldArea;
}
public CreateVulWhiteFieldRequest 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 CreateVulWhiteFieldRequest 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 CreateVulWhiteFieldRequest 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 CreateVulWhiteFieldRequest 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;
}
CreateVulWhiteFieldRequest createVulWhiteFieldRequest = (CreateVulWhiteFieldRequest) o;
return Objects.equals(this.enable, createVulWhiteFieldRequest.enable) &&
Objects.equals(this.fieldArea, createVulWhiteFieldRequest.fieldArea) &&
Objects.equals(this.fieldList, createVulWhiteFieldRequest.fieldList) &&
Objects.equals(this.host, createVulWhiteFieldRequest.host) &&
Objects.equals(this.name, createVulWhiteFieldRequest.name) &&
Objects.equals(this.projectName, createVulWhiteFieldRequest.projectName);
}
@Override
public int hashCode() {
return Objects.hash(enable, fieldArea, fieldList, host, name, projectName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateVulWhiteFieldRequest {\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(" 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