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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
connectTimeoutThe remote connection timeout.API name: connect_timeout
- 
connectTimeoutThe remote connection timeout.API name: connect_timeout
- 
headersAn object containing the headers of the request.API name: headersAdds all entries of maptoheaders.
- 
headersAn object containing the headers of the request.API name: headersAdds an entry to headers.
- 
hostRequired - 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
- 
usernameThe username to use for authentication with the remote host.API name: username
- 
passwordThe password to use for authentication with the remote host.API name: password
- 
socketTimeoutThe remote socket read timeout.API name: socket_timeout
- 
socketTimeoutThe remote socket read timeout.API name: socket_timeout
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<RemoteSource.Builder>
 
- 
buildBuilds aRemoteSource.- Specified by:
- buildin interface- ObjectBuilder<RemoteSource>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-