com.seeq.model.GraphQLInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.seeq.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;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* GraphQLInputV1
*/
public class GraphQLInputV1 {
@JsonProperty("query")
private String query = null;
@JsonProperty("variables")
private Map variables = new HashMap();
public GraphQLInputV1 query(String query) {
this.query = query;
return this;
}
/**
* GraphQL query
* @return query
**/
@Schema(description = "GraphQL query")
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
public GraphQLInputV1 variables(Map variables) {
this.variables = variables;
return this;
}
public GraphQLInputV1 putVariablesItem(String key, Object variablesItem) {
if (this.variables == null) {
this.variables = new HashMap();
}
this.variables.put(key, variablesItem);
return this;
}
/**
* Variable substitutions for the query
* @return variables
**/
@Schema(description = "Variable substitutions for the query")
public Map getVariables() {
return variables;
}
public void setVariables(Map variables) {
this.variables = variables;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GraphQLInputV1 graphQLInputV1 = (GraphQLInputV1) o;
return Objects.equals(this.query, graphQLInputV1.query) &&
Objects.equals(this.variables, graphQLInputV1.variables);
}
@Override
public int hashCode() {
return Objects.hash(query, variables);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GraphQLInputV1 {\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" variables: ").append(toIndentedString(variables)).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 ");
}
}