Class IndicesShardStores.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndicesShardStores.Builder>
co.elastic.clients.elasticsearch.indices.shard_stores.IndicesShardStores.Builder
- All Implemented Interfaces:
WithJson<IndicesShardStores.Builder>
,ObjectBuilder<IndicesShardStores>
- Enclosing class:
- IndicesShardStores
public static class IndicesShardStores.Builder extends WithJsonObjectBuilderBase<IndicesShardStores.Builder> implements ObjectBuilder<IndicesShardStores>
Builder for
IndicesShardStores
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndicesShardStores
build()
Builds aIndicesShardStores
.protected IndicesShardStores.Builder
self()
IndicesShardStores.Builder
shards(java.lang.String key, ShardStoreWrapper value)
Required - API name:shards
IndicesShardStores.Builder
shards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)
Required - API name:shards
IndicesShardStores.Builder
shards(java.util.Map<java.lang.String,ShardStoreWrapper> map)
Required - API name:shards
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
public final IndicesShardStores.Builder shards(java.util.Map<java.lang.String,ShardStoreWrapper> map)Required - API name:shards
Adds all entries of
map
toshards
. -
shards
Required - API name:shards
Adds an entry to
shards
. -
shards
public final IndicesShardStores.Builder shards(java.lang.String key, java.util.function.Function<ShardStoreWrapper.Builder,ObjectBuilder<ShardStoreWrapper>> fn)Required - API name:shards
Adds an entry to
shards
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndicesShardStores.Builder>
-
build
Builds aIndicesShardStores
.- Specified by:
build
in interfaceObjectBuilder<IndicesShardStores>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-