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 IndexSegment
build()
Builds aIndexSegment
.IndexSegment.Builder
shards(java.lang.String key, java.util.List<ShardsSegment> value)
Required - API name:shards
IndexSegment.Builder
shards(java.util.Map<java.lang.String,java.util.List<ShardsSegment>> map)
Required - API name:shards
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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:shards
Adds all entries of
map
toshards
. -
shards
public final IndexSegment.Builder shards(java.lang.String key, java.util.List<ShardsSegment> value)Required - API name:shards
Adds an entry to
shards
. -
build
Builds aIndexSegment
.- Specified by:
build
in interfaceObjectBuilder<IndexSegment>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-