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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aShardsSegment
.final ShardsSegment.Builder
numCommittedSegments
(int value) Required - API name:num_committed_segments
final ShardsSegment.Builder
numSearchSegments
(int value) Required - API name:num_search_segments
final ShardsSegment.Builder
routing
(ShardSegmentRouting value) Required - API name:routing
final ShardsSegment.Builder
Required - API name:routing
final ShardsSegment.Builder
Required - API name:segments
final ShardsSegment.Builder
segments
(String key, Function<Segment.Builder, ObjectBuilder<Segment>> fn) Required - API name:segments
final ShardsSegment.Builder
Required - API name:segments
protected ShardsSegment.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:segments
Adds all entries of
map
tosegments
. -
segments
Required - API name:segments
Adds an entry to
segments
. -
segments
public final ShardsSegment.Builder segments(String key, Function<Segment.Builder, ObjectBuilder<Segment>> fn) Required - API name:segments
Adds an entry to
segments
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardsSegment.Builder>
-
build
Builds aShardsSegment
.- Specified by:
build
in interfaceObjectBuilder<ShardsSegment>
- Throws:
NullPointerException
- if some of the required fields are null.
-