Class ShardFileSizeInfo.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.stats.ShardFileSizeInfo.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardFileSizeInfo>
- Enclosing class:
- ShardFileSizeInfo
public static class ShardFileSizeInfo.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardFileSizeInfo>
Builder forShardFileSizeInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardFileSizeInfo.Builder
averageSizeInBytes(java.lang.Long value)
API name:average_size_in_bytes
ShardFileSizeInfo
build()
Builds aShardFileSizeInfo
.ShardFileSizeInfo.Builder
count(java.lang.Long value)
API name:count
ShardFileSizeInfo.Builder
description(java.lang.String value)
Required - API name:description
ShardFileSizeInfo.Builder
maxSizeInBytes(java.lang.Long value)
API name:max_size_in_bytes
ShardFileSizeInfo.Builder
minSizeInBytes(java.lang.Long value)
API name:min_size_in_bytes
ShardFileSizeInfo.Builder
sizeInBytes(long value)
Required - API name:size_in_bytes
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
description
public final ShardFileSizeInfo.Builder description(java.lang.String value)
Required - API name:description
-
sizeInBytes
public final ShardFileSizeInfo.Builder sizeInBytes(long value)
Required - API name:size_in_bytes
-
minSizeInBytes
public final ShardFileSizeInfo.Builder minSizeInBytes(@Nullable java.lang.Long value)
API name:min_size_in_bytes
-
maxSizeInBytes
public final ShardFileSizeInfo.Builder maxSizeInBytes(@Nullable java.lang.Long value)
API name:max_size_in_bytes
-
averageSizeInBytes
public final ShardFileSizeInfo.Builder averageSizeInBytes(@Nullable java.lang.Long value)
API name:average_size_in_bytes
-
count
public final ShardFileSizeInfo.Builder count(@Nullable java.lang.Long value)
API name:count
-
build
public ShardFileSizeInfo build()
Builds aShardFileSizeInfo
.- Specified by:
build
in interfaceObjectBuilder<ShardFileSizeInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-