All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.requests.task.ListTasks.scala Maven / Gradle / Ivy

There is a newer version: 8.15.4
Show newest version
package com.sksamuel.elastic4s.requests.task

import com.sksamuel.elastic4s.ext.OptionImplicits._

case class ListTasks(nodeIds: Seq[String],
                     detailed: Option[Boolean] = None,
                     actions: Seq[String] = Nil,
                     groupBy: Option[String] = None,
                     waitForCompletion: Option[Boolean] = None) {
  def actions(first: String, rest: String*): ListTasks = actions(first +: rest)
  def actions(actions: Iterable[String]): ListTasks = copy(actions = actions.toSeq)
  def groupBy(group: String): ListTasks = copy(groupBy = group.some)
  def groupByParents(): ListTasks = groupBy("parents")
  def waitForCompletion(w: Boolean): ListTasks = copy(waitForCompletion = w.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy