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
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ShardStoreWrapperbuild()Builds aShardStoreWrapper.protected ShardStoreWrapper.Builderself()ShardStoreWrapper.Builderstores(ShardStore value, ShardStore... values)Required - API name:storesShardStoreWrapper.Builderstores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Required - API name:storesShardStoreWrapper.Builderstores(java.util.List<ShardStore> list)Required - API name:storesMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:storesAdds all elements of
listtostores. -
stores
Required - API name:storesAdds one or more values to
stores. -
stores
public final ShardStoreWrapper.Builder stores(java.util.function.Function<ShardStore.Builder,ObjectBuilder<ShardStore>> fn)Required - API name:storesAdds a value to
storesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ShardStoreWrapper.Builder>
-
build
Builds aShardStoreWrapper.- Specified by:
buildin interfaceObjectBuilder<ShardStoreWrapper>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-