Class IndicesStatsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndicesStatsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<IndicesStatsResponse.Builder,,IndicesStatsResponse> MutableBuilder<IndicesStatsResponse.Builder,,IndicesStatsResponse> ObjectBuilder<IndicesStatsResponse>
- Enclosing class:
IndicesStatsResponse
public static class IndicesStatsResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndicesStatsResponse.Builder,IndicesStatsResponse>
Builder for
IndicesStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - API name:_allall(AllIndicesStats value) Required - API name:_allbuild()Builds aIndicesStatsResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:indicesindices(String key, IndicesStats value) API name:indicesindices(Map<String, IndicesStats> map) API name:indicesRequired - API name:_shardsshards(ShardStatistics value) Required - API name:_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<IndicesStatsResponse.Builder,IndicesStatsResponse> - Returns:
- a new builder instance.
-
all
Required - API name:_all -
all
@Nonnull public final IndicesStatsResponse.Builder all(Function<AllIndicesStats.Builder, ObjectBuilder<AllIndicesStats>> fn) Required - API name:_all -
indices
API name:indicesAdds all elements of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
@Nonnull public final IndicesStatsResponse.Builder indices(String key, Function<IndicesStats.Builder, ObjectBuilder<IndicesStats>> fn) API name:indicesAdds a value to
indicesusing a builder lambda. -
shards
Required - API name:_shards -
shards
@Nonnull public final IndicesStatsResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - API name:_shards -
build
Builds aIndicesStatsResponse.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-