Class PromoteObjectIDs

java.lang.Object
com.algolia.model.search.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()
      Object IDs of the records you want to promote. The records are placed as a group at the `position`. For example, if you want to promote four records to position `0`, they will be the first four search results.
    • setPosition

      public PromoteObjectIDs setPosition(Integer position)
    • getPosition

      @Nonnull public Integer getPosition()
      Position in the search results where you want to show the promoted records.
    • 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