Class ShardsSegment.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardsSegment.Builder>
co.elastic.clients.elasticsearch.indices.segments.ShardsSegment.Builder
- All Implemented Interfaces:
WithJson<ShardsSegment.Builder>,ObjectBuilder<ShardsSegment>
- Enclosing class:
- ShardsSegment
public static class ShardsSegment.Builder extends WithJsonObjectBuilderBase<ShardsSegment.Builder> implements ObjectBuilder<ShardsSegment>
Builder for
ShardsSegment.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ShardsSegmentbuild()Builds aShardsSegment.ShardsSegment.BuildernumCommittedSegments(int value)Required - API name:num_committed_segmentsShardsSegment.BuildernumSearchSegments(int value)Required - API name:num_search_segmentsShardsSegment.Builderrouting(ShardSegmentRouting value)Required - API name:routingShardsSegment.Builderrouting(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)Required - API name:routingShardsSegment.Buildersegments(java.lang.String key, Segment value)Required - API name:segmentsShardsSegment.Buildersegments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Required - API name:segmentsShardsSegment.Buildersegments(java.util.Map<java.lang.String,Segment> map)Required - API name:segmentsprotected ShardsSegment.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:segmentsAdds all entries of
maptosegments. -
segments
Required - API name:segmentsAdds 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:segmentsAdds an entry to
segmentsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ShardsSegment.Builder>
-
build
Builds aShardsSegment.- Specified by:
buildin interfaceObjectBuilder<ShardsSegment>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-