Class HealthRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cat.health.HealthRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<HealthRecord.Builder,,HealthRecord> MutableBuilder<HealthRecord.Builder,,HealthRecord> ObjectBuilder<HealthRecord>
- Enclosing class:
HealthRecord
public static class HealthRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<HealthRecord.Builder,HealthRecord>
Builder for
HealthRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal HealthRecord.BuilderactiveShardsPercent(String value) active number of shards in percentbuild()Builds aHealthRecord.final HealthRecord.Buildercluster namecopy()Create a new builderCopyableBuilderthat is a copy of this one.final HealthRecord.BuilderdiscoveredClusterManager(String value) cluster manager is discovered or notfinal HealthRecord.BuilderAPI name:epochfinal HealthRecord.Buildernumber of initializing nodesfinal HealthRecord.BuildermaxTaskWaitTime(String value) wait time of longest task pendingfinal HealthRecord.Buildernumber of nodes that can store datafinal HealthRecord.Buildertotal number of nodesfinal HealthRecord.BuilderpendingTasks(String value) number of pending tasksfinal HealthRecord.Buildernumber of primary shardsfinal HealthRecord.Buildernumber of relocating nodesfinal HealthRecord.Buildertotal number of shardsfinal HealthRecord.Builderhealth statusfinal HealthRecord.BuilderAPI name:timestampfinal HealthRecord.Buildernumber of unassigned 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<HealthRecord.Builder,HealthRecord> - Returns:
- a new builder instance.
-
activeShardsPercent
active number of shards in percentAPI name:
active_shards_percent -
cluster
cluster nameAPI name:
cluster -
discoveredClusterManager
cluster manager is discovered or notAPI name:
discovered_cluster_manager -
epoch
API name:epoch -
init
number of initializing nodesAPI name:
init -
maxTaskWaitTime
wait time of longest task pendingAPI name:
max_task_wait_time -
nodeData
number of nodes that can store dataAPI name:
node.data -
nodeTotal
total number of nodesAPI name:
node.total -
pendingTasks
number of pending tasksAPI name:
pending_tasks -
pri
number of primary shardsAPI name:
pri -
relo
number of relocating nodesAPI name:
relo -
shards
total number of shardsAPI name:
shards -
status
health statusAPI name:
status -
timestamp
API name:timestamp -
unassign
number of unassigned shardsAPI name:
unassign -
build
Builds aHealthRecord.- Specified by:
buildin interfaceObjectBuilder<HealthRecord>- Throws:
NullPointerException- if some of the required fields are null.
-