Class IndexSegment.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexSegment.Builder>
co.elastic.clients.elasticsearch.indices.segments.IndexSegment.Builder
- All Implemented Interfaces:
WithJson<IndexSegment.Builder>,ObjectBuilder<IndexSegment>
- Enclosing class:
- IndexSegment
public static class IndexSegment.Builder
extends WithJsonObjectBuilderBase<IndexSegment.Builder>
implements ObjectBuilder<IndexSegment>
Builder for
IndexSegment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexSegment.protected IndexSegment.Builderself()final IndexSegment.Buildershards(String key, List<ShardsSegment> value) Required - API name:shardsfinal IndexSegment.Buildershards(Map<String, List<ShardsSegment>> map) Required - API name:shardsMethods 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
-
shards
Required - API name:shardsAdds all entries of
maptoshards. -
shards
Required - API name:shardsAdds an entry to
shards. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexSegment.Builder>
-
build
Builds aIndexSegment.- Specified by:
buildin interfaceObjectBuilder<IndexSegment>- Throws:
NullPointerException- if some of the required fields are null.
-