Class RemoteSource

java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.RemoteSource
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class RemoteSource extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • connectTimeout

      @Nullable public final Time connectTimeout()
      The remote connection timeout. Defaults to 30 seconds.

      API name: connect_timeout

    • headers

      public final Map<String,String> headers()
      An object containing the headers of the request.

      API name: headers

    • host

      public final String host()
      Required - The URL for the remote instance of Elasticsearch that you want to index from.

      API name: host

    • username

      @Nullable public final String username()
      The username to use for authentication with the remote host.

      API name: username

    • password

      @Nullable public final String password()
      The password to use for authentication with the remote host.

      API name: password

    • socketTimeout

      @Nullable public final Time socketTimeout()
      The remote socket read timeout. Defaults to 30 seconds.

      API name: socket_timeout

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupRemoteSourceDeserializer

      protected static void setupRemoteSourceDeserializer(ObjectDeserializer<RemoteSource.Builder> op)