Class ReindexNode.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.BaseNode.AbstractBuilder<ReindexNode.Builder>
org.opensearch.client.opensearch.core.reindex_rethrottle.ReindexNode.Builder
- All Implemented Interfaces:
CopyableBuilder<ReindexNode.Builder,,ReindexNode> MutableBuilder<ReindexNode.Builder,,ReindexNode> ObjectBuilder<ReindexNode>
- Enclosing class:
ReindexNode
public static class ReindexNode.Builder
extends BaseNode.AbstractBuilder<ReindexNode.Builder>
implements CopyableBuilder<ReindexNode.Builder,ReindexNode>
Builder for
ReindexNode.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReindexNode.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected ReindexNode.Builderself()final ReindexNode.Buildertasks(String key, Function<ReindexTask.Builder, ObjectBuilder<ReindexTask>> fn) Required - API name:tasksfinal ReindexNode.Buildertasks(String key, ReindexTask value) Required - API name:tasksfinal ReindexNode.Buildertasks(Map<String, ReindexTask> map) Required - API name:tasksMethods inherited from class org.opensearch.client.opensearch._types.BaseNode.AbstractBuilder
attributes, attributes, host, ip, name, roles, roles, transportAddressMethods 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<ReindexNode.Builder,ReindexNode> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classBaseNode.AbstractBuilder<ReindexNode.Builder>
-
tasks
Required - API name:tasksAdds all elements of
maptotasks. -
tasks
Required - API name:tasksAdds an entry to
tasks. -
tasks
@Nonnull public final ReindexNode.Builder tasks(String key, Function<ReindexTask.Builder, ObjectBuilder<ReindexTask>> fn) Required - API name:tasksAdds a value to
tasksusing a builder lambda. -
build
Builds aReindexNode.- Specified by:
buildin interfaceObjectBuilder<ReindexNode>- Throws:
NullPointerException- if some of the required fields are null.
-