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

com.algolia.search.models.rules.ConsequenceParams Maven / Gradle / Ivy

package com.algolia.search.models.rules;

import com.algolia.search.models.indexing.SearchParameters;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.List;

/**
 * Consequence parameter. More information:
 *
 * @see Algolia.com
 */
@SuppressWarnings({"unused"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ConsequenceParams extends SearchParameters {

  public ConsequenceParams() {}

  @JsonGetter("query")
  public ConsequenceQuery getConsequenceQuery() {
    return query;
  }

  /**
   * Providing a {@link ConsequenceQuery} will describe incremental edits to be made to the query.
   *
   * 

Important NOTE: Setting a ConsequenceQuery will override regular "query" if set. Both * can't be set at the same time. */ @JsonSetter("query") public ConsequenceParams setConsequenceQuery(ConsequenceQuery consequenceQuery) { this.query = consequenceQuery; return this; } @Override @JsonIgnore public String getQuery() { if (this.query != null) { return this.query.getQueryString(); } return null; } /** * When providing a string, it replaces the entire query string. * *

Important NOTE: Setting a Query String will override any ConsequenceQuery set before. * Both can't be set at the same time. */ @Override @JsonIgnore public ConsequenceParams setQuery(String query) { this.query = new ConsequenceQuery(); this.query.setQueryString(query); return this; } @Override @JsonIgnore public ConsequenceParams getThis() { return this; } public List getAutomaticFacetFilters() { return automaticFacetFilters; } public ConsequenceParams setAutomaticFacetFilters( List automaticFacetFilters) { this.automaticFacetFilters = automaticFacetFilters; return this; } public List getAutomaticOptionalFacetFilters() { return automaticOptionalFacetFilters; } public ConsequenceParams setAutomaticOptionalFacetFilters( List automaticOptionalFacetFilters) { this.automaticOptionalFacetFilters = automaticOptionalFacetFilters; return this; } private ConsequenceQuery query; @JsonDeserialize(using = AutomaticFacetFilterDeserializer.class) private List automaticFacetFilters; @JsonDeserialize(using = AutomaticFacetFilterDeserializer.class) private List automaticOptionalFacetFilters; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy