Class ShardStore.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.shard_stores.ShardStore.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardStore.Builder,,ShardStore> MutableBuilder<ShardStore.Builder,,ShardStore> ObjectBuilder<ShardStore>
- Enclosing class:
ShardStore
public static class ShardStore.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardStore.Builder,ShardStore>
Builder for
ShardStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ShardStore.Builderallocation(ShardStoreAllocation value) Required - API name:allocationfinal ShardStore.BuilderallocationId(String value) API name:allocation_idbuild()Builds aShardStore.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ShardStore.BuilderAdds a value tonodesusing a builder lambda.final ShardStore.Buildernodes(String key, NodeAttributes value) Adds an entry tonodes.final ShardStore.Buildernodes(Map<String, NodeAttributes> map) Adds all elements ofmaptonodes.final ShardStore.BuilderAPI name:store_exceptionfinal ShardStore.BuilderAPI name:store_exceptionMethods 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<ShardStore.Builder,ShardStore> - Returns:
- a new builder instance.
-
allocation
Required - API name:allocation -
allocationId
API name:allocation_id -
nodes
Adds all elements of
maptonodes. -
nodes
Adds an entry to
nodes. -
nodes
@Nonnull public final ShardStore.Builder nodes(String key, Function<NodeAttributes.Builder, ObjectBuilder<NodeAttributes>> fn) Adds a value to
nodesusing a builder lambda. -
storeException
API name:store_exception -
storeException
@Nonnull public final ShardStore.Builder storeException(Function<ShardStoreException.Builder, ObjectBuilder<ShardStoreException>> fn) API name:store_exception -
build
Builds aShardStore.- Specified by:
buildin interfaceObjectBuilder<ShardStore>- Throws:
NullPointerException- if some of the required fields are null.
-