Class ListStoresResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ltr.ListStoresResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<ListStoresResponse.Builder,,ListStoresResponse> MutableBuilder<ListStoresResponse.Builder,,ListStoresResponse> ObjectBuilder<ListStoresResponse>
- Enclosing class:
ListStoresResponse
public static class ListStoresResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ListStoresResponse.Builder,ListStoresResponse>
Builder for
ListStoresResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aListStoresResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - Map of available feature stores.stores(String key, StoreDetails value) Required - Map of available feature stores.stores(Map<String, StoreDetails> map) Required - Map of available feature stores.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<ListStoresResponse.Builder,ListStoresResponse> - Returns:
- a new builder instance.
-
stores
Required - Map of available feature stores.API name:
storesAdds all elements of
maptostores. -
stores
Required - Map of available feature stores.API name:
storesAdds an entry to
stores. -
stores
@Nonnull public final ListStoresResponse.Builder stores(String key, Function<StoreDetails.Builder, ObjectBuilder<StoreDetails>> fn) Required - Map of available feature stores.API name:
storesAdds a value to
storesusing a builder lambda. -
build
Builds aListStoresResponse.- Specified by:
buildin interfaceObjectBuilder<ListStoresResponse>- Throws:
NullPointerException- if some of the required fields are null.
-