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.Builder
addShards(java.util.List<NodeShard> value)
Add a value toshards(List)
, creating the list if needed.SearchShardsResponse
build()
Builds aSearchShardsResponse
.SearchShardsResponse.Builder
indices(java.lang.String key, java.util.function.Function<ShardStoreIndex.Builder,ObjectBuilder<ShardStoreIndex>> fn)
Setindices(Map)
to a singleton map.SearchShardsResponse.Builder
indices(java.util.Map<java.lang.String,ShardStoreIndex> value)
API name:indices
SearchShardsResponse.Builder
nodes(java.lang.String key, java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)
Setnodes(Map)
to a singleton map.SearchShardsResponse.Builder
nodes(java.util.Map<java.lang.String,NodeAttributes> value)
API name:nodes
SearchShardsResponse.Builder
putIndices(java.lang.String key, ShardStoreIndex value)
Add a key/value toindices(Map)
, creating the map if needed.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.SearchShardsResponse.Builder
putNodes(java.lang.String key, NodeAttributes value)
Add a key/value tonodes(Map)
, creating the map if needed.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.SearchShardsResponse.Builder
shards(java.util.List<NodeShard>... value)
API name:shards
SearchShardsResponse.Builder
shards(java.util.List<java.util.List<NodeShard>> value)
API name:shards
Methods 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
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
API name:shards
-
shards
API name:shards
-
addShards
Add a value toshards(List)
, creating the list if needed. 4 -
indices
public SearchShardsResponse.Builder indices(java.util.Map<java.lang.String,ShardStoreIndex> value)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:
build
in interfaceObjectBuilder<SearchShardsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-