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

technology.semi.weaviate.client.v1.graphql.model.GraphQLQuery Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
// Generated by delombok at Tue Dec 20 18:59:22 UTC 2022
package technology.semi.weaviate.client.v1.graphql.model;

public class GraphQLQuery {
  private String operationName;
  private String query;
  private Object variables;

  @java.lang.SuppressWarnings("all")
  GraphQLQuery(final String operationName, final String query, final Object variables) {
    this.operationName = operationName;
    this.query = query;
    this.variables = variables;
  }


  @java.lang.SuppressWarnings("all")
  public static class GraphQLQueryBuilder {
    @java.lang.SuppressWarnings("all")
    private String operationName;
    @java.lang.SuppressWarnings("all")
    private String query;
    @java.lang.SuppressWarnings("all")
    private Object variables;

    @java.lang.SuppressWarnings("all")
    GraphQLQueryBuilder() {
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLQuery.GraphQLQueryBuilder operationName(final String operationName) {
      this.operationName = operationName;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLQuery.GraphQLQueryBuilder query(final String query) {
      this.query = query;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLQuery.GraphQLQueryBuilder variables(final Object variables) {
      this.variables = variables;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public GraphQLQuery build() {
      return new GraphQLQuery(this.operationName, this.query, this.variables);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "GraphQLQuery.GraphQLQueryBuilder(operationName=" + this.operationName + ", query=" + this.query + ", variables=" + this.variables + ")";
    }
  }

  @java.lang.SuppressWarnings("all")
  public static GraphQLQuery.GraphQLQueryBuilder builder() {
    return new GraphQLQuery.GraphQLQueryBuilder();
  }

  @java.lang.SuppressWarnings("all")
  public String getOperationName() {
    return this.operationName;
  }

  @java.lang.SuppressWarnings("all")
  public String getQuery() {
    return this.query;
  }

  @java.lang.SuppressWarnings("all")
  public Object getVariables() {
    return this.variables;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "GraphQLQuery(operationName=" + this.getOperationName() + ", query=" + this.getQuery() + ", variables=" + this.getVariables() + ")";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy