All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.graphql.web.models.GraphqlJsonBody Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
package io.stargate.graphql.web.models;

import java.util.Map;

/** The body of a GraphQL POST request when it's using content type "application/json". */
public class GraphqlJsonBody {

  private String query;
  private String operationName;
  private Map variables;

  public String getQuery() {
    return query;
  }

  public void setQuery(String query) {
    this.query = query;
  }

  public String getOperationName() {
    return operationName;
  }

  public void setOperationName(String operationName) {
    this.operationName = operationName;
  }

  public Map getVariables() {
    return variables;
  }

  public void setVariables(Map variables) {
    this.variables = variables;
  }

  @Override
  public String toString() {
    return "GraphqlJsonBody{"
        + "query='"
        + query
        + '\''
        + ", operationName='"
        + operationName
        + '\''
        + ", variables="
        + variables
        + '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy