Class SearchShardsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.SearchShardsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<SearchShardsResponse>
- Enclosing class:
- SearchShardsResponse
public static class SearchShardsResponse.Builder extends java.lang.Object implements ObjectBuilder<SearchShardsResponse>
Builder for
SearchShardsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SearchShardsResponse.BuilderaddShards(java.util.List<NodeShard> value)Add a value toshards(List), creating the list if needed.SearchShardsResponsebuild()Builds aSearchShardsResponse.SearchShardsResponse.Builderindices(java.lang.String key, java.util.function.Function<ShardStoreIndex.Builder,ObjectBuilder<ShardStoreIndex>> fn)Setindices(Map)to a singleton map.SearchShardsResponse.Builderindices(java.util.Map<java.lang.String,ShardStoreIndex> value)Required - API name:indicesSearchShardsResponse.Buildernodes(java.lang.String key, java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Setnodes(Map)to a singleton map.SearchShardsResponse.Buildernodes(java.util.Map<java.lang.String,NodeAttributes> value)Required - API name:nodesSearchShardsResponse.BuilderputIndices(java.lang.String key, ShardStoreIndex value)Add a key/value toindices(Map), creating the map if needed.SearchShardsResponse.BuilderputIndices(java.lang.String key, java.util.function.Function<ShardStoreIndex.Builder,ObjectBuilder<ShardStoreIndex>> fn)Add a key/value toindices(Map), creating the map if needed.SearchShardsResponse.BuilderputNodes(java.lang.String key, NodeAttributes value)Add a key/value tonodes(Map), creating the map if needed.SearchShardsResponse.BuilderputNodes(java.lang.String key, java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Add a key/value tonodes(Map), creating the map if needed.SearchShardsResponse.Buildershards(java.util.List<NodeShard>... value)Required - API name:shardsSearchShardsResponse.Buildershards(java.util.List<java.util.List<NodeShard>> value)Required - API name:shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodes
Required - API name:nodes -
putNodes
Add a key/value tonodes(Map), creating the map if needed. -
nodes
public SearchShardsResponse.Builder nodes(java.lang.String key, java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Setnodes(Map)to a singleton map. -
putNodes
public SearchShardsResponse.Builder putNodes(java.lang.String key, java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Add a key/value tonodes(Map), creating the map if needed. -
shards
Required - API name:shards -
shards
Required - API name:shards -
addShards
Add a value toshards(List), creating the list if needed. -
indices
public SearchShardsResponse.Builder indices(java.util.Map<java.lang.String,ShardStoreIndex> value)Required - API name:indices -
putIndices
Add a key/value toindices(Map), creating the map if needed. -
indices
public SearchShardsResponse.Builder indices(java.lang.String key, java.util.function.Function<ShardStoreIndex.Builder,ObjectBuilder<ShardStoreIndex>> fn)Setindices(Map)to a singleton map. -
putIndices
public SearchShardsResponse.Builder putIndices(java.lang.String key, java.util.function.Function<ShardStoreIndex.Builder,ObjectBuilder<ShardStoreIndex>> fn)Add a key/value toindices(Map), creating the map if needed. -
build
Builds aSearchShardsResponse.- Specified by:
buildin interfaceObjectBuilder<SearchShardsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-