Class IndicesShardStores.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.shard_stores.IndicesShardStores.Builder
- All Implemented Interfaces:
ObjectBuilder<IndicesShardStores>
- Enclosing class:
- IndicesShardStores
public static class IndicesShardStores.Builder extends java.lang.Object implements ObjectBuilder<IndicesShardStores>
Builder for
IndicesShardStores.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndicesShardStoresbuild()Builds aIndicesShardStores.IndicesShardStores.BuilderputShards(java.lang.String key, ShardStoreWrapper value)Add a key/value toshards(Map), creating the map if needed.IndicesShardStores.BuilderputShards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)Add a key/value toshards(Map), creating the map if needed.IndicesShardStores.Buildershards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)Setshards(Map)to a singleton map.IndicesShardStores.Buildershards(java.util.Map<java.lang.String,ShardStoreWrapper> value)Required - API name:shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
Required - API name:shards -
putShards
Add a key/value toshards(Map), creating the map if needed. -
shards
public IndicesShardStores.Builder shards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)Setshards(Map)to a singleton map. -
putShards
public IndicesShardStores.Builder putShards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)Add a key/value toshards(Map), creating the map if needed. -
build
Builds aIndicesShardStores.- Specified by:
buildin interfaceObjectBuilder<IndicesShardStores>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-