Class ShardStoreWrapper.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.shard_stores.ShardStoreWrapper.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardStoreWrapper.Builder,,ShardStoreWrapper> MutableBuilder<ShardStoreWrapper.Builder,,ShardStoreWrapper> ObjectBuilder<ShardStoreWrapper>
- Enclosing class:
ShardStoreWrapper
public static class ShardStoreWrapper.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardStoreWrapper.Builder,ShardStoreWrapper>
Builder for
ShardStoreWrapper.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardStoreWrapper.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The list of stores for the shard.stores(List<ShardStore> list) Required - The list of stores for the shard.stores(ShardStore value, ShardStore... values) Required - The list of stores for the shard.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ShardStoreWrapper.Builder,ShardStoreWrapper> - Returns:
- a new builder instance.
-
stores
Required - The list of stores for the shard.API name:
storesAdds all elements of
listtostores. -
stores
Required - The list of stores for the shard.API name:
storesAdds one or more values to
stores. -
stores
@Nonnull public final ShardStoreWrapper.Builder stores(Function<ShardStore.Builder, ObjectBuilder<ShardStore>> fn) Required - The list of stores for the shard.API name:
storesAdds a value to
storesusing a builder lambda. -
build
Builds aShardStoreWrapper.- Specified by:
buildin interfaceObjectBuilder<ShardStoreWrapper>- Throws:
NullPointerException- if some of the required fields are null.
-