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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aIndicesShardStores
.protected IndicesShardStores.Builder
self()
shards
(String key, ShardStoreWrapper value) Required - API name:shards
Required - API name:shards
shards
(Map<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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
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(String key, 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:
NullPointerException
- if some of the required fields are null.
-