Class Task

java.lang.Object
com.algolia.model.ingestion.Task

public class Task extends Object
Task
  • Constructor Details

    • Task

      public Task()
  • Method Details

    • setTaskID

      public Task setTaskID(String taskID)
    • getTaskID

      @Nonnull public String getTaskID()
      The task UUID.
    • setSourceID

      public Task setSourceID(String sourceID)
    • getSourceID

      @Nonnull public String getSourceID()
      The source UUID.
    • setDestinationID

      public Task setDestinationID(String destinationID)
    • getDestinationID

      @Nonnull public String getDestinationID()
      The destination UUID.
    • setTrigger

      public Task setTrigger(Trigger trigger)
    • getTrigger

      @Nonnull public Trigger getTrigger()
      Get trigger
    • setInput

      public Task setInput(TaskInput input)
    • getInput

      @Nullable public TaskInput getInput()
      Get input
    • setEnabled

      public Task setEnabled(Boolean enabled)
    • getEnabled

      @Nonnull public Boolean getEnabled()
      Whether the task is enabled or not.
    • setFailureThreshold

      public Task setFailureThreshold(Integer failureThreshold)
    • getFailureThreshold

      @Nullable public Integer getFailureThreshold()
      A percentage representing the accepted failure threshold to determine if a `run` succeeded or not. minimum: 0 maximum: 100
    • setAction

      public Task setAction(ActionType action)
    • getAction

      @Nonnull public ActionType getAction()
      Get action
    • setCreatedAt

      public Task setCreatedAt(String createdAt)
    • getCreatedAt

      @Nonnull public String getCreatedAt()
      Date of creation (RFC3339 format).
    • setUpdatedAt

      public Task setUpdatedAt(String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      Date of last update (RFC3339 format).
    • 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