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.

      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. This information is required when you're indexing from remote.

      API name: host

    • username

      @Nullable public final String username()
      The username to use for authentication with the remote host (required when using basic auth).

      API name: username

    • password

      @Nullable public final String password()
      The password to use for authentication with the remote host (required when using basic auth).

      API name: password

    • apiKey

      @Nullable public final String apiKey()
      The API key to use for authentication with the remote host (as an alternative to basic auth when the remote cluster is in Elastic Cloud). (It is not permitted to set this and also to set an Authorization header via headers.)

      API name: api_key

    • socketTimeout

      @Nullable public final Time socketTimeout()
      The remote socket read timeout.

      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
    • rebuild

      public RemoteSource.Builder rebuild()
      Returns:
      New RemoteSource.Builder initialized with field values of this instance
    • setupRemoteSourceDeserializer

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