com.katalon.testops.model.SearchRequestCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-client-openapi Show documentation
Show all versions of testops-client-openapi Show documentation
Katalon TestOps Client generated by OpenAPI
/*
* Katalon TestOps API reference
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* 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.katalon.testops.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* SearchRequestCondition
*/
public class SearchRequestCondition {
@JsonProperty("key")
private String key = null;
@JsonProperty("operator")
private String operator = null;
@JsonProperty("value")
private Object value = null;
public SearchRequestCondition key(String key) {
this.key = key;
return this;
}
/**
* Get key
* @return key
**/
@Schema(description = "")
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
**/
@Schema(description = "")
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
**/
@Schema(description = "")
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 ");
}
}