Class ShardsSegment.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.indices.segments.ShardsSegment.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardsSegment>
- Enclosing class:
- ShardsSegment
public static class ShardsSegment.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardsSegment>
Builder for
ShardsSegment
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardsSegment
build()
Builds aShardsSegment
.ShardsSegment.Builder
numCommittedSegments(int value)
Required - API name:num_committed_segments
ShardsSegment.Builder
numSearchSegments(int value)
Required - API name:num_search_segments
ShardsSegment.Builder
routing(ShardSegmentRouting value)
Required - API name:routing
ShardsSegment.Builder
routing(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)
Required - API name:routing
ShardsSegment.Builder
segments(java.lang.String key, Segment value)
Required - API name:segments
ShardsSegment.Builder
segments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)
Required - API name:segments
ShardsSegment.Builder
segments(java.util.Map<java.lang.String,Segment> map)
Required - API name:segments
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numCommittedSegments
Required - API name:num_committed_segments
-
routing
Required - API name:routing
-
routing
public final ShardsSegment.Builder routing(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)Required - API name:routing
-
numSearchSegments
Required - API name:num_search_segments
-
segments
Required - API name:segments
Adds all entries of
map
tosegments
. -
segments
Required - API name:segments
Adds an entry to
segments
. -
segments
public final ShardsSegment.Builder segments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Required - API name:segments
Adds an entry to
segments
using a builder lambda. -
build
Builds aShardsSegment
.- Specified by:
build
in interfaceObjectBuilder<ShardsSegment>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-