Package com.algolia.search.models.rules
Class Rule
- java.lang.Object
-
- com.algolia.search.models.rules.Rule
-
- All Implemented Interfaces:
Serializable
public class Rule extends Object implements Serializable
Query Rules allows performing pre- and post-processing on queries matching specific patterns.- See Also:
- Algolia.com, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConditiongetCondition()Deprecated.List<Condition>getConditions()ConsequencegetConsequence()StringgetDescription()BooleangetEnabled()StringgetObjectID()List<TimeRange>getValidity()RulesetCondition(Condition condition)Deprecated.RulesetConditions(List<Condition> conditions)RulesetConsequence(Consequence consequence)RulesetDescription(String description)RulesetEnabled(Boolean enabled)RulesetObjectID(String objectID)RulesetValidity(List<TimeRange> validity)
-
-
-
Method Detail
-
getObjectID
public String getObjectID()
-
getCondition
@Deprecated public Condition getCondition()
Deprecated.
-
setCondition
@Deprecated public Rule setCondition(Condition condition)
Deprecated.
-
getConsequence
public Consequence getConsequence()
-
setConsequence
public Rule setConsequence(Consequence consequence)
-
getDescription
public String getDescription()
-
getEnabled
public Boolean getEnabled()
-
-