Class IndicesShardStores.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.shard_stores.IndicesShardStores.Builder
- All Implemented Interfaces:
CopyableBuilder<IndicesShardStores.Builder,,IndicesShardStores> MutableBuilder<IndicesShardStores.Builder,,IndicesShardStores> ObjectBuilder<IndicesShardStores>
- Enclosing class:
IndicesShardStores
public static class IndicesShardStores.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndicesShardStores.Builder,IndicesShardStores>
Builder for
IndicesShardStores.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndicesShardStores.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The store information for each shard.shards(String key, ShardStoreWrapper value) Required - The store information for each shard.shards(Map<String, ShardStoreWrapper> map) Required - The store information for each shard.Methods 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<IndicesShardStores.Builder,IndicesShardStores> - Returns:
- a new builder instance.
-
shards
Required - The store information for each shard.API name:
shardsAdds all elements of
maptoshards. -
shards
Required - The store information for each shard.API name:
shardsAdds an entry to
shards. -
shards
@Nonnull public final IndicesShardStores.Builder shards(String key, Function<ShardStoreWrapper.Builder, ObjectBuilder<ShardStoreWrapper>> fn) Required - The store information for each shard.API name:
shardsAdds a value to
shardsusing a builder lambda. -
build
Builds aIndicesShardStores.- Specified by:
buildin interfaceObjectBuilder<IndicesShardStores>- Throws:
NullPointerException- if some of the required fields are null.
-