Class ShardStoreWrapper.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardStoreWrapper.Builder>
co.elastic.clients.elasticsearch.indices.shard_stores.ShardStoreWrapper.Builder
- All Implemented Interfaces:
WithJson<ShardStoreWrapper.Builder>
,ObjectBuilder<ShardStoreWrapper>
- Enclosing class:
- ShardStoreWrapper
public static class ShardStoreWrapper.Builder
extends WithJsonObjectBuilderBase<ShardStoreWrapper.Builder>
implements ObjectBuilder<ShardStoreWrapper>
Builder for
ShardStoreWrapper
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aShardStoreWrapper
.protected ShardStoreWrapper.Builder
self()
stores
(ShardStore value, ShardStore... values) Required - API name:stores
Required - API name:stores
stores
(List<ShardStore> list) Required - API name:stores
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
-
stores
Required - API name:stores
Adds all elements of
list
tostores
. -
stores
Required - API name:stores
Adds one or more values to
stores
. -
stores
public final ShardStoreWrapper.Builder stores(Function<ShardStore.Builder, ObjectBuilder<ShardStore>> fn) Required - API name:stores
Adds a value to
stores
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardStoreWrapper.Builder>
-
build
Builds aShardStoreWrapper
.- Specified by:
build
in interfaceObjectBuilder<ShardStoreWrapper>
- Throws:
NullPointerException
- if some of the required fields are null.
-