Class RemoteSource.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RemoteSource.Builder>
co.elastic.clients.elasticsearch.core.reindex.RemoteSource.Builder
- All Implemented Interfaces:
WithJson<RemoteSource.Builder>,ObjectBuilder<RemoteSource>
- Enclosing class:
- RemoteSource
public static class RemoteSource.Builder
extends WithJsonObjectBuilderBase<RemoteSource.Builder>
implements ObjectBuilder<RemoteSource>
Builder for
RemoteSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRemoteSource.final RemoteSource.BuilderconnectTimeout(Time value) The remote connection timeout.final RemoteSource.BuilderThe remote connection timeout.final RemoteSource.BuilderAn object containing the headers of the request.final RemoteSource.BuilderAn object containing the headers of the request.final RemoteSource.BuilderRequired - The URL for the remote instance of Elasticsearch that you want to index from.final RemoteSource.BuilderThe password to use for authentication with the remote host.protected RemoteSource.Builderself()final RemoteSource.BuildersocketTimeout(Time value) The remote socket read timeout.final RemoteSource.BuilderThe remote socket read timeout.final RemoteSource.BuilderThe username to use for authentication with the remote host.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectTimeout
The remote connection timeout.API name:
connect_timeout -
connectTimeout
The remote connection timeout.API name:
connect_timeout -
headers
An object containing the headers of the request.API name:
headersAdds all entries of
maptoheaders. -
headers
An object containing the headers of the request.API name:
headersAdds an entry to
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.API name:
username -
password
The password to use for authentication with the remote host.API name:
password -
socketTimeout
The remote socket read timeout.API name:
socket_timeout -
socketTimeout
The remote socket read timeout.API name:
socket_timeout -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RemoteSource.Builder>
-
build
Builds aRemoteSource.- Specified by:
buildin interfaceObjectBuilder<RemoteSource>- Throws:
NullPointerException- if some of the required fields are null.
-