Class SearchShardsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.SearchShardsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<SearchShardsResponse.Builder,,SearchShardsResponse> MutableBuilder<SearchShardsResponse.Builder,,SearchShardsResponse> ObjectBuilder<SearchShardsResponse>
- Enclosing class:
SearchShardsResponse
public static class SearchShardsResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SearchShardsResponse.Builder,SearchShardsResponse>
Builder for
SearchShardsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSearchShardsResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:indicesindices(String key, ShardStoreIndex value) Required - API name:indicesindices(Map<String, ShardStoreIndex> map) Required - API name:indicesRequired - API name:nodesnodes(String key, NodeAttributes value) Required - API name:nodesnodes(Map<String, NodeAttributes> map) Required - API name:nodesRequired - API name:shardsRequired - API name:shardsMethods 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<SearchShardsResponse.Builder,SearchShardsResponse> - Returns:
- a new builder instance.
-
indices
Required - API name:indicesAdds all elements of
maptoindices. -
indices
Required - API name:indicesAdds an entry to
indices. -
indices
@Nonnull public final SearchShardsResponse.Builder indices(String key, Function<ShardStoreIndex.Builder, ObjectBuilder<ShardStoreIndex>> fn) Required - API name:indicesAdds a value to
indicesusing a builder lambda. -
nodes
Required - API name:nodesAdds all elements of
maptonodes. -
nodes
Required - API name:nodesAdds an entry to
nodes. -
nodes
@Nonnull public final SearchShardsResponse.Builder nodes(String key, Function<NodeAttributes.Builder, ObjectBuilder<NodeAttributes>> fn) Required - API name:nodesAdds a value to
nodesusing a builder lambda. -
shards
Required - API name:shardsAdds all elements of
listtoshards. -
shards
@Nonnull public final SearchShardsResponse.Builder shards(List<NodeShard> value, List<NodeShard>... values) Required - API name:shardsAdds one or more values to
shards. -
build
Builds aSearchShardsResponse.- Specified by:
buildin interfaceObjectBuilder<SearchShardsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-