Class ClusterInfo.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.allocation_explain.ClusterInfo.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ClusterInfo>
- Enclosing class:
- ClusterInfo
public static class ClusterInfo.Builder extends ObjectBuilderBase implements ObjectBuilder<ClusterInfo>
Builder forClusterInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterInfo
build()
Builds aClusterInfo
.ClusterInfo.Builder
nodes(java.lang.String key, java.util.function.Function<NodeDiskUsage.Builder,ObjectBuilder<NodeDiskUsage>> fn)
Required - API name:nodes
ClusterInfo.Builder
nodes(java.lang.String key, NodeDiskUsage value)
Required - API name:nodes
ClusterInfo.Builder
nodes(java.util.Map<java.lang.String,NodeDiskUsage> map)
Required - API name:nodes
ClusterInfo.Builder
reservedSizes(java.util.function.Function<ReservedSize.Builder,ObjectBuilder<ReservedSize>> fn)
Required - API name:reserved_sizes
ClusterInfo.Builder
reservedSizes(java.util.List<ReservedSize> list)
Required - API name:reserved_sizes
ClusterInfo.Builder
reservedSizes(ReservedSize value, ReservedSize... values)
Required - API name:reserved_sizes
ClusterInfo.Builder
shardDataSetSizes(java.lang.String key, java.lang.String value)
API name:shard_data_set_sizes
ClusterInfo.Builder
shardDataSetSizes(java.util.Map<java.lang.String,java.lang.String> map)
API name:shard_data_set_sizes
ClusterInfo.Builder
shardPaths(java.lang.String key, java.lang.String value)
Required - API name:shard_paths
ClusterInfo.Builder
shardPaths(java.util.Map<java.lang.String,java.lang.String> map)
Required - API name:shard_paths
ClusterInfo.Builder
shardSizes(java.lang.String key, java.lang.Long value)
Required - API name:shard_sizes
ClusterInfo.Builder
shardSizes(java.util.Map<java.lang.String,java.lang.Long> map)
Required - API name:shard_sizes
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
nodes
public final ClusterInfo.Builder nodes(java.util.Map<java.lang.String,NodeDiskUsage> map)
Required - API name:nodes
Adds all entries of
map
tonodes
.
-
nodes
public final ClusterInfo.Builder nodes(java.lang.String key, NodeDiskUsage value)
Required - API name:nodes
Adds an entry to
nodes
.
-
nodes
public final ClusterInfo.Builder nodes(java.lang.String key, java.util.function.Function<NodeDiskUsage.Builder,ObjectBuilder<NodeDiskUsage>> fn)
Required - API name:nodes
Adds an entry to
nodes
using a builder lambda.
-
shardSizes
public final ClusterInfo.Builder shardSizes(java.util.Map<java.lang.String,java.lang.Long> map)
Required - API name:shard_sizes
Adds all entries of
map
toshardSizes
.
-
shardSizes
public final ClusterInfo.Builder shardSizes(java.lang.String key, java.lang.Long value)
Required - API name:shard_sizes
Adds an entry to
shardSizes
.
-
shardDataSetSizes
public final ClusterInfo.Builder shardDataSetSizes(java.util.Map<java.lang.String,java.lang.String> map)
API name:shard_data_set_sizes
Adds all entries of
map
toshardDataSetSizes
.
-
shardDataSetSizes
public final ClusterInfo.Builder shardDataSetSizes(java.lang.String key, java.lang.String value)
API name:shard_data_set_sizes
Adds an entry to
shardDataSetSizes
.
-
shardPaths
public final ClusterInfo.Builder shardPaths(java.util.Map<java.lang.String,java.lang.String> map)
Required - API name:shard_paths
Adds all entries of
map
toshardPaths
.
-
shardPaths
public final ClusterInfo.Builder shardPaths(java.lang.String key, java.lang.String value)
Required - API name:shard_paths
Adds an entry to
shardPaths
.
-
reservedSizes
public final ClusterInfo.Builder reservedSizes(java.util.List<ReservedSize> list)
Required - API name:reserved_sizes
Adds all elements of
list
toreservedSizes
.
-
reservedSizes
public final ClusterInfo.Builder reservedSizes(ReservedSize value, ReservedSize... values)
Required - API name:reserved_sizes
Adds one or more values to
reservedSizes
.
-
reservedSizes
public final ClusterInfo.Builder reservedSizes(java.util.function.Function<ReservedSize.Builder,ObjectBuilder<ReservedSize>> fn)
Required - API name:reserved_sizes
Adds a value to
reservedSizes
using a builder lambda.
-
build
public ClusterInfo build()
Builds aClusterInfo
.- Specified by:
build
in interfaceObjectBuilder<ClusterInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-