Class ClusterStatsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.NodesResponseBase.AbstractBuilder<ClusterStatsResponse.Builder>
org.opensearch.client.opensearch.cluster.ClusterStatsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<ClusterStatsResponse.Builder,,ClusterStatsResponse> MutableBuilder<ClusterStatsResponse.Builder,,ClusterStatsResponse> ObjectBuilder<ClusterStatsResponse>
- Enclosing class:
ClusterStatsResponse
public static class ClusterStatsResponse.Builder
extends NodesResponseBase.AbstractBuilder<ClusterStatsResponse.Builder>
implements CopyableBuilder<ClusterStatsResponse.Builder,ClusterStatsResponse>
Builder for
ClusterStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterStatsResponse.clusterName(String value) Required - The name of the cluster.clusterUuid(String value) Required - The unique identifier of the cluster.copy()Create a new builderCopyableBuilderthat is a copy of this one.Displays statistics about indexes in the cluster.indices(ClusterIndices value) Displays statistics about indexes in the cluster.Displays statistics about nodes selected by the request's node filters.nodes(ClusterNodes value) Displays statistics about nodes selected by the request's node filters.protected ClusterStatsResponse.Builderself()status(HealthStatus value) Required - The health status of the cluster, based on the state of its primary and replica shards.timestamp(long value) Required - The Unix timestamp, in milliseconds, indicating when any cluster statistics were last refreshed.Methods inherited from class org.opensearch.client.opensearch.nodes.NodesResponseBase.AbstractBuilder
nodeStats, nodeStatsMethods 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<ClusterStatsResponse.Builder,ClusterStatsResponse> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classNodesResponseBase.AbstractBuilder<ClusterStatsResponse.Builder>
-
clusterName
Required - The name of the cluster.API name:
cluster_name -
clusterUuid
Required - The unique identifier of the cluster.API name:
cluster_uuid -
indices
Displays statistics about indexes in the cluster.API name:
indices -
indices
@Nonnull public final ClusterStatsResponse.Builder indices(Function<ClusterIndices.Builder, ObjectBuilder<ClusterIndices>> fn) Displays statistics about indexes in the cluster.API name:
indices -
nodes
Displays statistics about nodes selected by the request's node filters.API name:
nodes -
nodes
@Nonnull public final ClusterStatsResponse.Builder nodes(Function<ClusterNodes.Builder, ObjectBuilder<ClusterNodes>> fn) Displays statistics about nodes selected by the request's node filters.API name:
nodes -
status
Required - The health status of the cluster, based on the state of its primary and replica shards.API name:
status -
timestamp
Required - The Unix timestamp, in milliseconds, indicating when any cluster statistics were last refreshed.API name:
timestamp -
build
Builds aClusterStatsResponse.- Specified by:
buildin interfaceObjectBuilder<ClusterStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-