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