Class SegmentsResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.indices.SegmentsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<SegmentsResponse>
- Enclosing class:
- SegmentsResponse
public static class SegmentsResponse.Builder extends java.lang.Object implements ObjectBuilder<SegmentsResponse>
Builder for
SegmentsResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SegmentsResponsebuild()Builds aSegmentsResponse.SegmentsResponse.Builderindices(java.lang.String key, java.util.function.Function<IndexSegment.Builder,ObjectBuilder<IndexSegment>> fn)Setindices(Map)to a singleton map.SegmentsResponse.Builderindices(java.util.Map<java.lang.String,IndexSegment> value)API name:indicesSegmentsResponse.BuilderputIndices(java.lang.String key, java.util.function.Function<IndexSegment.Builder,ObjectBuilder<IndexSegment>> fn)Add a key/value toindices(Map), creating the map if needed.SegmentsResponse.BuilderputIndices(java.lang.String key, IndexSegment value)Add a key/value toindices(Map), creating the map if needed.SegmentsResponse.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:_shardsSegmentsResponse.Buildershards(ShardStatistics value)API name:_shards
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indices
API name:indices -
putIndices
Add a key/value toindices(Map), creating the map if needed. -
indices
public SegmentsResponse.Builder indices(java.lang.String key, java.util.function.Function<IndexSegment.Builder,ObjectBuilder<IndexSegment>> fn)Setindices(Map)to a singleton map. -
putIndices
public SegmentsResponse.Builder putIndices(java.lang.String key, java.util.function.Function<IndexSegment.Builder,ObjectBuilder<IndexSegment>> fn)Add a key/value toindices(Map), creating the map if needed. -
shards
API name:_shards -
shards
public SegmentsResponse.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:_shards -
build
Builds aSegmentsResponse.- Specified by:
buildin interfaceObjectBuilder<SegmentsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-