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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndicesShardStores.protected IndicesShardStores.Builderself()shards(String key, ShardStoreWrapper value) Required - API name:shardsRequired - API name:shardsshards(Map<String, ShardStoreWrapper> map) Required - API name:shardsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
Required - API name:shardsAdds all entries of
maptoshards. -
shards
Required - API name:shardsAdds an entry to
shards. -
shards
public final IndicesShardStores.Builder shards(String key, Function<ShardStoreWrapper.Builder, ObjectBuilder<ShardStoreWrapper>> fn) Required - API name:shardsAdds an entry to
shardsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndicesShardStores.Builder>
-
build
Builds aIndicesShardStores.- Specified by:
buildin interfaceObjectBuilder<IndicesShardStores>- Throws:
NullPointerException- if some of the required fields are null.
-