Class PromoteObjectID

java.lang.Object
com.algolia.model.search.PromoteObjectID
All Implemented Interfaces:
Promote

public class PromoteObjectID extends Object implements Promote
Record to promote.
  • Constructor Details

    • PromoteObjectID

      public PromoteObjectID()
  • Method Details

    • setObjectID

      public PromoteObjectID setObjectID(String objectID)
    • getObjectID

      @Nonnull public String getObjectID()
      Unique identifier of the record to promote.
    • setPosition

      public PromoteObjectID 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