Class ShardStoreWrapper.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.shard_stores.ShardStoreWrapper.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardStoreWrapper>
- Enclosing class:
- ShardStoreWrapper
public static class ShardStoreWrapper.Builder extends java.lang.Object implements ObjectBuilder<ShardStoreWrapper>
Builder for
ShardStoreWrapper.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ShardStoreWrapper.BuilderaddStores(ShardStore value)Add a value tostores(List), creating the list if needed.ShardStoreWrapper.BuilderaddStores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Add a value tostores(List), creating the list if needed.ShardStoreWrapperbuild()Builds aShardStoreWrapper.ShardStoreWrapper.Builderstores(ShardStore... value)Required - API name:storesShardStoreWrapper.Builderstores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Setstores(List)to a singleton list.ShardStoreWrapper.Builderstores(java.util.List<ShardStore> value)Required - API name:storesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stores
Required - API name:stores -
stores
Required - API name:stores -
addStores
Add a value tostores(List), creating the list if needed. -
stores
public ShardStoreWrapper.Builder stores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Setstores(List)to a singleton list. -
addStores
public ShardStoreWrapper.Builder addStores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Add a value tostores(List), creating the list if needed. -
build
Builds aShardStoreWrapper.- Specified by:
buildin interfaceObjectBuilder<ShardStoreWrapper>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-