Class RemoteSource.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.reindex.RemoteSource.Builder
- All Implemented Interfaces:
CopyableBuilder<RemoteSource.Builder,,RemoteSource> MutableBuilder<RemoteSource.Builder,,RemoteSource> ObjectBuilder<RemoteSource>
- Enclosing class:
RemoteSource
public static class RemoteSource.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RemoteSource.Builder,RemoteSource>
Builder for
RemoteSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRemoteSource.final RemoteSource.BuilderAPI name:connect_timeoutfinal RemoteSource.BuilderconnectTimeout(Time value) API name:connect_timeoutcopy()Create a new builderCopyableBuilderthat is a copy of this one.final RemoteSource.BuilderAn object containing the headers of the request.final RemoteSource.BuilderAn object containing the headers of the request.final RemoteSource.BuilderRequired - API name:hostfinal RemoteSource.BuilderAPI name:passwordfinal RemoteSource.BuilderAPI name:socket_timeoutfinal RemoteSource.BuildersocketTimeout(Time value) API name:socket_timeoutfinal RemoteSource.BuilderAPI name:usernameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RemoteSource.Builder,RemoteSource> - Returns:
- a new builder instance.
-
connectTimeout
API name:connect_timeout -
connectTimeout
@Nonnull public final RemoteSource.Builder connectTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:connect_timeout -
headers
An object containing the headers of the request.API name:
headersAdds all elements of
maptoheaders. -
headers
An object containing the headers of the request.API name:
headersAdds an entry to
headers. -
host
Required - API name:host -
password
API name:password -
socketTimeout
API name:socket_timeout -
socketTimeout
@Nonnull public final RemoteSource.Builder socketTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:socket_timeout -
username
API name:username -
build
Builds aRemoteSource.- Specified by:
buildin interfaceObjectBuilder<RemoteSource>- Throws:
NullPointerException- if some of the required fields are null.
-