Class PromoteObjectIDs

java.lang.Object
com.algolia.model.recommend.PromoteObjectIDs
All Implemented Interfaces:
Promote

public class PromoteObjectIDs extends Object implements Promote
Records to promote.
  • Constructor Details

    • PromoteObjectIDs

      public PromoteObjectIDs()
  • Method Details

    • setObjectIDs

      public PromoteObjectIDs setObjectIDs(List<String> objectIDs)
    • addObjectIDs

      public PromoteObjectIDs addObjectIDs(String objectIDsItem)
    • getObjectIDs

      @Nonnull public List<String> getObjectIDs()
      Unique identifiers of the records to promote.
    • setPosition

      public PromoteObjectIDs setPosition(Integer position)
    • getPosition

      @Nonnull public Integer getPosition()
      The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object