com.katalon.testops.api.model.SearchRequestCondition Maven / Gradle / Ivy
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* SearchRequestCondition
*/
@JsonPropertyOrder({
SearchRequestCondition.JSON_PROPERTY_KEY,
SearchRequestCondition.JSON_PROPERTY_OPERATOR,
SearchRequestCondition.JSON_PROPERTY_VALUE
})
@JsonTypeName("SearchRequestCondition")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SearchRequestCondition implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_OPERATOR = "operator";
private String operator;
public static final String JSON_PROPERTY_VALUE = "value";
private Object value;
public SearchRequestCondition key(String key) {
this.key = key;
return this;
}
/**
* Get key
* @return key
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public SearchRequestCondition operator(String operator) {
this.operator = operator;
return this;
}
/**
* Get operator
* @return operator
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OPERATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
public SearchRequestCondition value(Object value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchRequestCondition searchRequestCondition = (SearchRequestCondition) o;
return Objects.equals(this.key, searchRequestCondition.key) &&
Objects.equals(this.operator, searchRequestCondition.operator) &&
Objects.equals(this.value, searchRequestCondition.value);
}
@Override
public int hashCode() {
return Objects.hash(key, operator, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchRequestCondition {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}