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 IndicesShardStores
build()
Builds aIndicesShardStores
.IndicesShardStores.Builder
putShards(java.lang.String key, ShardStoreWrapper value)
Add a key/value toshards(Map)
, creating the map if needed.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.IndicesShardStores.Builder
shards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)
Setshards(Map)
to a singleton map.IndicesShardStores.Builder
shards(java.util.Map<java.lang.String,ShardStoreWrapper> value)
Required - API name:shards
Methods 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:
build
in interfaceObjectBuilder<IndicesShardStores>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-