Package com.algolia.model.recommend
Class RuleResponse
java.lang.Object
com.algolia.model.recommend.RuleResponse
Rule object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditions
(Condition conditionsItem) boolean
[Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule.Get consequenceDescription of the rule's purpose.Indicates whether to enable the rule.Get metadataUnique identifier for a rule object.int
hashCode()
setConditions
(List<Condition> conditions) setConsequence
(Consequence consequence) setDescription
(String description) setEnabled
(Boolean enabled) setMetadata
(RuleResponseMetadata metadata) setObjectID
(String objectID) toString()
-
Constructor Details
-
RuleResponse
public RuleResponse()
-
-
Method Details
-
setMetadata
-
getMetadata
Get metadata -
setObjectID
-
getObjectID
Unique identifier for a rule object. -
setConditions
-
addConditions
-
getConditions
[Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule. -
setConsequence
-
getConsequence
Get consequence -
setDescription
-
getDescription
Description of the rule's purpose. This can be helpful for display in the Algolia dashboard. -
setEnabled
-
getEnabled
Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time. -
equals
-
hashCode
public int hashCode() -
toString
-