com.sksamuel.elastic4s.requests.settings.GetSettingsRequest.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.requests.settings
import com.sksamuel.elastic4s.Indexes
import com.sksamuel.elastic4s.requests.admin.IndicesOptionsRequest
import com.sksamuel.elastic4s.ext.OptionImplicits._
case class GetSettingsRequest(indexes: Indexes, options: Option[IndicesOptionsRequest] = None, includeSettings: Seq[String] = Nil) {
def options(options: IndicesOptionsRequest): GetSettingsRequest = copy(options = options.some)
def include(settings: Seq[String]): GetSettingsRequest = copy(includeSettings = settings)
}