
org.kie.kogito.openapi.externalservice.model.QueryRequest Maven / Gradle / Ivy
package org.kie.kogito.openapi.externalservice.model;
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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.Type;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class QueryRequest {
private String query;
/**
* Get query
* @return query
**/
@JsonProperty("query")
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
public String getQuery() {
return query;
}
/**
* Set query
**/
public void setQuery(String query) {
this.query = query;
}
public QueryRequest query(String query) {
this.query = query;
return this;
}
/**
* Create a string representation of this pojo.
**/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueryRequest {\n");
sb.append(" query: ").append(toIndentedString(query)).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 static String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static class QueryRequestQueryParam {
@jakarta.ws.rs.QueryParam("query")
private String query;
/**
* Get query
* @return query
**/
@JsonProperty("query")
public String getQuery() {
return query;
}
/**
* Set query
**/
public void setQuery(String query) {
this.query = query;
}
public QueryRequestQueryParam query(String query) {
this.query = query;
return this;
}
/**
* Create a string representation of this pojo.
**/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueryRequestQueryParam {\n");
sb.append(" query: ").append(toIndentedString(query)).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 static String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy