Class ShardStoresResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.ShardStoresResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardStoresResponse>
- Enclosing class:
- ShardStoresResponse
public static class ShardStoresResponse.Builder extends java.lang.Object implements ObjectBuilder<ShardStoresResponse>
Builder for
ShardStoresResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardStoresResponse
build()
Builds aShardStoresResponse
.ShardStoresResponse.Builder
indices(java.lang.String key, java.util.function.Function<IndicesShardStores.Builder,ObjectBuilder<IndicesShardStores>> fn)
Setindices(Map)
to a singleton map.ShardStoresResponse.Builder
indices(java.util.Map<java.lang.String,IndicesShardStores> value)
Required - API name:indices
ShardStoresResponse.Builder
putIndices(java.lang.String key, IndicesShardStores value)
Add a key/value toindices(Map)
, creating the map if needed.ShardStoresResponse.Builder
putIndices(java.lang.String key, java.util.function.Function<IndicesShardStores.Builder,ObjectBuilder<IndicesShardStores>> fn)
Add a key/value toindices(Map)
, creating the map if needed.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
-
indices
public ShardStoresResponse.Builder indices(java.util.Map<java.lang.String,IndicesShardStores> value)Required - API name:indices
-
putIndices
Add a key/value toindices(Map)
, creating the map if needed. -
indices
public ShardStoresResponse.Builder indices(java.lang.String key, java.util.function.Function<IndicesShardStores.Builder,ObjectBuilder<IndicesShardStores>> fn)Setindices(Map)
to a singleton map. -
putIndices
public ShardStoresResponse.Builder putIndices(java.lang.String key, java.util.function.Function<IndicesShardStores.Builder,ObjectBuilder<IndicesShardStores>> fn)Add a key/value toindices(Map)
, creating the map if needed. -
build
Builds aShardStoresResponse
.- Specified by:
build
in interfaceObjectBuilder<ShardStoresResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-