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