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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardsSegment.final ShardsSegment.BuildernumCommittedSegments(int value) Required - API name:num_committed_segmentsfinal ShardsSegment.BuildernumSearchSegments(int value) Required - API name:num_search_segmentsfinal ShardsSegment.Builderrouting(ShardSegmentRouting value) Required - API name:routingfinal ShardsSegment.BuilderRequired - API name:routingfinal ShardsSegment.BuilderRequired - API name:segmentsfinal ShardsSegment.Buildersegments(String key, Function<Segment.Builder, ObjectBuilder<Segment>> fn) Required - API name:segmentsfinal ShardsSegment.BuilderRequired - 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, _mapPutAll
-
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(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(String key, 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:
NullPointerException- if some of the required fields are null.
-