Class SegmentsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.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.-
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)Required - API name:indicesSegmentsResponse.BuilderputIndices(java.lang.String key, IndexSegment value)Add a key/value toindices(Map), creating the map if needed.SegmentsResponse.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.Buildershards(ShardStatistics value)Required - API name:_shardsSegmentsResponse.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indices
Required - 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
Required - API name:_shards -
shards
public SegmentsResponse.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shards -
build
Builds aSegmentsResponse.- Specified by:
buildin interfaceObjectBuilder<SegmentsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-