Class RemoteSource
java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.RemoteSource
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RemoteSource>Json deserializer forRemoteSource -
Method Summary
Modifier and TypeMethodDescriptionfinal StringapiKey()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).final TimeThe remote connection timeout.headers()An object containing the headers of the request.final Stringhost()Required - The URL for the remote instance of Elasticsearch that you want to index from.static RemoteSourcefinal Stringpassword()The password to use for authentication with the remote host (required when using basic auth).rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal TimeThe remote socket read timeout.toString()final Stringusername()The username to use for authentication with the remote host (required when using basic auth).
-
Field Details
-
_DESERIALIZER
Json deserializer forRemoteSource
-
-
Method Details
-
of
-
connectTimeout
The remote connection timeout.API name:
connect_timeout -
headers
An object containing the headers of the request.API name:
headers -
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
The username to use for authentication with the remote host (required when using basic auth).API name:
username -
password
The password to use for authentication with the remote host (required when using basic auth).API name:
password -
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 anAuthorizationheader viaheaders.)API name:
api_key -
socketTimeout
The remote socket read timeout.API name:
socket_timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
RemoteSource.Builderinitialized with field values of this instance
-
setupRemoteSourceDeserializer
-