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()
      Universally unique identifier (UUID) of a task.
    • setSourceID

      public Task setSourceID(String sourceID)
    • getSourceID

      @Nonnull public String getSourceID()
      Universally uniqud identifier (UUID) of a source.
    • setDestinationID

      public Task setDestinationID(String destinationID)
    • getDestinationID

      @Nonnull public String getDestinationID()
      Universally unique identifier (UUID) of a destination resource.
    • setCron

      public Task setCron(String cron)
    • getCron

      @Nullable public String getCron()
      Cron expression for the task's schedule.
    • setLastRun

      public Task setLastRun(String lastRun)
    • getLastRun

      @Nullable public String getLastRun()
      The last time the scheduled task ran in RFC 3339 format.
    • setNextRun

      public Task setNextRun(String nextRun)
    • getNextRun

      @Nullable public String getNextRun()
      The next scheduled run of the task in RFC 3339 format.
    • 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.
    • setFailureThreshold

      public Task setFailureThreshold(Integer failureThreshold)
    • getFailureThreshold

      @Nullable public Integer getFailureThreshold()
      Maximum accepted percentage of failures for a task run to finish successfully. minimum: 0 maximum: 100
    • setAction

      public Task setAction(ActionType action)
    • getAction

      @Nonnull public ActionType getAction()
      Get action
    • setCursor

      public Task setCursor(String cursor)
    • getCursor

      @Nullable public String getCursor()
      Date of the last cursor in RFC 3339 format.
    • setCreatedAt

      public Task setCreatedAt(String createdAt)
    • getCreatedAt

      @Nonnull public String getCreatedAt()
      Date of creation in RFC 3339 format.
    • setUpdatedAt

      public Task setUpdatedAt(String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      Date of last update in RFC 3339 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