Class ShardStore.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardStore.Builder>
co.elastic.clients.elasticsearch.indices.shard_stores.ShardStore.Builder
- All Implemented Interfaces:
WithJson<ShardStore.Builder>,ObjectBuilder<ShardStore>
- Enclosing class:
- ShardStore
public static class ShardStore.Builder
extends WithJsonObjectBuilderBase<ShardStore.Builder>
implements ObjectBuilder<ShardStore>
Builder for
ShardStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ShardStore.Builderallocation(ShardStoreAllocation value) Required - The status of the store copy, whether it is used as a primary, replica, or not used at all.final ShardStore.BuilderallocationId(String value) The allocation ID of the store copy.build()Builds aShardStore.final ShardStore.Buildernode(ShardStoreNode value) Required -final ShardStore.BuilderRequired -final ShardStore.BuilderRequired -protected ShardStore.Builderself()final ShardStore.BuilderAny exception encountered while opening the shard index or from an earlier engine failure.final ShardStore.BuilderAny exception encountered while opening the shard index or from an earlier engine failure.Methods 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
-
nodeId
Required - -
node
Required - -
node
public final ShardStore.Builder node(Function<ShardStoreNode.Builder, ObjectBuilder<ShardStoreNode>> fn) Required - -
allocation
Required - The status of the store copy, whether it is used as a primary, replica, or not used at all.API name:
allocation -
allocationId
The allocation ID of the store copy.API name:
allocation_id -
storeException
Any exception encountered while opening the shard index or from an earlier engine failure.API name:
store_exception -
storeException
public final ShardStore.Builder storeException(Function<ShardStoreException.Builder, ObjectBuilder<ShardStoreException>> fn) Any exception encountered while opening the shard index or from an earlier engine failure.API name:
store_exception -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ShardStore.Builder>
-
build
Builds aShardStore.- Specified by:
buildin interfaceObjectBuilder<ShardStore>- Throws:
NullPointerException- if some of the required fields are null.
-