Class IndexDetails.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexDetails.Builder>
co.elastic.clients.elasticsearch.snapshot.IndexDetails.Builder
- All Implemented Interfaces:
WithJson<IndexDetails.Builder>,ObjectBuilder<IndexDetails>
- Enclosing class:
- IndexDetails
public static class IndexDetails.Builder
extends WithJsonObjectBuilderBase<IndexDetails.Builder>
implements ObjectBuilder<IndexDetails>
Builder for
IndexDetails.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexDetails.final IndexDetails.BuildermaxSegmentsPerShard(long value) Required - API name:max_segments_per_shardprotected IndexDetails.Builderself()final IndexDetails.BuildershardCount(int value) Required - API name:shard_countfinal IndexDetails.BuilderAPI name:sizefinal IndexDetails.BuildersizeInBytes(long value) Required - API name:size_in_bytesMethods 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
-
shardCount
Required - API name:shard_count -
size
API name:size -
sizeInBytes
Required - API name:size_in_bytes -
maxSegmentsPerShard
Required - API name:max_segments_per_shard -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexDetails.Builder>
-
build
Builds aIndexDetails.- Specified by:
buildin interfaceObjectBuilder<IndexDetails>- Throws:
NullPointerException- if some of the required fields are null.
-