Class IndexDetails.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.IndexDetails.Builder
-
- All Implemented Interfaces:
ObjectBuilder<IndexDetails>
- Enclosing class:
- IndexDetails
public static class IndexDetails.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexDetails>
Builder forIndexDetails.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexDetailsbuild()Builds aIndexDetails.IndexDetails.BuildermaxSegmentsPerShard(long value)Required - API name:max_segments_per_shardIndexDetails.BuildershardCount(int value)Required - API name:shard_countIndexDetails.Buildersize(java.lang.String value)API name:sizeIndexDetails.BuildersizeInBytes(long value)Required - API name:size_in_bytes-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
shardCount
public final IndexDetails.Builder shardCount(int value)
Required - API name:shard_count
-
size
public final IndexDetails.Builder size(@Nullable java.lang.String value)
API name:size
-
sizeInBytes
public final IndexDetails.Builder sizeInBytes(long value)
Required - API name:size_in_bytes
-
maxSegmentsPerShard
public final IndexDetails.Builder maxSegmentsPerShard(long value)
Required - API name:max_segments_per_shard
-
build
public IndexDetails build()
Builds aIndexDetails.- Specified by:
buildin interfaceObjectBuilder<IndexDetails>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-